agent-pro

command module
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 5 Imported by: 0

README

agent-traces

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.
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.
llm/llm-mock command
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
brainstorm command
brainstorm/run
Package run implements the brainstorm sub-agent CLI.
Package run implements the brainstorm sub-agent CLI.
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.
followup command
followup/run
Package run implements the followup sub-agent CLI.
Package run implements the followup 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.
loop-workflow/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.
reproduce command
reproduce/run
Package main implements the reproduce sub-agent CLI.
Package main implements the reproduce sub-agent CLI.
tdd-expert command
pkgs
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.
ttyrunner
Package ttyrunner is a compatibility shim delegating to pkgs/agenttty.
Package ttyrunner is a compatibility shim delegating to pkgs/agenttty.
script
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/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.
dev command
grok/show-usage command
install command
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.
tty-watch command
tty-watch/ttywatchtest/lockholder command
Command lockholder holds an exclusive flock on a path so tty-watch doctests can assert registry-lock-busy diagnostics against a known holder PID/command.
Command lockholder holds an exclusive flock on a path so tty-watch doctests can assert registry-lock-busy diagnostics against a known holder PID/command.

Jump to

Keyboard shortcuts

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