Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent is a provider-neutral orchestration layer built on the llm package.
|
Package agent is a provider-neutral orchestration layer built on the llm package. |
|
coding
|
|
|
cmd/coding-desktop
command
Command coding-desktop runs the authenticated loopback server supervised by the Electron main process.
|
Command coding-desktop runs the authenticated loopback server supervised by the Electron main process. |
|
cmd/mcp-test-server
command
Command mcp-test-server runs a deterministic local MCP server for manually exercising Or's tool discovery and result handling.
|
Command mcp-test-server runs a deterministic local MCP server for manually exercising Or's tool discovery and result handling. |
|
internal/compaction
Package compaction prepares and summarizes old coding-session context.
|
Package compaction prepares and summarizes old coding-session context. |
|
internal/contextprojection
Package contextprojection manages product-generated context that is projected into model requests without becoming canonical conversation input.
|
Package contextprojection manages product-generated context that is projected into model requests without becoming canonical conversation input. |
|
internal/desktopserver
Package desktopserver serves the Electron renderer and product API from one authenticated loopback origin.
|
Package desktopserver serves the Electron renderer and product API from one authenticated loopback origin. |
|
internal/engine
Package engine owns one stateful coding-agent session.
|
Package engine owns one stateful coding-agent session. |
|
internal/httpapi
Package httpapi is the product's HTTP delivery layer.
|
Package httpapi is the product's HTTP delivery layer. |
|
internal/httpapi/internal/genwire
command
Command genwire generates the browser's TypeScript wire DTOs from the Go structs and string enums in wire_contract.go.
|
Command genwire generates the browser's TypeScript wire DTOs from the Go structs and string enums in wire_contract.go. |
|
internal/imageprep
Package imageprep validates and normalizes raster images before they enter provider-independent model content.
|
Package imageprep validates and normalizes raster images before they enter provider-independent model content. |
|
internal/mcp
Package mcp owns Or's product-level MCP configuration, connection manager, leases, diagnostics, and adaptation of protocol tools to coding-agent tools.
|
Package mcp owns Or's product-level MCP configuration, connection manager, leases, diagnostics, and adaptation of protocol tools to coding-agent tools. |
|
internal/mcp/client
Package client owns protocol-native Model Context Protocol connections, transports, tool discovery, and tool calls.
|
Package client owns protocol-native Model Context Protocol connections, transports, tool discovery, and tool calls. |
|
internal/observability
Package observability records privacy-safe product lifecycle events.
|
Package observability records privacy-safe product lifecycle events. |
|
internal/permission
Package permission owns the coding product's tool authorization policy.
|
Package permission owns the coding product's tool authorization policy. |
|
internal/prompt
Package prompt deterministically renders the coding agent's stable system prompt, discovers the instruction files and environment that make up its dynamic context, and renders those as model-visible attachments.
|
Package prompt deterministically renders the coding agent's stable system prompt, discovers the instruction files and environment that make up its dynamic context, and renders those as model-visible attachments. |
|
internal/provider
Package provider manages the coding product's persisted provider connection profiles.
|
Package provider manages the coding product's persisted provider connection profiles. |
|
internal/skills
Package skills loads file-backed skills and exposes them to a coding agent.
|
Package skills loads file-backed skills and exposes them to a coding agent. |
|
internal/snapshot
Package snapshot projects inspectable, provider-neutral model exchanges from committed transcripts.
|
Package snapshot projects inspectable, provider-neutral model exchanges from committed transcripts. |
|
internal/tools
Package tools implements the coding agent's built-in tools and the product bridges those tools use to interact with the desktop surface.
|
Package tools implements the coding agent's built-in tools and the product bridges those tools use to interact with the desktop surface. |
|
internal/trace
Package trace assembles performance events and private request snapshots into one UI-facing diagnostic read model.
|
Package trace assembles performance events and private request snapshots into one UI-facing diagnostic read model. |
|
internal/transcript
Package transcript defines the durable, append-only history of a coding session.
|
Package transcript defines the durable, append-only history of a coding session. |
|
internal/usage
Package usage is the coding product's token and cost ledger.
|
Package usage is the coding product's token and cost ledger. |
|
internal/workspace
Package workspace owns the directories a coding session runs in: the project roots a user registers, and the scratch directories the server generates for standalone chats.
|
Package workspace owns the directories a coding session runs in: the project roots a user registers, and the scratch directories the server generates for standalone chats. |
|
example
|
|
|
agent/basic
command
Command basic runs one prompt through a stateful agent and prints the final assistant message from the transcript.
|
Command basic runs one prompt through a stateful agent and prints the final assistant message from the transcript. |
|
agent/events
command
Command events prints an agent run as it happens: assistant deltas, tool starts, tool progress updates, and tool completion events.
|
Command events prints an agent run as it happens: assistant deltas, tool starts, tool progress updates, and tool completion events. |
|
agent/tools
command
Command tools lets an agent run a typed tool loop for a weather question.
|
Command tools lets an agent run a typed tool loop for a weather question. |
|
llm/advanced
command
Command advanced shows two lower-level controls layered on a normal request:
|
Command advanced shows two lower-level controls layered on a normal request: |
|
llm/basic
command
Command basic sends a single prompt to a model and prints the reply.
|
Command basic sends a single prompt to a model and prints the reply. |
|
llm/conversation
command
Command conversation carries history across multiple turns.
|
Command conversation carries history across multiple turns. |
|
llm/model_switch
command
Command model_switch continues one conversation across two protocols.
|
Command model_switch continues one conversation across two protocols. |
|
llm/options
command
Command options sends a prompt with a system message and per-request options.
|
Command options sends a prompt with a system message and per-request options. |
|
llm/providers
command
Command providers inspects and configures providers at runtime.
|
Command providers inspects and configures providers at runtime. |
|
llm/reasoning
command
Command reasoning asks a reasoning-capable model to think before answering and streams the reasoning and the final answer as separate phases.
|
Command reasoning asks a reasoning-capable model to think before answering and streams the reasoning and the final answer as separate phases. |
|
llm/streaming
command
Command streaming consumes a response as a live event stream instead of waiting for the final message.
|
Command streaming consumes a response as a live event stream instead of waiting for the final message. |
|
llm/tools
command
Command tools runs a streaming tool loop with reasoning: the model thinks, optionally calls a typed tool, sees the result, and continues until it gives a final answer.
|
Command tools runs a streaming tool loop with reasoning: the model thinks, optionally calls a typed tool, sees the result, and continues until it gives a final answer. |
|
llm/whoami
command
Command whoami reports which providers are configured and lists their models.
|
Command whoami reports which providers are configured and lists their models. |
|
Package harness is a stateful orchestration layer over the core agent.
|
Package harness is a stateful orchestration layer over the core agent. |
|
Package llm is a unified, provider-neutral API for large language models.
|
Package llm is a unified, provider-neutral API for large language models. |
|
all
Package all registers every built-in protocol adapter into the llm package default registry.
|
Package all registers every built-in protocol adapter into the llm package default registry. |
|
anthropic
Package anthropic implements the Anthropic Messages protocol on top of the official anthropic-sdk-go.
|
Package anthropic implements the Anthropic Messages protocol on top of the official anthropic-sdk-go. |
|
internal/genmodels
command
Command genmodels builds llm's checked-in model catalog from public model catalogs.
|
Command genmodels builds llm's checked-in model catalog from public model catalogs. |
|
internal/httpheader
Package httpheader contains HTTP header helpers shared by protocol adapters.
|
Package httpheader contains HTTP header helpers shared by protocol adapters. |
|
internal/jsonx
Package jsonx provides best-effort JSON recovery for model output.
|
Package jsonx provides best-effort JSON recovery for model output. |
|
internal/openaicompat
Package openaicompat resolves the effective wire behavior of models served through OpenAI-compatible Chat Completions endpoints.
|
Package openaicompat resolves the effective wire behavior of models served through OpenAI-compatible Chat Completions endpoints. |
Click to show internal directories.
Click to hide internal directories.