Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
pkg
|
|
|
agent
Package agent runs the prompt -> stream -> tool-call -> repeat loop that turns a model provider into an interactive coding agent, and emits events on a Sink so any front end (the interactive TUI, a JSON line writer in headless mode, or nothing at all for a sub-agent) can render it.
|
Package agent runs the prompt -> stream -> tool-call -> repeat loop that turns a model provider into an interactive coding agent, and emits events on a Sink so any front end (the interactive TUI, a JSON line writer in headless mode, or nothing at all for a sub-agent) can render it. |
|
command
Package command owns the single dispatch path for submitted lines: slash commands through a registry, `!` shell commands executed directly with their results staged onto context, and the `Console` view of the world commands share.
|
Package command owns the single dispatch path for submitted lines: slash commands through a registry, `!` shell commands executed directly with their results staged onto context, and the `Console` view of the world commands share. |
|
compact
Package compact reduces a session's context before it overflows: cheap structural reductions first (stages 1-3), then an LLM summary only when they are not enough (stage 4).
|
Package compact reduces a session's context before it overflows: cheap structural reductions first (stages 1-3), then an LLM summary only when they are not enough (stage 4). |
|
config
Package config resolves the ajent configuration directory and provides the file primitives the rest of the system loads its configuration through.
|
Package config resolves the ajent configuration directory and provides the file primitives the rest of the system loads its configuration through. |
|
llm
Package llm provides one streaming interface over every supported model provider, plus the model registry and configuration that feed it.
|
Package llm provides one streaming interface over every supported model provider, plus the model registry and configuration that feed it. |
|
mcp
Package mcp is the Model Context Protocol client: it connects to stdio and network MCP servers declared in mcp.json, bridges their tools into agent.Tool, and supervises each server's lifecycle.
|
Package mcp is the Model Context Protocol client: it connects to stdio and network MCP servers declared in mcp.json, bridges their tools into agent.Tool, and supervises each server's lifecycle. |
|
plan
Package plan runs a two-model development workflow: a planner drafts, the user approves, an implementor builds against that plan alone, and the planner reviews the result.
|
Package plan runs a two-model development workflow: a planner drafts, the user approves, an implementor builds against that plan alone, and the planner reviews the result. |
|
projinit
Package projinit surveys a repository and assembles the prompt that writes its AGENTS.md.
|
Package projinit surveys a repository and assembles the prompt that writes its AGENTS.md. |
|
refs
Package refs parses @file references in a message and expands them into real tool-call + result pairs ahead of the user's text: a small file is injected via read, a directory via ls, and a large or non-text file is annotated in place with its shape so the model can choose whether to read it.
|
Package refs parses @file references in a message and expands them into real tool-call + result pairs ahead of the user's text: a small file is injected via read, a directory via ls, and a large or non-text file is annotated in place with its shape so the model can choose whether to read it. |
|
session
Package session persists an agent turn stream as an append-only JSONL transcript, one entry per line.
|
Package session persists an agent turn stream as an append-only JSONL transcript, one entry per line. |
|
strutil
Package strutil holds tiny string helpers shared across packages.
|
Package strutil holds tiny string helpers shared across packages. |
|
tokens
Package tokens estimates and accounts token usage without a vendored BPE tokenizer.
|
Package tokens estimates and accounts token usage without a vendored BPE tokenizer. |
|
tools
Package tools provides the built-in coding-agent toolset: read, write, edit and bash enabled by default plus find and grep registered off.
|
Package tools provides the built-in coding-agent toolset: read, write, edit and bash enabled by default plus find and grep registered off. |
|
tui/sink
Package sink adapts an agent turn's events onto a *tui.UI, keeping the front end in main thin.
|
Package sink adapts an agent turn's events onto a *tui.UI, keeping the front end in main thin. |
Click to show internal directories.
Click to hide internal directories.