Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
core-agent
command
Command core-agent is a thin CLI wrapper around the core-agent library.
|
Command core-agent is a thin CLI wrapper around the core-agent library. |
|
core-agent-tui
command
Command core-agent-tui is the operator-facing TUI consumer of attach-mode — the remote client for an agent running elsewhere (on a workstation, in a K8s pod, or as a peer-registered fleet member).
|
Command core-agent-tui is the operator-facing TUI consumer of attach-mode — the remote client for an agent running elsewhere (on a workstation, in a K8s pod, or as a peer-registered fleet member). |
|
k8s-event-watcher
command
Command k8s-event-watcher is the v2.6 semi-autonomous-triage sidecar.
|
Command k8s-event-watcher is the v2.6 semi-autonomous-triage sidecar. |
|
dev
|
|
|
parallel-probe
command
Diagnostic: measure how often the model emits multiple tool calls per assistant turn.
|
Diagnostic: measure how often the model emits multiple tool calls per assistant turn. |
|
regen-builtin-pricing
command
Generator for internal/pricing/builtin.go.
|
Generator for internal/pricing/builtin.go. |
|
smoke/cmd/inspect-grounding
command
Command inspect-grounding dumps every agent_eventlog row whose author starts with "gemini/" from a SQLite eventlog database.
|
Command inspect-grounding dumps every agent_eventlog row whose author starts with "gemini/" from a SQLite eventlog database. |
|
uat/scheduled-monitor
command
UAT driver for the scheduled-monitoring feature (docs/scheduled-monitoring-design.md).
|
UAT driver for the scheduled-monitoring feature (docs/scheduled-monitoring-design.md). |
|
examples
|
|
|
autonomous
command
Example: drive an agent through agent.RunAutonomous end-to-end with no LLM credentials.
|
Example: drive an agent through agent.RunAutonomous end-to-end with no LLM credentials. |
|
autonomous-handle
command
Example: drive an autonomous run via the AutonomousHandle API.
|
Example: drive an autonomous run via the AutonomousHandle API. |
|
autonomous-resume
command
Example: drive an agent through agent.RunAutonomous, simulate a crash via a tight max-turns budget, then continue the run with agent.ResumeAutonomous against the same SQLite event log.
|
Example: drive an agent through agent.RunAutonomous, simulate a crash via a tight max-turns budget, then continue the run with agent.ResumeAutonomous against the same SQLite event log. |
|
background-monitor
command
Example: wire a BackgroundAgentManager and demonstrate the in-process spawn pathway end-to-end with no LLM credentials.
|
Example: wire a BackgroundAgentManager and demonstrate the in-process spawn pathway end-to-end with no LLM credentials. |
|
basic
command
Example: minimal multi-turn agent using the core-agent library directly (no CLI).
|
Example: minimal multi-turn agent using the core-agent library directly (no CLI). |
|
replay
command
Example: drive the agent loop offline by replaying a recorded JSONL transcript through the mock "scripted" provider — no LLM credentials required.
|
Example: drive the agent loop offline by replaying a recorded JSONL transcript through the mock "scripted" provider — no LLM credentials required. |
|
scheduled-monitor
command
Example: the supervision-tree topology from docs/scheduled-monitoring-design.md, end-to-end with no LLM credentials.
|
Example: the supervision-tree topology from docs/scheduled-monitoring-design.md, end-to-end with no LLM credentials. |
|
streaming
command
Example: drive the agent with the standard built-in tools (read_file, list_dir, bash, etc.) and render the response as an interactive chat session via runner.WriteEvents.
|
Example: drive the agent with the standard built-in tools (read_file, list_dir, bash, etc.) and render the response as an interactive chat session via runner.WriteEvents. |
|
with-subagent
command
Example: drive a parent agent with a subagent end-to-end with no LLM credentials.
|
Example: drive a parent agent with a subagent end-to-end with no LLM credentials. |
|
with-tools
command
Example: an agent with one custom tool, MCP servers loaded from .agents/mcp.json (if present), and SKILL.md skills from .agents/skills/ (if any).
|
Example: an agent with one custom tool, MCP servers loaded from .agents/mcp.json (if present), and SKILL.md skills from .agents/skills/ (if any). |
|
internal
|
|
|
attachclient
Package attachclient is the shared client for attach-mode endpoints, used by both `core-agent attach`/`ls` (in cmd/core-agent) and `core-agent-tui` (in cmd/core-agent-tui).
|
Package attachclient is the shared client for attach-mode endpoints, used by both `core-agent attach`/`ls` (in cmd/core-agent) and `core-agent-tui` (in cmd/core-agent-tui). |
|
coretuiremote
Package coretuiremote adapts a remote core-agent (reached over the pkg/attach HTTP+SSE protocol via internal/attachclient) into a go-steer/core-tui Agent.
|
Package coretuiremote adapts a remote core-agent (reached over the pkg/attach HTTP+SSE protocol via internal/attachclient) into a go-steer/core-tui Agent. |
|
pricing
Package pricing resolves a model's per-million-token rates across a layered set of sources so usage costs stay accurate as new models ship and operators add overrides.
|
Package pricing resolves a model's per-million-token rates across a layered set of sources so usage costs stay accurate as new models ship and operators add overrides. |
|
testutil
Package testutil provides shared test helpers for Cogo, most notably FakeModel — a deterministic implementation of google.golang.org/adk/model.LLM that lets us drive end-to-end agent tests without burning real tokens.
|
Package testutil provides shared test helpers for Cogo, most notably FakeModel — a deterministic implementation of google.golang.org/adk/model.LLM that lets us drive end-to-end agent tests without burning real tokens. |
|
version
Package version centralizes build-identity reporting for both cmd/core-agent and cmd/core-agent-tui.
|
Package version centralizes build-identity reporting for both cmd/core-agent and cmd/core-agent-tui. |
|
vertexcache
Package vertexcache owns the lifecycle of a single Vertex explicit context cache — Create at agent startup, Refresh on TTL pressure, Delete on session unregister.
|
Package vertexcache owns the lifecycle of a single Vertex explicit context cache — Create at agent startup, Refresh on TTL pressure, Delete on session unregister. |
|
webui
Package webui embeds a pinned release of the mast-web operator UI (github.com/go-steer/mast-web) so the agent binary can serve it at /ui/* on its attach listener when the --ui flag is set.
|
Package webui embeds a pinned release of the mast-web operator UI (github.com/go-steer/mast-web) so the agent binary can serve it at /ui/* on its attach listener when the --ui flag is set. |
|
pkg
|
|
|
agent
Package agent wraps the Google ADK runner with sensible defaults (streaming mode, in-memory session service, app name) so consumers hit the same shape regardless of whether they're driving the agent from a one-shot CLI, a REPL, or an HTTP handler.
|
Package agent wraps the Google ADK runner with sensible defaults (streaming mode, in-memory session service, app name) so consumers hit the same shape regardless of whether they're driving the agent from a one-shot CLI, a REPL, or an HTTP handler. |
|
agentenv
Package agentenv parses the optional .agents/env.yaml (or .env.json) manifest and produces a Resolver that agent-bundle loaders can use to interpolate ${env:VAR} references in AGENTS.md, skill files, and mcp.json values.
|
Package agentenv parses the optional .agents/env.yaml (or .env.json) manifest and produces a Resolver that agent-bundle loaders can use to interpolate ${env:VAR} references in AGENTS.md, skill files, and mcp.json values. |
|
attach
Package attach implements live-tail + inject over HTTP/SSE for headless core-agent deployments.
|
Package attach implements live-tail + inject over HTTP/SSE for headless core-agent deployments. |
|
auth
Package auth defines the per-caller identity primitive used by the multi-session attach layer.
|
Package auth defines the per-caller identity primitive used by the multi-session attach layer. |
|
config
Package config defines the on-disk schema for `.agents/config.json` and the rules for discovering, parsing, and merging it with built-in defaults.
|
Package config defines the on-disk schema for `.agents/config.json` and the rules for discovering, parsing, and merging it with built-in defaults. |
|
digest
Package digest consolidates the digesting primitives core-agent uses to keep large tool responses out of the parent context.
|
Package digest consolidates the digesting primitives core-agent uses to keep large tool responses out of the parent context. |
|
eventlog
Package eventlog is the durable, append-only audit log that backs agent.Agent's session.Service.
|
Package eventlog is the durable, append-only audit log that backs agent.Agent's session.Service. |
|
hooks
Package hooks dispatches shell commands on agent-side event boundaries.
|
Package hooks dispatches shell commands on agent-side event boundaries. |
|
instruction
Package instruction loads project + user "agent memory" files (typically AGENTS.md) into the system prompt.
|
Package instruction loads project + user "agent memory" files (typically AGENTS.md) into the system prompt. |
|
mcp
Package mcp wires user-configured Model Context Protocol servers into the agent loop.
|
Package mcp wires user-configured Model Context Protocol servers into the agent loop. |
|
models
Package models is the adapter layer between core-agent's configuration and concrete LLM backends.
|
Package models is the adapter layer between core-agent's configuration and concrete LLM backends. |
|
models/anthropic
Package anthropic implements models.Provider for Anthropic / Claude.
|
Package anthropic implements models.Provider for Anthropic / Claude. |
|
models/gemini
Package gemini implements models.Provider for the Gemini family, covering both the public Gemini API (API-key auth) and Vertex AI (Application Default Credentials + GCP project).
|
Package gemini implements models.Provider for the Gemini family, covering both the public Gemini API (API-key auth) and Vertex AI (Application Default Credentials + GCP project). |
|
models/mock
Package mock ships two credential-free LLM providers and a recording wrapper that pair for offline testing of agent flows:
|
Package mock ships two credential-free LLM providers and a recording wrapper that pair for offline testing of agent flows: |
|
modeltier
Package modeltier classifies LLM model IDs into capability tiers (frontier / mid / small) used to tune behavior whose right setting depends on how powerfully the model reasons.
|
Package modeltier classifies LLM model IDs into capability tiers (frontier / mid / small) used to tune behavior whose right setting depends on how powerfully the model reasons. |
|
permissions
Package permissions implements the central permission gate that decides whether each tool invocation may proceed.
|
Package permissions implements the central permission gate that decides whether each tool invocation may proceed. |
|
recording
Package recording wraps an adkmodel.LLM with a JSONL transcript recorder for offline observability and scripted-replay testing.
|
Package recording wraps an adkmodel.LLM with a JSONL transcript recorder for offline observability and scripted-replay testing. |
|
runner
Package runner drives the agent through a real conversation — either a single one-shot prompt (Headless) or a multi-turn stdin REPL (REPL).
|
Package runner drives the agent through a real conversation — either a single one-shot prompt (Headless) or a multi-turn stdin REPL (REPL). |
|
session
Package session writes session transcripts to disk on exit.
|
Package session writes session transcripts to disk on exit. |
|
skills
Package skills loads SKILL.md bundles from .agents/skills/<name>/ and exposes them as an ADK Toolset the agent can invoke.
|
Package skills loads SKILL.md bundles from .agents/skills/<name>/ and exposes them as an ADK Toolset the agent can invoke. |
|
telemetry
Package telemetry initializes OpenTelemetry for the agent loop.
|
Package telemetry initializes OpenTelemetry for the agent loop. |
|
tools
Package tools provides ADK-side helpers for wiring tools into the agent.
|
Package tools provides ADK-side helpers for wiring tools into the agent. |
|
usage
Package usage tracks token + cost accounting for the agent loop.
|
Package usage tracks token + cost accounting for the agent loop. |
Click to show internal directories.
Click to hide internal directories.