internal/

directory
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: Apache-2.0

Directories

Path Synopsis
adapter
agent/claude
Package claude is the Claude Code agent.
Package claude is the Claude Code agent.
agent/echo
Package echo is a test-only agent: its sessions answer typed prompts with scripted records, through the same calls a real session makes.
Package echo is a test-only agent: its sessions answer typed prompts with scripted records, through the same calls a real session makes.
claudedesktop
Package claudedesktop puts the Claude Desktop app's sessions behind the core's ports.
Package claudedesktop puts the Claude Desktop app's sessions behind the core's ports.
dossier
Package dossier keeps the dossiers' files, their git history and their archives under the state directory.
Package dossier keeps the dossiers' files, their git history and their archives under the state directory.
facts/github
Package factsgithub is the github source's workflow facts: the pull requests a sweep plans over, as automation.Units, and their author facts, as views.Facts.
Package factsgithub is the github source's workflow facts: the pull requests a sweep plans over, as automation.Units, and their author facts, as views.Facts.
facts/session
Package factsession puts the agent sessions behind the engine's Units: the open sessions of the turn registry, active or dormant, with their facts in slot session.
Package factsession puts the agent sessions behind the engine's Units: the open sessions of the turn registry, active or dormant, with their facts in slot session.
facts/workspace
Package factworkspace provides the workflow facts of the workspaces the workspace manager lists, from its snapshot, the stored pull requests and local git reads that reach no network.
Package factworkspace provides the workflow facts of the workspaces the workspace manager lists, from its snapshot, the stored pull requests and local git reads that reach no network.
facts/workspace/factworkspacetest
Package factworkspacetest holds fakes for the workspace facts provider.
Package factworkspacetest holds fakes for the workspace facts provider.
gitcheck
Package gitcheck reads what removing a checkout would lose, through git and the file system.
Package gitcheck reads what removing a checkout would lose, through git and the file system.
orca
Package orca puts Orca's sessions and board behind the core's ports.
Package orca puts Orca's sessions and board behind the core's ports.
source/fakethread
Package fakethread is a provider of chat threads for tests: a unit codec and a rows provider whose rows carry no payload.
Package fakethread is a provider of chat threads for tests: a unit codec and a rows provider whose rows carry no payload.
source/github
Package ghsource keeps the inventory in step with GitHub: a cheap fast sweep that reads only what changed and a slow sweep that rebuilds the scope and catches what the searches no longer return.
Package ghsource keeps the inventory in step with GitHub: a cheap fast sweep that reads only what changed and a slow sweep that rebuilds the scope and catches what the searches no longer return.
source/github/ghsourcetest
Package ghsourcetest holds the GitHub plugin's synthetic rows: one per situation kind, viewer's or others' pull request, in or out of scope, muted or not, each derived by prrow's real deriver.
Package ghsourcetest holds the GitHub plugin's synthetic rows: one per situation kind, viewer's or others' pull request, in or out of scope, muted or not, each derived by prrow's real deriver.
source/slack
Package slack is the Slack source: ingestion, rows, cards and the plugin's capabilities.
Package slack is the Slack source: ingestion, rows, cards and the plugin's capabilities.
source/slack/eval
Package eval measures the Slack extractor: an oracle reads a conversation and writes the viewer's briefing, a blind reader writes the same briefing from the extractor's ledger alone, and a judge with the conversation compares them.
Package eval measures the Slack extractor: an oracle reads a conversation and writes the viewer's briefing, a blind reader writes the same briefing from the extractor's ledger alone, and a judge with the conversation compares them.
source/slack/extract
Package extract turns a Slack conversation window into items ledger ops through one agent call.
Package extract turns a Slack conversation window into items ledger ops through one agent call.
source/slack/rows
Package slackrows serves Slack units as read model rows: threads and DM segments with their extraction verdict and open items.
Package slackrows serves Slack units as read model rows: threads and DM segments with their extraction verdict and open items.
store/inventory
Package inventory stores the pull requests in scope, their event history and the user's overrides in SQLite.
Package inventory stores the pull requests in scope, their event history and the user's overrides in SQLite.
store/sqlite
Package sqlite is the loop's one store: a SQLite database with one versioned schema that every repository shares.
Package sqlite is the loop's one store: a SQLite database with one versioned schema that every repository shares.
store/sqlite/sqlitetest
Package sqlitetest seeds a store with raw SQL in tests.
Package sqlitetest seeds a store with raw SQL in tests.
store/storetest
Package storetest opens stores for tests: empty, or seeded with a deterministic history the size of the user's live store.
Package storetest opens stores for tests: empty, or seeded with a deterministic history the size of the user's live store.
view/testsink
Package testsink is a test-only view sink: every status is its own column.
Package testsink is a test-only view sink: every status is its own column.
api
Package api is the schema every client of the daemon speaks: its version, its headers and the wire types it decodes.
Package api is the schema every client of the daemon speaks: its version, its headers and the wire types it decodes.
client
Package client is the Go client of the daemon's API, over its Unix socket.
Package client is the Go client of the daemon's API, over its Unix socket.
Package backup keeps a copy of a file the loop is about to change.
Package backup keeps a copy of a file the loop is about to change.
Package brand holds the product name; every user-visible name derives from it.
Package brand holds the product name; every user-visible name derives from it.
brandtest
Package brandtest keeps golden files valid under any brand.
Package brandtest keeps golden files valid under any brand.
Package brief previews each pull request with one headless call of the agent: goal, context, kind, size, risk and open questions.
Package brief previews each pull request with one headless call of the agent: goal, context, kind, size, risk and open questions.
Package catalog is the action catalog: the actions a pull request's row offers, the builtin ones and the intents', derived from facts the daemon gathers.
Package catalog is the action catalog: the actions a pull request's row offers, the builtin ones and the intents', derived from facts the daemon gathers.
Package cli implements the subcommands.
Package cli implements the subcommands.
client
harness
Package harness is what a client reads from the coding agent and the workspace manager that run it: the agent's hook payloads and the session's identity in its environment.
Package harness is what a client reads from the coding agent and the workspace manager that run it: the agent's hook payloads and the session's identity in its environment.
hook
Package hook runs the agent's SessionStart, Stop and prompt hooks and its MCP headers helper.
Package hook runs the agent's SessionStart, Stop and prompt hooks and its MCP headers helper.
menubar
Package menubar is the menu bar and notification layer as a client of the daemon's JSON: it decides the title, the menu and the notifications, and turns the user's answers into daemon actions.
Package menubar is the menu bar and notification layer as a client of the daemon's JSON: it decides the title, the menu and the notifications, and turns the user's answers into daemon actions.
rowset
Package rowset keeps a client's copy of the daemon's rows, merged from the pages of GET /api/rows.
Package rowset keeps a client's copy of the daemon's rows, merged from the pages of GET /api/rows.
tui
Package tui is the terminal view of the daemon: the GTD views of its entries, the plugins' views of their units and the workflows' plan, with the keys of #keys.
Package tui is the terminal view of the daemon: the GTD views of its entries, the plugins' views of their units and the workflows' plan, with the keys of #keys.
turncli
Package turncli is the agent's command line for its turn: `turn end` records how the turn ended, `turn answer` reads the user's answer.
Package turncli is the agent's command line for its turn: `turn end` records how the turn ended, `turn answer` reads the user's answer.
Package config loads the user's settings and locates the state directory.
Package config loads the user's settings and locates the state directory.
core
automation
Package automation is the engine that plans and runs workflows over units.
Package automation is the engine that plans and runs workflows over units.
automation/automationtest
Package automationtest holds in-memory fakes of the engine's ports and the contract suites every implementation runs.
Package automationtest holds in-memory fakes of the engine's ports and the contract suites every implementation runs.
change
Package change is the daemon's change log: a generation that every committed write and every in-memory input owner advances, with the topics and units each change touched.
Package change is the daemon's change log: a generation that every committed write and every in-memory input owner advances, with the topics and units each change touched.
dossiers
Package dossiers keeps the lifecycle of the unit and project dossiers.
Package dossiers keeps the lifecycle of the unit and project dossiers.
gtd
Package gtd is the GTD service: entries derived from items, captured by the user or opened by other services, and the verbs that move them.
Package gtd is the GTD service: entries derived from items, captured by the user or opened by other services, and the verbs that move them.
gtd/gtdtest
Package gtdtest holds an in-memory entry store and the contract suite every entry store passes.
Package gtdtest holds an in-memory entry store and the contract suite every entry store passes.
headless
Package headless runs a turn as one restricted agent call, with no session.
Package headless runs a turn as one restricted agent call, with no session.
ingest
Package ingest drives a source: discovery, change detection by object version, detail reads of what moved, and saves through the source's store.
Package ingest drives a source: discovery, change detection by object version, detail reads of what moved, and saves through the source's store.
ingest/ingesttest
Package ingesttest is a fake "thread" provider for driving ingest: a conversation service, a budgeted client, its Source and its SourceStore.
Package ingesttest is a fake "thread" provider for driving ingest: a conversation service, a budgeted client, its Source and its SourceStore.
instructions
Package instructions is what a turn's instructions carry from the loop's book: the earlier turns and, for a resume turn, what the stopped session left.
Package instructions is what a turn's instructions carry from the loop's book: the earlier turns and, for a resume turn, what the stopped session left.
intake
Package intake runs a turn a user asks for: the request is accepted with a number at once, waits for the first turn's brief, then starts the turn.
Package intake runs a turn a user asks for: the request is accepted with a number at once, waits for the first turn's brief, then starts the turn.
intake/intaketest
Package intaketest holds in-memory fakes of the intake ports.
Package intaketest holds in-memory fakes of the intake ports.
items
Package items is the items ledger: the only writer of a unit's items.
Package items is the items ledger: the only writer of a unit's items.
links
Package links resolves linked items from events on the units they link to.
Package links resolves linked items from events on the units they link to.
messages
Package messages keeps the Inbox messages: questions of turns, agent posts and proposals that ask a decision.
Package messages keeps the Inbox messages: questions of turns, agent posts and proposals that ask a decision.
messages/messagestest
Package messagestest holds an in-memory message store and the contract every message store meets.
Package messagestest holds an in-memory message store and the contract every message store meets.
outbox
Package outbox keeps the drafts the loop proposes and publishes the ones the user, or their approval policy, approved.
Package outbox keeps the drafts the loop proposes and publishes the ones the user, or their approval policy, approved.
placement
Package placement decides where a unit's work happens.
Package placement decides where a unit's work happens.
port
Package port holds what every core package's ports share: the event a save writes, the clock and the publisher.
Package port holds what every core package's ports share: the event a save writes, the clock and the publisher.
proposals
Package proposals is the job that proposes drafts on its own: a nudge for a stale waiting entry, a closing reply for a unit the user started and finished, a question for unassigned items, and what each enabled plugin proposes.
Package proposals is the job that proposes drafts on its own: a nudge for a stale waiting entry, a closing reply for a unit the user started and finished, a question for unassigned items, and what each enabled plugin proposes.
setup
Package setup checks, installs and removes what the loop needs in the configuration homes of the coding agents.
Package setup checks, installs and removes what the loop needs in the configuration homes of the coding agents.
sweep
Package sweep holds the inputs a sweep plans from, as ports: the stored pull requests, the workspace snapshot, the turn books, the round state and the local checkouts.
Package sweep holds the inputs a sweep plans from, as ports: the stored pull requests, the workspace snapshot, the turn books, the round state and the local checkouts.
turns
Package turns holds the core of a turn and the ports it drives.
Package turns holds the core of a turn and the ports it drives.
turns/turnstest
Package turnstest holds the fakes of the turns ports and the contracts every implementation passes.
Package turnstest holds the fakes of the turns ports and the contracts every implementation passes.
usage
Package usage reads the tokens each ended turn spent, through the reader of the turn's agent, and stores them once.
Package usage reads the tokens each ended turn spent, through the reader of the turn's agent, and stores them once.
views
Package views projects every pull request's item view to the sinks that show it.
Package views projects every pull request's item view to the sinks that show it.
views/viewstest
Package viewstest holds the contracts every views port implementation passes, and the fakes the core's tests use.
Package viewstest holds the contracts every views port implementation passes, and the fakes the core's tests use.
workspaces
Package workspaces removes and unregisters workspaces, refusing whatever would lose work.
Package workspaces removes and unregisters workspaces, refusing whatever would lose work.
workspaces/workspacestest
Package workspacestest holds the fakes of the workspaces ports, the checkouts they stand for, and the contracts every implementation passes.
Package workspacestest holds the fakes of the workspaces ports, the checkouts they stand for, and the contracts every implementation passes.
Package daemon is the resident process behind the serve command: it runs the collector and the sweep on a schedule and serves the API on a Unix socket and on a token-guarded localhost port.
Package daemon is the resident process behind the serve command: it runs the collector and the sweep on a schedule and serves the API on a Unix socket and on a token-guarded localhost port.
domain
card
Package card holds a unit's card: what a plugin shows of one unit.
Package card holds a unit's card: what a plugin shows of one unit.
change
Package change holds the rules that decide what a change to a pull request calls for: a follow-up, a triage round, a board move.
Package change holds the rules that decide what a change to a pull request calls for: a follow-up, a triage round, a board move.
dossier
Package dossier holds the working files the loop keeps per unit or project.
Package dossier holds the working files the loop keeps per unit or project.
draft
Package draft holds the Outbox drafts: posts the loop proposes and the user approves before they reach a provider.
Package draft holds the Outbox drafts: posts the loop proposes and the user approves before they reach a provider.
event
Package event holds the natural keys of GitHub events that the collector and the store write, and the layout of an event's time.
Package event holds the natural keys of GitHub events that the collector and the store write, and the layout of an event's time.
facet
Package facet lists the closed values a brief gives a pull request.
Package facet lists the closed values a brief gives a pull request.
github
Package github holds the values the GitHub client reads and the budget its callers spend: pull request states, explore candidates, rate limits and the priority a call is tagged with.
Package github holds the values the GitHub client reads and the budget its callers spend: pull request states, explore candidates, rate limits and the priority a call is tagged with.
gtd
Package gtd holds the GTD entries and their pure rules.
Package gtd holds the GTD entries and their pure rules.
intent
Package intent holds the definition of an intent, as its manifest declares it, and the registry of every loaded intent.
Package intent holds the definition of an intent, as its manifest declares it, and the registry of every loaded intent.
inventory
Package inventory holds the records the inventory stores: pull requests, their events, the user's overrides, brief records and timing records.
Package inventory holds the records the inventory stores: pull requests, their events, the user's overrides, brief records and timing records.
items
Package items holds the cross-source items ledger's types.
Package items holds the cross-source items ledger's types.
link
Package link holds the cross-source links between units.
Package link holds the cross-source links between units.
message
Package message holds the Inbox messages: questions, agent posts and proposals.
Package message holds the Inbox messages: questions, agent posts and proposals.
placement
Package placement says where a unit's work happens: which repository, checkout and role.
Package placement says where a unit's work happens: which repository, checkout and role.
pr
Package pr names a GitHub pull request.
Package pr names a GitHub pull request.
record
Package record is how an agent says a turn of the loop ended: the state, a one-line summary, and when it stops on a question, the whole question.
Package record is how an agent says a turn of the loop ended: the state, a one-line summary, and when it stops on a question, the whole question.
round
Package round holds the values of the loop's automatic rounds.
Package round holds the values of the loop's automatic rounds.
shell
Package shell quotes words for a POSIX shell command line.
Package shell quotes words for a POSIX shell command line.
slack
Package slack is the Slack plugin's domain: messages, deltas and the facts the source stores.
Package slack is the Slack plugin's domain: messages, deltas and the facts the source stores.
tag
Package tag names what a pull request touches with key:value tags, a matching system and nothing more: nine fixed keys, each value normalized to one spelling.
Package tag names what a pull request touches with key:value tags, a matching system and nothing more: nine fixed keys, each value normalized to one spelling.
turn
Package turn is the book of a pull request's turns: what the loop sent, what the agent recorded and what the user answered.
Package turn is the book of a pull request's turns: what the loop sent, what the agent recorded and what the user answered.
unit
Package unit names a unit of work by its provider and the provider's key.
Package unit names a unit of work by its provider and the provider's key.
usage
Package usage holds the token and cost records of an agent's turns.
Package usage holds the token and cost records of an agent's turns.
view
Package view is the item view the loop projects to every sink: a semantic status, unread and a summary line, never a sink's vocabulary.
Package view is the item view the loop projects to every sink: a semantic status, unread and a summary line, never a sink's vocabulary.
workflow
Package workflow holds a parsed workflow and what the engine plans from it: triggers, reach, plan items, runs and their idempotency keys.
Package workflow holds a parsed workflow and what the engine plans from it: triggers, reach, plan items, runs and their idempotency keys.
workspace
Package workspace holds what a workspace manager reports, as values, and names its worktree as a unit.
Package workspace holds what a workspace manager reports, as values, and names its worktree as a unit.
Package e2e holds the loop's live tests, behind the live build tag, and the guards every one of their writes goes through: they touch only what the tests create in Orca and only the sandbox repository on GitHub.
Package e2e holds the loop's live tests, behind the live build tag, and the guards every one of their writes goes through: they touch only what the tests create in Orca and only the sandbox repository on GitHub.
Package explore turns what the user types in Explore into one GitHub search for open pull requests to help on.
Package explore turns what the user types in Explore into one GitHub search for open pull requests to help on.
Package frontmatter splits a leading TOML block off a Markdown file and decodes it strictly, with positions in the file.
Package frontmatter splits a leading TOML block off a Markdown file and decodes it strictly, with positions in the file.
Package ghcli shells out to gh, which owns authentication.
Package ghcli shells out to gh, which owns authentication.
Package github reads pull requests over GitHub's HTTPS API, batching every pull request of a sweep into aliased GraphQL queries.
Package github reads pull requests over GitHub's HTTPS API, batching every pull request of a sweep into aliased GraphQL queries.
githubtest
Package githubtest serves a github.Client from the ghcli.Runner fakes the tests already have.
Package githubtest serves a github.Client from the ghcli.Runner fakes the tests already have.
Package gitx runs the few git commands the loop needs.
Package gitx runs the few git commands the loop needs.
Package intent loads intent manifests from the bundled profile and the user's layers into one registry; import it as intentload.
Package intent loads intent manifests from the bundled profile and the user's layers into one registry; import it as intentload.
builtin
Package builtin is the Go vocabulary manifests name: builtins by slot, reserved names and keys, and the facts predicates read.
Package builtin is the Go vocabulary manifests name: builtins by slot, reserved names and keys, and the facts predicates read.
builtin/cmd/factsdoc command
Command factsdoc prints the generated tables of the facts reference page: the intents' facts, one table per workflow slot, then the workflow steps.
Command factsdoc prints the generated tables of the facts reference page: the intents' facts, one table per workflow slot, then the workflow steps.
expr
Package expr compiles and evaluates the predicates of intent and workflow manifests: CEL expressions (cel-go) over typed facts, checked at load.
Package expr compiles and evaluates the predicates of intent and workflow manifests: CEL expressions (cel-go) over typed facts, checked at load.
Package keys is the one keyboard map of every surface: the core bindings and the rule plugin and intent keys follow.
Package keys is the one keyboard map of every surface: the core bindings and the rule plugin and intent keys follow.
Package meter counts what a unit of the loop's work costs at its boundaries.
Package meter counts what a unit of the loop's work costs at its boundaries.
metertest
Package metertest asserts what a unit of work cost, in the manner of assertNumQueries: a failure lists the samples so an N+1 shows.
Package metertest asserts what a unit of work cost, in the manner of assertNumQueries: a failure lists the samples so an N+1 shows.
Package profile composes the reviewer's guide from blocks: the loop's bundled ones, then the user's profile, each addressed by a path of the conditions under which it applies.
Package profile composes the reviewer's guide from blocks: the loop's bundled ones, then the user's profile, each addressed by a path of the conditions under which it applies.
Package readmodel keeps every unit's row derived, encoded and revised in memory, rebuilt from one store snapshot when a row input changes.
Package readmodel keeps every unit's row derived, encoded and revised in memory, rebuilt from one store snapshot when a row input changes.
cards
Package cards keeps the units' card snapshots and derived items current with the rows the read model publishes.
Package cards keeps the units' card snapshots and derived items current with the rows the read model publishes.
prrow
Package prrow derives the row of a pull request from what the store, the gate and the turns say of it: the github provider of the read model.
Package prrow derives the row of a pull request from what the store, the gate and the turns say of it: the github provider of the read model.
Package scope turns the configured sources into the people, teams and repositories the inventory follows, and the searches that find them.
Package scope turns the configured sources into the people, teams and repositories the inventory follows, and the searches that find them.
Package situation derives who a pull request is waiting on, and since when, from its snapshot and its event history.
Package situation derives who a pull request is waiting on, and since when, from its snapshot and its event history.
Package slack is a thin client for the Slack Web API.
Package slack is a thin client for the Slack Web API.
auth
Package auth keeps the Slack tokens: login, refresh and the Keychain.
Package auth keeps the Slack tokens: login, refresh and the Keychain.
send
Package send posts a message to Slack as the user.
Package send posts a message to Slack as the user.
slacktest
Package slacktest is a fake Slack Web API for tests.
Package slacktest is a fake Slack Web API for tests.
socket
Package socket keeps a Slack Socket Mode connection.
Package socket keeps a Slack Socket Mode connection.
socket/sockettest
Package sockettest is a fake Slack Socket Mode server for tests.
Package sockettest is a fake Slack Socket Mode server for tests.
Package source is where a source registers: its unit codec, its ingestion job, its rows and its workflow facts.
Package source is where a source registers: its unit codec, its ingestion job, its rows and its workflow facts.
Package termfmt writes text for a terminal: whether to color it, the styles and links, and the width of what it prints.
Package termfmt writes text for a terminal: whether to color it, the styles and links, and the width of what it prints.
transport
mcp
Package mcp serves the loop's MCP endpoint: streamable HTTP on localhost with JSON responses only.
Package mcp serves the loop's MCP endpoint: streamable HTTP on localhost with JSON responses only.
Package turn renders what an agent reads for one turn of the loop: the context of the turn, its instructions and the prompt that points to them.
Package turn renders what an agent reads for one turn of the loop: the context of the turn, its instructions and the prompt that points to them.
Package web serves the cockpit's static files.
Package web serves the cockpit's static files.
Package workspace is the port between the review loop and whatever tool manages worktrees and agent sessions.
Package workspace is the port between the review loop and whatever tool manages worktrees and agent sessions.
claudedesktop
Package claudedesktop implements workspace.Manager over the Claude Desktop app: git worktrees under a root the loop owns, and the Claude Code sessions Desktop runs in them.
Package claudedesktop implements workspace.Manager over the Claude Desktop app: git worktrees under a root the loop owns, and the Claude Code sessions Desktop runs in them.
fake
Package fake is an in-memory workspace.Manager for tests.
Package fake is an in-memory workspace.Manager for tests.
orca
Package orca implements workspace.Manager over Orca's runtime socket and the orca CLI.
Package orca implements workspace.Manager over Orca's runtime socket and the orca CLI.
orca/orcatest
Package orcatest serves a fake Orca runtime on a local socket, for tests that run the real orca.Manager and count its calls.
Package orcatest serves a fake Orca runtime on a local socket, for tests that run the real orca.Manager and count its calls.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL