agent-pro

command module
v0.0.195 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 5 Imported by: 0

README

agent-pro

Standalone web UI for headless agent execution traces.

Usage

go run ./cmd/agent-traces --port 9898 --open

By default the viewer discovers trace roots from:

  • ~/.agent-traces
  • ~/.*/agent-traces
  • ./.agent-traces
  • ./.*/agent-traces

Use --data-dir to point at a specific knowledge-hub style data directory:

go run ./cmd/agent-traces --data-dir /path/to/.knowledge-hub

You can also pass one source argument:

# Single JSONL event file
go run ./cmd/agent-traces /path/to/events.jsonl

# One trace session directory
go run ./cmd/agent-traces /path/to/agent-traces/20260602-123456.000000

# A root directory containing multiple trace session directories
go run ./cmd/agent-traces /path/to/agent-traces

To mount the app under a sub-route, pass --route-prefix:

go run ./cmd/agent-traces --route-prefix agent-traces

Then open http://localhost:<port>/agent-traces/.

Development

Dev Mode

Dev mode starts Vite automatically for frontend hot-reload and proxies requests through the Go backend:

go run ./cmd/agent-traces --dev

Dev mode also supports route prefixes:

go run ./cmd/agent-traces --dev --route-prefix my-app

The Go server starts and proxies to a Vite dev server on a free port, so you get instant hot-reload for React changes.

Release Mode (Production Build)
  1. Build the frontend:
go run ./script/build
  1. Run the server (embeds the built frontend):
go run ./cmd/agent-traces
Build Binary
go run ./script/build && go build -o /tmp/agent-traces ./cmd/agent-traces

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
agent
acp
agentrunner
Package agentrunner provides lean parent-agent detection with no heavy deps.
Package agentrunner provides lean parent-agent detection with no heavy deps.
cli/claude
Package claude implements a registry.Agent that shells out to the Claude Code CLI in headless mode and parses its stream-json NDJSON output via the agent/event/claude_types package.
Package claude implements a registry.Agent that shells out to the Claude Code CLI in headless mode and parses its stream-json NDJSON output via the agent/event/claude_types package.
codex/argv
Package argv builds Codex CLI command lines from structured options.
Package argv builds Codex CLI command lines from structured options.
codex/models
Package models lists available Codex CLI models from on-disk files only (~/.codex/models_cache.json and config.toml).
Package models lists available Codex CLI models from on-disk files only (~/.codex/models_cache.json and config.toml).
commandcode
Package commandcode reads Command Code (cmd) account data over the public HTTP API, so account commands work without the Node CLI installed.
Package commandcode reads Command Code (cmd) account data over the public HTTP API, so account commands work without the Node CLI installed.
exec/tool_resolve
Package toolresolve provides centralized binary resolution that respects both the system PATH, the well-known extra install paths (e.g.
Package toolresolve provides centralized binary resolution that respects both the system PATH, the well-known extra install paths (e.g.
grok/models
Package models lists available Grok CLI models from on-disk files only (~/.grok/config.toml and models_cache.json).
Package models lists available Grok CLI models from on-disk files only (~/.grok/config.toml and models_cache.json).
grok/view
Package view loads Grok CLI sessions, converts updates.jsonl to AgentEvents fully in memory, and supports print / follow / read-only web viewing.
Package view loads Grok CLI sessions, converts updates.jsonl to AgentEvents fully in memory, and supports print / follow / read-only web viewing.
llm/llm-mock command
llm/llm-mock/server
Package server provides an in-process llm-mock HTTP server.
Package server provides an in-process llm-mock HTTP server.
llm/mock-mcp command
teststdio
Package teststdio serializes process-global stdout/stderr redirection for parallel doctest leaves across agent/* packages that share one go test binary.
Package teststdio serializes process-global stdout/stderr redirection for parallel doctest leaves across agent/* packages that share one go test binary.
Package agent_trace is deprecated: trace types and adapter registration moved into agent/event (traceview, traceparse, summary, codex_types).
Package agent_trace is deprecated: trace types and adapter registration moved into agent/event (traceview, traceparse, summary, codex_types).
codex
Package codex is deprecated: the Codex trace adapter moved to agent/event/traceparse.
Package codex is deprecated: the Codex trace adapter moved to agent/event/traceparse.
cursor
Package cursor is deprecated: the Cursor trace adapter moved to agent/event/traceparse.
Package cursor is deprecated: the Cursor trace adapter moved to agent/event/traceparse.
opencode
Package opencode is deprecated: the Opencode trace adapter moved to agent/event/traceparse.
Package opencode is deprecated: the Opencode trace adapter moved to agent/event/traceparse.
pi
Package pi is deprecated: the Pi trace adapter moved to agent/event/traceparse.
Package pi is deprecated: the Pi trace adapter moved to agent/event/traceparse.
types
Package types is deprecated: all symbols are aliases or delegates to agent/event.
Package types is deprecated: all symbols are aliases or delegates to agent/event.
agents
debug-with-user command
debug-with-user/dialog
Package dialog implements macOS human-in-the-loop dialogs via osascript.
Package dialog implements macOS human-in-the-loop dialogs via osascript.
debug-with-user/run
Package run exposes embedded skill content for agent-pro registration.
Package run exposes embedded skill content for agent-pro registration.
explore command
explore/run
Package main implements the explore sub-agent CLI.
Package main implements the explore sub-agent CLI.
idea-expander command
intent-route command
intent-route/run
Package main implements the intent-route sub-agent CLI.
Package main implements the intent-route sub-agent CLI.
reproduce command
reproduce/run
Package main implements the reproduce sub-agent CLI.
Package main implements the reproduce sub-agent CLI.
run-the-loop/references command
Template for script/debug/<name>/main.go Copy and adapt — do not import this file directly.
Template for script/debug/<name>/main.go Copy and adapt — do not import this file directly.
tdd-expert command
pkgs
agentdriver
Package agentdriver resolves the host process argv used to re-exec into agent-run CLI (ForceNew follow-up and TTY __serve_* children).
Package agentdriver resolves the host process argv used to re-exec into agent-run CLI (ForceNew follow-up and TTY __serve_* children).
agentrunapi
Package agentrunapi provides in-process Classify + AutoSendOrResume for agent-run session lifecycle (run | send | resume) without shelling out to the agent-run binary.
Package agentrunapi provides in-process Classify + AutoSendOrResume for agent-run session lifecycle (run | send | resume) without shelling out to the agent-run binary.
groktty
Package groktty is a compatibility stub for sealed doctest trees that still import this legacy package path.
Package groktty is a compatibility stub for sealed doctest trees that still import this legacy package path.
itermsnapshot
Package itermsnapshot wraps P1 shell/iterm2/snapshot Capture with procresolve agent attach for busy panes only.
Package itermsnapshot wraps P1 shell/iterm2/snapshot Capture with procresolve agent attach for busy panes only.
msgfmt
Package msgfmt formats an ordered chat transcript (oldest → newest) into a plain-text block suitable for injecting into an agent prompt.
Package msgfmt formats an ordered chat transcript (oldest → newest) into a plain-text block suitable for injecting into an agent prompt.
tty/detection/changed
Package changed detects session activity by comparing resting snapshots.
Package changed detects session activity by comparing resting snapshots.
tty/detection/idle
Package idle decides exit-on-idle from snapshot stability + occupy probe.
Package idle decides exit-on-idle from snapshot stability + occupy probe.
tty/detection/occupied
Package occupied classifies live composer occupancy by injecting a space and comparing before/after snapshots.
Package occupied classifies live composer occupancy by injecting a space and comparing before/after snapshots.
ttyrunner
Package ttyrunner is a compatibility shim delegating to pkgs/agenttty.
Package ttyrunner is a compatibility shim delegating to pkgs/agenttty.
utf8util
Package utf8util holds small UTF-8 helpers shared across agent-run packages.
Package utf8util holds small UTF-8 helpers shared across agent-run packages.
script
agent-pro/bundle command
Command bundle builds fat SPA embeds required by agent-pro:
Command bundle builds fat SPA embeds required by agent-pro:
agent-pro/install command
Command install fat-bundles both SPAs agent-pro embeds, then installs the agent-pro binary into $GOPATH/bin (or $GOBIN).
Command install fat-bundles both SPAs agent-pro embeds, then installs the agent-pro binary into $GOPATH/bin (or $GOBIN).
agent-run/install command
Command install builds the agent-run React frontend and installs the agent-run binary into $GOPATH/bin.
Command install builds the agent-run React frontend and installs the agent-run binary into $GOPATH/bin.
agent-traces/install command
Command install builds the React frontend and installs the standalone agent-traces viewer into $GOPATH/bin.
Command install builds the React frontend and installs the standalone agent-traces viewer into $GOPATH/bin.
build-frontend command
debug/agent-run-web-loop command
agent-run-web-loop demos an automated inspect → report loop for agent-run web.
agent-run-web-loop demos an automated inspect → report loop for agent-run web.
debug/git-index-write-retry command
git-index-write-retry — verify CommitWithRetry treats transient index write failures (including "unable to write new index file") as retryable and can complete a commit after interference.
git-index-write-retry — verify CommitWithRetry treats transient index write failures (including "unable to write new index file") as retryable and can complete a commit after interference.
debug/grok-session-cwd-rebind command
grok-session-cwd-rebind: experiment whether Grok session tool cwd can be rebound after the original workspace directory is deleted, by editing session meta files under a custom GROK_HOME.
grok-session-cwd-rebind: experiment whether Grok session tool cwd can be rebound after the original workspace directory is deleted, by editing session meta files under a custom GROK_HOME.
debug/grok-tty-discovery-cancel command
grok-tty-discovery-cancel reproduces the web grok-tty bind race locally.
grok-tty-discovery-cancel reproduces the web grok-tty bind race locally.
debug/grok-writable-probe command
grok-writable-probe captures grok TTY snapshots and compares writable heuristics.
grok-writable-probe captures grok TTY snapshots and compares writable heuristics.
debug/markdown-message-card-render command
markdown-message-card-render: reproduce / verify markdown rendering on thinking progress cards and assistant response message cards.
markdown-message-card-render: reproduce / verify markdown rendering on thinking progress cards and assistant response message cards.
debug/message-card-reorder-followup command
message-card-reorder-followup: reproduce / verify live message-card reorder on grok-tty follow-up (second user bubble causes first user card to jump).
message-card-reorder-followup: reproduce / verify live message-card reorder on grok-tty follow-up (second user bubble causes first user card to jump).
debug/mobile-terminal-touch-scroll command
mobile-terminal-touch-scroll: reproduce / verify mobile touch pan scrolling of the terminal modal (xterm scrollback) via playwright-debug mobile viewport.
mobile-terminal-touch-scroll: reproduce / verify mobile touch pan scrolling of the terminal modal (xterm scrollback) via playwright-debug mobile viewport.
debug/open-attach-fidelity-attachhost command
Command attachhost is a doctest helper: ttywatch.AttachWriter for open-attach-fidelity.
Command attachhost is a doctest helper: ttywatch.AttachWriter for open-attach-fidelity.
debug/open-bind-parallel-flake command
open-bind-parallel-flake: reproduce / verify parallel doctest flakes in status-resume/run-open-background-bind.
open-bind-parallel-flake: reproduce / verify parallel doctest flakes in status-resume/run-open-background-bind.
debug/open-bind-smoke command
open-bind-smoke: reproduce / verify agent-run run --open grok session bind.
open-bind-smoke: reproduce / verify agent-run run --open grok session bind.
debug/open-exit-runner-exited command
open-exit-runner-exited reproduces / verifies status after /exit inside grok-tty.
open-exit-runner-exited reproduces / verifies status after /exit inside grok-tty.
debug/open-resume-e2e command
open-resume-e2e: end-to-end health check for open → Paris → /exit → resume --open.
open-resume-e2e: end-to-end health check for open → Paris → /exit → resume --open.
debug/session-card-id-footer-capped command
session-card-id-footer-capped: reproduce / verify home session card bottom footer showing mid-ellipsis shortSessionId under a prompt title.
session-card-id-footer-capped: reproduce / verify home session card bottom footer showing mid-ellipsis shortSessionId under a prompt title.
debug/session-list-ux-enhance command
session-list-ux-enhance: reproduce / verify session list home UX:
session-list-ux-enhance: reproduce / verify session list home UX:
dev command
github/release-assets command
Pack two release asset archives from fat frontend dist trees for hydrate downloads.
Pack two release asset archives from fat frontend dist trees for hydrate downloads.
grok/show-usage command
install command
Command install is a compatibility entrypoint that delegates to script/agent-pro/install (fat both SPAs + go install ./cmd/agent-pro).
Command install is a compatibility entrypoint that delegates to script/agent-pro/install (fat both SPAs + go install ./cmd/agent-pro).
sudo-nopasswd-poc command
Conceptual POC for passwordless-sudo setup used by ws-proxy vpn.
Conceptual POC for passwordless-sudo setup used by ws-proxy vpn.
tests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL