ah-dev
SKILL.md
ah-cli Development Guide
Read This First
Start with:
ah-cli/CLAUDE.md- the relevant package directory
- the small reference files in this skill
Do not design against old connect or connect-ticket assumptions.
Repo Shape
ah-cli/
├── packages/
│ ├── cli/
│ ├── ui/
│ ├── protocol/
│ └── worker/
├── tests/
├── README.md
└── CLAUDE.md
Current Product Truths
packages/cli/is the local daemon runtime and command surface.packages/ui/is the local Web UI, not a public hosted control plane.packages/worker/is the Bridge Worker for provider traffic.packages/protocol/owns the bridge message contracts.- Providers connect the daemon to the outside world:
agents-hotgeneric-a2a
Routing by Change Type
Daemon or local runtime
Look in:
packages/cli/src/daemon/packages/cli/src/providers/packages/cli/src/commands/packages/cli/src/adapters/
Local Web UI
Look in:
packages/ui/packages/cli/src/ui/
Bridge Worker
Look in:
packages/worker/src/packages/protocol/src/
Runtime profiles
Look in:
packages/cli/src/adapters/profiles.tspackages/cli/src/daemon/runtime.tspackages/protocol/src/messages.ts
If you widen runtime support, audit the protocol too. Some bridge-level types still assume older runtime shapes.
External A2A behavior
If the change affects actual A2A 1.0 semantics, also inspect the main repo:
/Users/kcsx/Project/kcsx/agents-hot/src/lib/a2a//Users/kcsx/Project/kcsx/agents-hot/src/app/api/a2a/
ah-cli is only one part of the end-to-end A2A system.
Development Workflow
cd /Users/kcsx/Project/kcsx/agents-hot/ah-cli
pnpm install
pnpm build
pnpm exec vitest run
Useful targeted commands:
pnpm -C /Users/kcsx/Project/kcsx/agents-hot/ah-cli build
pnpm -C /Users/kcsx/Project/kcsx/agents-hot/ah-cli exec vitest run
pnpm -C /Users/kcsx/Project/kcsx/agents-hot/ah-cli lint
Treat lint debt carefully. Distinguish pre-existing failures from regressions introduced by your change.
Integration Checks
If you touched CLI behavior, verify with real commands:
node packages/cli/dist/index.js help --json
ah daemon start
ah agent list
ah chat <local-agent> "hello"
If you touched provider or bridge behavior, also verify:
- local daemon path
- provider exposure path
- network path or remote smoke test
Deployment Notes
CLI package
- npm package name:
@annals/ah-cli - executable:
ah
Mac Mini runtime
Remote runtime path currently lives under:
/Users/yan/agents-hot/ah-cli
If the user asks to update the remote runtime, use the macmini skill from the main repo context.
References
references/architecture.mdreferences/protocol-reference.md../ah-creator/references/cli-reference.md
Weekly Installs
4
Source
agents.hot/skil…s/ah-devFirst Seen
3 days ago
Installed on
claude-code4
mcpjam1
kilo1
junie1
windsurf1
zencoder1