Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent provides the runtime core for autonomous LLM agents: a loop that calls a language model, executes the tools it requests, feeds results back, and repeats until the model finishes or a stop condition fires.
|
Package agent provides the runtime core for autonomous LLM agents: a loop that calls a language model, executes the tools it requests, feeds results back, and repeats until the model finishes or a stop condition fires. |
|
bundle
Package bundle loads bounded local Bundles and activates their declarative resources through an extension.Runtime.
|
Package bundle loads bounded local Bundles and activates their declarative resources through an extension.Runtime. |
|
catalog
Package catalog composes explicitly registered agent tools into policy-gated snapshots.
|
Package catalog composes explicitly registered agent tools into policy-gated snapshots. |
|
continuation
Package continuation provides durable, application-driven execution across bounded worker runs.
|
Package continuation provides durable, application-driven execution across bounded worker runs. |
|
extension
Package extension composes trusted, application-compiled Agent extensions into immutable runtime generations.
|
Package extension composes trusted, application-compiled Agent extensions into immutable runtime generations. |
|
goal
Package goal provides evidence-based completion policies for continuation executions.
|
Package goal provides evidence-based completion policies for continuation executions. |
|
harness
Package harness provides the stateful orchestration layer over the agent runtime: persistent session trees with branching, automatic context compaction, branch summaries, and skill/template resources — the pieces an agent application needs beyond a single run.
|
Package harness provides the stateful orchestration layer over the agent runtime: persistent session trees with branching, automatic context compaction, branch summaries, and skill/template resources — the pieces an agent application needs beyond a single run. |
|
loop
Package loop provides fixed and dynamic activation policies for continuation executions.
|
Package loop provides fixed and dynamic activation policies for continuation executions. |
|
mcp
Package agentmcp bridges tools from Model Context Protocol servers into the agent runtime using the official Go MCP SDK.
|
Package agentmcp bridges tools from Model Context Protocol servers into the agent runtime using the official Go MCP SDK. |
|
observability
Package observability derives vendor-neutral traces and aggregate metrics from agent events.
|
Package observability derives vendor-neutral traces and aggregate metrics from agent events. |
|
observability/otel
Package otel adapts pips agent events to OpenTelemetry traces and metrics.
|
Package otel adapts pips agent events to OpenTelemetry traces and metrics. |
|
team
Package team provides durable coordination for a flat team of independent Agent sessions.
|
Package team provides durable coordination for a flat team of independent Agent sessions. |
|
Package ai provides a unified, provider-agnostic client for large language model APIs.
|
Package ai provides a unified, provider-agnostic client for large language model APIs. |
|
agnes
Package agnes implements ai.ImageModel against the Agnes Image API without the vendor SDK: text-to-image generation and multi-image editing through a single endpoint.
|
Package agnes implements ai.ImageModel against the Agnes Image API without the vendor SDK: text-to-image generation and multi-image editing through a single endpoint. |
|
anthropic
Package anthropic implements ai.LanguageModel against Anthropic's Messages API (POST /v1/messages) without the vendor SDK.
|
Package anthropic implements ai.LanguageModel against Anthropic's Messages API (POST /v1/messages) without the vendor SDK. |
|
cerebras
Package cerebras implements ai.LanguageModel against Cerebras ultra-fast inference APIs.
|
Package cerebras implements ai.LanguageModel against Cerebras ultra-fast inference APIs. |
|
cohere
Package cohere implements ai.RerankModel against the Cohere Rerank API and compatible endpoints without the vendor SDK.
|
Package cohere implements ai.RerankModel against the Cohere Rerank API and compatible endpoints without the vendor SDK. |
|
deepseek
Package deepseek implements ai.LanguageModel against DeepSeek APIs.
|
Package deepseek implements ai.LanguageModel against DeepSeek APIs. |
|
gemini
Package gemini implements ai.LanguageModel against Google's Gemini API (generateContent / streamGenerateContent) without the vendor SDK.
|
Package gemini implements ai.LanguageModel against Google's Gemini API (generateContent / streamGenerateContent) without the vendor SDK. |
|
groq
Package groq implements ai.LanguageModel against Groq's high-speed inference APIs.
|
Package groq implements ai.LanguageModel against Groq's high-speed inference APIs. |
|
internal/apierr
Package apierr decodes the OpenAI-shaped error envelope every OpenAI-dialect provider returns into an ai.Error.
|
Package apierr decodes the OpenAI-shaped error envelope every OpenAI-dialect provider returns into an ai.Error. |
|
internal/clientopts
Package clientopts provides shared option types and converters for provider facades.
|
Package clientopts provides shared option types and converters for provider facades. |
|
internal/httpx
Package httpx is the shared HTTP plumbing for provider adapters: a tuned transport, JSON request/response execution, SSE stream setup, an SSRF guard, and Retry-After parsing.
|
Package httpx is the shared HTTP plumbing for provider adapters: a tuned transport, JSON request/response execution, SSE stream setup, an SSRF guard, and Retry-After parsing. |
|
internal/imagewire
Package imagewire maps the Images-shaped response items shared by the image adapters onto portable images and derives media types from wire format names.
|
Package imagewire maps the Images-shaped response items shared by the image adapters onto portable images and derives media types from wire format names. |
|
internal/jsonx
Package jsonx is the ai module's single JSON encode/decode seam and owns bounded request-body extension merging shared by all provider adapters.
|
Package jsonx is the ai module's single JSON encode/decode seam and owns bounded request-body extension merging shared by all provider adapters. |
|
internal/sse
Package sse parses Server-Sent Events streams from LLM provider responses.
|
Package sse parses Server-Sent Events streams from LLM provider responses. |
|
kimi
Package kimi implements ai.LanguageModel against Moonshot AI's Kimi platform.
|
Package kimi implements ai.LanguageModel against Moonshot AI's Kimi platform. |
|
middleware/capability
Package capability provides a middleware that overrides a model's reported ai.Capabilities with a declarative, field-level ai.CapabilityOverride.
|
Package capability provides a middleware that overrides a model's reported ai.Capabilities with a declarative, field-level ai.CapabilityOverride. |
|
middleware/ratelimit
Package ratelimit provides a client-side rate-limiting ai.LanguageModel middleware with two token buckets: requests per minute (RPM) and estimated input tokens per minute (TPM), the two quota dimensions LLM providers enforce.
|
Package ratelimit provides a client-side rate-limiting ai.LanguageModel middleware with two token buckets: requests per minute (RPM) and estimated input tokens per minute (TPM), the two quota dimensions LLM providers enforce. |
|
middleware/retry
Package retry provides a retrying ai.LanguageModel middleware with exponential backoff and full jitter.
|
Package retry provides a retrying ai.LanguageModel middleware with exponential backoff and full jitter. |
|
minimax
Package minimax implements ai.LanguageModel against MiniMax.
|
Package minimax implements ai.LanguageModel against MiniMax. |
|
mistral
Package mistral implements ai.LanguageModel and ai.EmbeddingModel against Mistral AI APIs.
|
Package mistral implements ai.LanguageModel and ai.EmbeddingModel against Mistral AI APIs. |
|
observability
Package observability turns cross-cutting instrumentation into an ai.Middleware via a set of callback hooks.
|
Package observability turns cross-cutting instrumentation into an ai.Middleware via a set of callback hooks. |
|
openai
Package openai implements ai.LanguageModel against OpenAI's wire protocols without the vendor SDK.
|
Package openai implements ai.LanguageModel against OpenAI's wire protocols without the vendor SDK. |
|
openai/compat
Package compat provides service profiles for providers that expose an OpenAI-shaped Chat Completions or Responses API.
|
Package compat provides service profiles for providers that expose an OpenAI-shaped Chat Completions or Responses API. |
|
openrouter
Package openrouter implements ai.LanguageModel against the OpenRouter gateway.
|
Package openrouter implements ai.LanguageModel against the OpenRouter gateway. |
|
qwen
Package qwen implements ai.LanguageModel and ai.EmbeddingModel against Alibaba Cloud Model Studio / DashScope (Qwen).
|
Package qwen implements ai.LanguageModel and ai.EmbeddingModel against Alibaba Cloud Model Studio / DashScope (Qwen). |
|
siliconflow
Package siliconflow implements ai.LanguageModel, ai.EmbeddingModel, and ai.RerankModel against SiliconFlow (硅基流动) APIs.
|
Package siliconflow implements ai.LanguageModel, ai.EmbeddingModel, and ai.RerankModel against SiliconFlow (硅基流动) APIs. |
|
together
Package together implements ai.LanguageModel, ai.EmbeddingModel, and ai.RerankModel against Together AI APIs.
|
Package together implements ai.LanguageModel, ai.EmbeddingModel, and ai.RerankModel against Together AI APIs. |
|
xai
Package xai implements ai.LanguageModel against xAI (Grok) APIs.
|
Package xai implements ai.LanguageModel against xAI (Grok) APIs. |
|
zhipu
Package zhipu implements ai.LanguageModel, ai.EmbeddingModel, and ai.RerankModel against Zhipu AI (GLM / BigModel) APIs.
|
Package zhipu implements ai.LanguageModel, ai.EmbeddingModel, and ai.RerankModel against Zhipu AI (GLM / BigModel) APIs. |
|
cmd
|
|
|
pips
command
Command pips runs the terminal-first coding agent application.
|
Command pips runs the terminal-first coding agent application. |
|
examples
|
|
|
agent-approval
command
Command agent-approval gates a dangerous tool behind human approval: the gate pauses the run, the operator answers on the terminal, and a second Run resumes the conversation with the outcome.
|
Command agent-approval gates a dangerous tool behind human approval: the gate pauses the run, the operator answers on the terminal, and a second Run resumes the conversation with the outcome. |
|
agent-basic
command
Command agent-basic runs an agent loop end to end: the model calls a typed tool, the runtime executes it and feeds the result back, and the loop ends when the model answers in plain text.
|
Command agent-basic runs an agent loop end to end: the model calls a typed tool, the runtime executes it and feeds the result back, and the loop ends when the model answers in plain text. |
|
agent-harness
command
Command agent-harness demonstrates the stateful harness layer: a session persisted as a JSONL file survives process restarts, prompts reconstruct their context from the tree, and oversized history is compacted automatically.
|
Command agent-harness demonstrates the stateful harness layer: a session persisted as a JSONL file survives process restarts, prompts reconstruct their context from the tree, and oversized history is compacted automatically. |
|
agent-stream
command
Command agent-stream consumes an agent run as a live event stream: model text deltas print as they arrive, and tool lifecycle events interleave in real time.
|
Command agent-stream consumes an agent run as a live event stream: model text deltas print as they arrive, and tool lifecycle events interleave in real time. |
|
agent-subagent
command
Command agent-subagent nests one agent inside another as a tool via agent.AsTool: the outer agent delegates research questions to an inner agent bound to its own prompt, each invocation running in an isolated session.
|
Command agent-subagent nests one agent inside another as a tool via agent.AsTool: the outer agent delegates research questions to an inner agent bound to its own prompt, each invocation running in an isolated session. |
|
agnes-image
command
Command agnes-image generates and edits images with the Agnes Image API.
|
Command agnes-image generates and edits images with the Agnes Image API. |
|
image-gen
command
Command image-gen generates an image with gpt-image-2 and writes it to disk.
|
Command image-gen generates an image with gpt-image-2 and writes it to disk. |
|
middleware
command
Command middleware shows composing a bare provider with rate limiting, retries, and observability via ai.Chain.
|
Command middleware shows composing a bare provider with rate limiting, retries, and observability via ai.Chain. |
|
provider-switch
command
Command provider-switch sends one prompt through any built-in provider package while keeping the portable ai.Request unchanged.
|
Command provider-switch sends one prompt through any built-in provider package while keeping the portable ai.Request unchanged. |
|
rerank
command
Command rerank demonstrates document reranking with the Cohere adapter and compatible services (SiliconFlow, Jina AI, Together AI, or local vLLM/TEI).
|
Command rerank demonstrates document reranking with the Cohere adapter and compatible services (SiliconFlow, Jina AI, Together AI, or local vLLM/TEI). |
|
structured
command
Command structured extracts typed data from free text with ai.GenerateTyped; the JSON schema is derived from the Go struct.
|
Command structured extracts typed data from free text with ai.GenerateTyped; the JSON schema is derived from the Go struct. |
|
team-agent
command
Command team-agent 演示如何使用独立 Agent Session、Continuation 和 Team 组合出一个可恢复的多 Agent 协作流程。
|
Command team-agent 演示如何使用独立 Agent Session、Continuation 和 Team 组合出一个可恢复的多 Agent 协作流程。 |
|
text-stream-anthropic
command
Command text-stream-anthropic streams a message from Anthropic Claude.
|
Command text-stream-anthropic streams a message from Anthropic Claude. |
|
text-stream-gemini
command
Command text-stream-gemini streams a response from Google Gemini.
|
Command text-stream-gemini streams a response from Google Gemini. |
|
text-stream-openai
command
Command text-stream-openai streams a chat completion from OpenAI and prints tokens as they arrive.
|
Command text-stream-openai streams a chat completion from OpenAI and prints tokens as they arrive. |
|
tools
command
Command tools runs a complete tool-calling round trip: the model requests a tool invocation, the program executes it and returns the result, and the model produces the final answer.
|
Command tools runs a complete tool-calling round trip: the model requests a tool invocation, the program executes it and returns the result, and the model produces the final answer. |
|
vision
command
Command vision sends an image to a vision-capable model and asks for a description.
|
Command vision sends an image to a vision-capable model and asks for a description. |
|
internal
|
|
|
coding
Package coding composes the product-level Coding Agent runtime and defines its stable event and state boundaries.
|
Package coding composes the product-level Coding Agent runtime and defines its stable event and state boundaries. |
|
coding/acp
Package acp exposes the Coding Runtime through Agent Client Protocol v1.
|
Package acp exposes the Coding Runtime through Agent Client Protocol v1. |
|
coding/agentplugin
Package agentplugin loads portable Agent Plugins 1.0.0 packages.
|
Package agentplugin loads portable Agent Plugins 1.0.0 packages. |
|
coding/agentprofile
Package agentprofile loads immutable, declarative Coding subagent profiles.
|
Package agentprofile loads immutable, declarative Coding subagent profiles. |
|
coding/approval
Package approval binds durable user decisions to exact coding operations.
|
Package approval binds durable user decisions to exact coding operations. |
|
coding/attachment
Package attachment owns bounded Workspace attachment discovery and resolution.
|
Package attachment owns bounded Workspace attachment discovery and resolution. |
|
coding/changes
Package changes defines the application boundary for read-only workspace change attribution.
|
Package changes defines the application boundary for read-only workspace change attribution. |
|
coding/changes/git
Package git attributes workspace changes relative to an in-memory-owned baseline using fixed read-only Git commands.
|
Package git attributes workspace changes relative to an in-memory-owned baseline using fixed read-only Git commands. |
|
coding/cli
Package cli provides the Cobra command adapter for the coding application.
|
Package cli provides the Cobra command adapter for the coding application. |
|
coding/clipboard
Package clipboard isolates desktop clipboard initialization and image reads from the Coding TUI.
|
Package clipboard isolates desktop clipboard initialization and image reads from the Coding TUI. |
|
coding/config
Package config owns the typed, provenance-preserving configuration used by the coding application.
|
Package config owns the typed, provenance-preserving configuration used by the coding application. |
|
coding/credential
Package credential retrieves provider credentials without putting secrets in application configuration, sessions, logs, or events.
|
Package credential retrieves provider credentials without putting secrets in application configuration, sessions, logs, or events. |
|
coding/execution
Package execution defines validated coding operations, authorization policy, and platform command execution boundaries.
|
Package execution defines validated coding operations, authorization policy, and platform command execution boundaries. |
|
coding/execution/gitcontrol
Package gitcontrol runs the fixed Git plumbing operations required by the Coding Team Worktree control plane.
|
Package gitcontrol runs the fixed Git plumbing operations required by the Coding Team Worktree control plane. |
|
coding/execution/mcpstdio
Package mcpstdio constructs trusted, unsandboxed MCP stdio transports with the Coding Agent's minimal child environment and owned private directories.
|
Package mcpstdio constructs trusted, unsandboxed MCP stdio transports with the Coding Agent's minimal child environment and owned private directories. |
|
coding/execution/sshclient
Package sshclient owns the fixed system OpenSSH process, terminal proxy, and push-only local clipboard upload lifecycle for pips ssh.
|
Package sshclient owns the fixed system OpenSSH process, terminal proxy, and push-only local clipboard upload lifecycle for pips ssh. |
|
coding/generation
Package generation compiles resolved model defaults into a fill-only Agent request policy.
|
Package generation compiles resolved model defaults into a fill-only Agent request policy. |
|
coding/hooks
Package hooks owns the Pips-native Coding lifecycle hook configuration, trust records, and reviewed command protocol.
|
Package hooks owns the Pips-native Coding lifecycle hook configuration, trust records, and reviewed command protocol. |
|
coding/imagebridge
Package imagebridge transports bounded normalized images into one live remote Coding TUI without creating files or durable Runtime events.
|
Package imagebridge transports bounded normalized images into one live remote Coding TUI without creating files or durable Runtime events. |
|
coding/instructions
Package instructions discovers and composes workspace project instructions.
|
Package instructions discovers and composes workspace project instructions. |
|
coding/mcp
Package mcp loads, authorizes, and connects Coding Agent MCP integrations.
|
Package mcp loads, authorizes, and connects Coding Agent MCP integrations. |
|
coding/model
Package model composes a typed coding configuration and credential store into an existing provider-neutral language model.
|
Package model composes a typed coding configuration and credential store into an existing provider-neutral language model. |
|
coding/modelcatalog
Package modelcatalog resolves immutable provider/model snapshots from the local coding configuration.
|
Package modelcatalog resolves immutable provider/model snapshots from the local coding configuration. |
|
coding/observability/otel
Package otel adapts content-free Coding events to OpenTelemetry traces and metrics.
|
Package otel adapts content-free Coding events to OpenTelemetry traces and metrics. |
|
coding/paths
Package paths defines the user-owned filesystem layout of the coding application without creating any files or directories.
|
Package paths defines the user-owned filesystem layout of the coding application without creating any files or directories. |
|
coding/planmode
Package planmode owns the plan-mode state machine, the session-bound plan file, and the model-facing reminder text.
|
Package planmode owns the plan-mode state machine, the session-bound plan file, and the model-facing reminder text. |
|
coding/planreview
Package planreview coordinates the explicit plan-mode decisions surfaced to the user: the enter approval and the exit review.
|
Package planreview coordinates the explicit plan-mode decisions surfaced to the user: the enter approval and the exit review. |
|
coding/question
Package question defines provider-neutral structured user questions.
|
Package question defines provider-neutral structured user questions. |
|
coding/resource
Package resource loads declarative Coding Agent resources from user and trusted project scopes.
|
Package resource loads declarative Coding Agent resources from user and trusted project scopes. |
|
coding/runtimecontrol
Package runtimecontrol owns replacement of one active Coding Runtime.
|
Package runtimecontrol owns replacement of one active Coding Runtime. |
|
coding/session
Package session adds coding-application identity and single-writer ownership to the durable Harness session repository.
|
Package session adds coding-application identity and single-writer ownership to the durable Harness session repository. |
|
coding/skillsettings
Package skillsettings owns trusted project-local Skill enablement policy.
|
Package skillsettings owns trusted project-local Skill enablement policy. |
|
coding/statusline
Package statusline owns the closed inventory and ordering contract for TUI status-line fields.
|
Package statusline owns the closed inventory and ordering contract for TUI status-line fields. |
|
coding/subagent
Package subagent owns durable, read-only specialist executions for the Coding application.
|
Package subagent owns durable, read-only specialist executions for the Coding application. |
|
coding/tasklist
Package tasklist owns the bounded update_plan contract and its durable projection from assistant tool calls.
|
Package tasklist owns the bounded update_plan contract and its durable projection from assistant tool calls. |
|
coding/teamcontrol
Package teamcontrol persists operator control intent for Coding Teams.
|
Package teamcontrol persists operator control intent for Coding Teams. |
|
coding/teamintegration
Package teamintegration composes captured Coding Team results and applies an approved typed manifest without changing parent Git metadata.
|
Package teamintegration composes captured Coding Team results and applies an approved typed manifest without changing parent Git metadata. |
|
coding/teamstate
Package teamstate persists Coding Team application resource bindings.
|
Package teamstate persists Coding Team application resource bindings. |
|
coding/teamworktree
Package teamworktree controls Coding Team Attempt Worktrees and durable Git result refs.
|
Package teamworktree controls Coding Team Attempt Worktrees and durable Git result refs. |
|
coding/tools
Package tools implements application-owned coding tools for one workspace.
|
Package tools implements application-owned coding tools for one workspace. |
|
coding/tools/patch
Package patch parses and applies the bounded, model-facing patch grammar used by the coding application.
|
Package patch parses and applies the bounded, model-facing patch grammar used by the coding application. |
|
coding/tui
Package tui presents the Coding Runtime as a terminal-first chat interface.
|
Package tui presents the Coding Runtime as a terminal-first chat interface. |
|
coding/workspace
Package workspace identifies the filesystem root owned by a coding session and persists explicit user trust outside that root.
|
Package workspace identifies the filesystem root owned by a coding session and persists explicit user trust outside that root. |
|
jsonx
Package jsonx provides strict JSON decoding for internal stores and protocols.
|
Package jsonx provides strict JSON decoding for internal stores and protocols. |
|
Package workflow compiles versioned, declarative workflow definitions into immutable in-process execution plans.
|
Package workflow compiles versioned, declarative workflow definitions into immutable in-process execution plans. |
Click to show internal directories.
Click to hide internal directories.





