Documentation
¶
Overview ¶
testagent is a mock terminal agent for UI and integration testing. It emulates Claude Code (and, eventually, Codex / Gemini / etc.) without calling any LLM APIs.
Argv shape:
testagent [global-flags] <subcommand> [subcommand-flags] [positional]
Bare invocation (no subcommand keyword) defaults to the claude subcommand for back-compat with v0 scripts that pre-date the cobra split.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
claude
Package claude implements testagent's "claude" subcommand — the v1 drop-in fake for Claude Code.
|
Package claude implements testagent's "claude" subcommand — the v1 drop-in fake for Claude Code. |
|
codex
Package codex implements testagent's "codex" subcommand — the v1 fake for OpenAI's Codex CLI.
|
Package codex implements testagent's "codex" subcommand — the v1 fake for OpenAI's Codex CLI. |
|
internal
|
|
|
codexhooks
Package codexhooks runs Codex-shaped hooks.
|
Package codexhooks runs Codex-shaped hooks. |
|
engine
Package engine drives the interactive testagent loop.
|
Package engine drives the interactive testagent loop. |
|
hooks
Package hooks fires Claude-Code-shaped hook events.
|
Package hooks fires Claude-Code-shaped hook events. |
|
mcp
Package mcp provides an HTTP MCP client.
|
Package mcp provides an HTTP MCP client. |
|
render
Package render holds testagent's intent-named styling tokens, inspired by Catppuccin Mocha.
|
Package render holds testagent's intent-named styling tokens, inspired by Catppuccin Mocha. |
|
rootflags
Package rootflags holds the persistent flags cobra binds on the root command.
|
Package rootflags holds the persistent flags cobra binds on the root command. |
|
shellrun
Package shellrun spawns shell commands with cross-platform process-tree teardown semantics.
|
Package shellrun spawns shell commands with cross-platform process-tree teardown semantics. |
|
slash
Package slash implements the slash-command grammar for driving UI primitives interactively.
|
Package slash implements the slash-command grammar for driving UI primitives interactively. |
Click to show internal directories.
Click to hide internal directories.
