Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent implements the core turn loop (spec: openspec/specs/agent-loop, ADR-0001, ADR-0005, ADR-0007).
|
Package agent implements the core turn loop (spec: openspec/specs/agent-loop, ADR-0001, ADR-0005, ADR-0007). |
|
Package compose implements the spec→ship phase machine (ADR-0002) that enforces the house gates: grill → spec → implement → verify → review → finish.
|
Package compose implements the spec→ship phase machine (ADR-0002) that enforces the house gates: grill → spec → implement → verify → review → finish. |
|
Package config loads the OpenCode-compatible configuration surface (opencode.json + AGENTS.md) into neutral config values (ADR-0001).
|
Package config loads the OpenCode-compatible configuration surface (opencode.json + AGENTS.md) into neutral config values (ADR-0001). |
|
Package contextmgr implements the Tokenizer, Budgeter, and Checkpointer ports (ADR-0008): estimate token cost, decide what enters the context window in priority order, and checkpoint/reconstruct when the window fills up.
|
Package contextmgr implements the Tokenizer, Budgeter, and Checkpointer ports (ADR-0008): estimate token cost, decide what enters the context window in priority order, and checkpoint/reconstruct when the window fills up. |
|
Package coordinate is the native symbol-lock store for the NativeCoordinator (change 0013).
|
Package coordinate is the native symbol-lock store for the NativeCoordinator (change 0013). |
|
Package diff produces a minimal line-level unified diff for the edit tool's diff view (T-031).
|
Package diff produces a minimal line-level unified diff for the edit tool's diff view (T-031). |
|
Package embed defines the Embedder port (ADR-0004) and a local adapter that speaks the OpenAI-compatible /embeddings endpoint.
|
Package embed defines the Embedder port (ADR-0004) and a local adapter that speaks the OpenAI-compatible /embeddings endpoint. |
|
Package glob is a dep-free path-glob matcher supporting *, ?, and **.
|
Package glob is a dep-free path-glob matcher supporting *, ?, and **. |
|
Package improve implements the self-improvement loop (M9): /dream extracts durable facts from session traces and prunes stale memory, and /distill mines repeated tool sequences into skill, subagent, and command scaffolds.
|
Package improve implements the self-improvement loop (M9): /dream extracts durable facts from session traces and prunes stale memory, and /distill mines repeated tool sequences into skill, subagent, and command scaffolds. |
|
Package jsworkflow is the goja-backed adapter that compiles a `.js` workflow into an orchestrate.Workflow (ADR-0009).
|
Package jsworkflow is the goja-backed adapter that compiles a `.js` workflow into an orchestrate.Workflow (ADR-0009). |
|
Package lsp is the Language Server Protocol adapter behind the ports.LanguageService port (change 0026, ADR-0017).
|
Package lsp is the Language Server Protocol adapter behind the ports.LanguageService port (change 0026, ADR-0017). |
|
Package mcp connects to Model Context Protocol servers and exposes their tools through the unchanged Tool port (change 0015, ADR-0010).
|
Package mcp connects to Model Context Protocol servers and exposes their tools through the unchanged Tool port (change 0015, ADR-0010). |
|
Package memo is the file-based memory surface (T-044): MEMORY.md, notes.md, and tasks/<id>/progress.md.
|
Package memo is the file-based memory surface (T-044): MEMORY.md, notes.md, and tasks/<id>/progress.md. |
|
Package memory — FTS5 lexical shadow index (change 0021).
|
Package memory — FTS5 lexical shadow index (change 0021). |
|
Package orchestrate implements subagents, the Go-native Workflow engine, and goal-driven stopping (ADR-0006, ADR-0002).
|
Package orchestrate implements subagents, the Go-native Workflow engine, and goal-driven stopping (ADR-0006, ADR-0002). |
|
Package policy implements the PolicyGate port (ADR-0007).
|
Package policy implements the PolicyGate port (ADR-0007). |
|
Neutral provider model types (ADR-0005; change 0018).
|
Neutral provider model types (ADR-0005; change 0018). |
|
providerfake
Package portsfake provides a scripted Provider for tests and for proving the agent loop without any network access or API key (change 0018; formerly provider.Fake in internal/provider/fake.go).
|
Package portsfake provides a scripted Provider for tests and for proving the agent loop without any network access or API key (change 0018; formerly provider.Fake in internal/provider/fake.go). |
|
Package provider holds the concrete model adapters and adapter-only helpers.
|
Package provider holds the concrete model adapters and adapter-only helpers. |
|
anthropic
Package anthropic is the Anthropic Messages API adapter (ADR-0005, T-012).
|
Package anthropic is the Anthropic Messages API adapter (ADR-0005, T-012). |
|
openaicompat
Package openaicompat is the OpenAI-compatible Chat Completions adapter (ADR-0005, T-013).
|
Package openaicompat is the OpenAI-compatible Chat Completions adapter (ADR-0005, T-013). |
|
select
Package selectadapter is the adapter-selection composition layer (ADR-0005, T-014).
|
Package selectadapter is the adapter-selection composition layer (ADR-0005, T-014). |
|
Package runtime is the composition root (change 0002): it assembles the subsystems built in change 0001 into a live session.
|
Package runtime is the composition root (change 0002): it assembles the subsystems built in change 0001 into a live session. |
|
Package skills implements the SkillIndex port (ADR-0002): discovery of SKILL.md files across a priority-ordered list of directories, plus lookup.
|
Package skills implements the SkillIndex port (ADR-0002): discovery of SKILL.md files across a priority-ordered list of directories, plus lookup. |
|
Package symbols indexes claimable Go symbols with their source locations, so a coordinator can lock at the symbol (function/type) level rather than the file level (change 0013).
|
Package symbols indexes claimable Go symbols with their source locations, so a coordinator can lock at the symbol (function/type) level rather than the file level (change 0013). |
|
Package tool defines the Tool port (ADR-0001 loop design).
|
Package tool defines the Tool port (ADR-0001 loop design). |
|
Package tui is the Bubble Tea front-end (ADR-0001, T-030/T-031).
|
Package tui is the Bubble Tea front-end (ADR-0001, T-030/T-031). |
Click to show internal directories.
Click to hide internal directories.