Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
og
command
|
|
|
internal
|
|
|
agent
Package agent runs the harness's agent loop: send the prompt, stream the reply, and when the model requests tool calls, execute them serially and feed results back until the model stops calling tools.
|
Package agent runs the harness's agent loop: send the prompt, stream the reply, and when the model requests tool calls, execute them serially and feed results back until the model stops calling tools. |
|
config
Package config loads the harness's v1 configuration: a TOML file at the user config dir overlaid on pure defaults, with six env overrides on top and an API key that lives only in the environment.
|
Package config loads the harness's v1 configuration: a TOML file at the user config dir overlaid on pure defaults, with six env overrides on top and an API key that lives only in the environment. |
|
e2e/fake
Package fake provides in-process, scripted fake providers for E2E testing.
|
Package fake provides in-process, scripted fake providers for E2E testing. |
|
instruct
Package instruct assembles the agent instruction from three append-only sources in order: a built-in default prompt (always present), an optional config instruction file, and an optional AGENTS.md in the working directory.
|
Package instruct assembles the agent instruction from three append-only sources in order: a built-in default prompt (always present), an optional config instruction file, and an optional AGENTS.md in the working directory. |
|
ledger
Package ledger implements the change ledger: an append-only JSONL record of file mutations captured during agent-loop cycles.
|
Package ledger implements the change ledger: an append-only JSONL record of file mutations captured during agent-loop cycles. |
|
llm
Package llm is the seam between the agent loop and the provider: one small Client interface the loop depends on, a normalized event stream, and the error surface.
|
Package llm is the seam between the agent loop and the provider: one small Client interface the loop depends on, a normalized event stream, and the error surface. |
|
llm/anthropic
Package anthropic implements the llm seam over the Anthropic Messages wire protocol (used by Zen and other Anthropic-compatible providers).
|
Package anthropic implements the llm seam over the Anthropic Messages wire protocol (used by Zen and other Anthropic-compatible providers). |
|
llm/google
Package google implements the llm seam over the Google generateContent wire protocol (used by OpenCode Zen for gemini-* models and by direct Google API endpoints).
|
Package google implements the llm seam over the Google generateContent wire protocol (used by OpenCode Zen for gemini-* models and by direct Google API endpoints). |
|
llm/openai
Package openai implements the llm seam over the OpenAI-compatible chat/completions wire protocol (used by OpenCode Zen and other OpenAI-compatible providers).
|
Package openai implements the llm seam over the OpenAI-compatible chat/completions wire protocol (used by OpenCode Zen and other OpenAI-compatible providers). |
|
llm/responses
Package responses implements the llm seam over the OpenAI Responses-API wire protocol (used by OpenCode Zen for gpt-* models).
|
Package responses implements the llm seam over the OpenAI Responses-API wire protocol (used by OpenCode Zen for gpt-* models). |
|
repl
Package repl implements the interactive REPL (Read-Eval-Print Loop) for og.
|
Package repl implements the interactive REPL (Read-Eval-Print Loop) for og. |
|
session
Package session manages JSONL session transcripts.
|
Package session manages JSONL session transcripts. |
|
tools
Package tools provides the tool registry, JSON Schema validation, and the disabled-tool error surface.
|
Package tools provides the tool registry, JSON Schema validation, and the disabled-tool error surface. |
|
tools/bashtool
Package bashtool implements the bash tool: shell command execution with confirm gate, timeout, output truncation with spill files, and merged stdout+stderr.
|
Package bashtool implements the bash tool: shell command execution with confirm gate, timeout, output truncation with spill files, and merged stdout+stderr. |
|
tools/edittool
Package edittool implements the edit tool: surgical single-pair text replacement with exact whitespace-sensitive matching, line-ending preservation, and BOM stripping.
|
Package edittool implements the edit tool: surgical single-pair text replacement with exact whitespace-sensitive matching, line-ending preservation, and BOM stripping. |
|
tools/readtool
Package readtool implements the read tool: file content, directory listing, offset/limit, shared 2000-line/50KB truncation cap, and binary detection.
|
Package readtool implements the read tool: file content, directory listing, offset/limit, shared 2000-line/50KB truncation cap, and binary detection. |
|
tools/writetool
Package writetool implements the write tool: whole-file writes with auto-mkdir for new files, a confirm gate for overwrites, and a 1MB cap.
|
Package writetool implements the write tool: whole-file writes with auto-mkdir for new files, a confirm gate for overwrites, and a 1MB cap. |
|
plugins
|
|
|
bedrock
command
Bedrock wire plugin for og.
|
Bedrock wire plugin for og. |
|
copilot
command
Copilot wire plugin for og.
|
Copilot wire plugin for og. |
|
shared
Package shared provides protocol helpers for wire plugins.
|
Package shared provides protocol helpers for wire plugins. |
|
prototype
|
|
|
ndjson-rpc/host
command
|
|
|
ndjson-rpc/plugin
command
|
Click to show internal directories.
Click to hide internal directories.