AgentPad is a local-first review workspace for humans and coding agents. Open a real file, discuss it in threaded comments anchored to exact text, and let agents update the document through the same collaboration layer.
agentpad-vertical-codex-demo.mp4
- The
agentpadCLI opens a real local file and talks to the AgentPad server. - The server keeps comments, anchors, and edits in sync while preserving the file as a normal file on disk.
- The browser UI is where humans and agents review the document together.
- Edits still land back in the local file, so you can keep using your normal tools and workflows.
flowchart LR
C["agentpad CLI"] --> S["AgentPad server"]
B["Browser UI"] --> S
A["Codex or other agent"] --> S
S <--> F["Local file"]
go install github.com/cyrusaf/agentpad@latest
agentpad install-skillThe installed skill is intentionally small. The detailed Codex workflow now lives in:
agentpad agent-usageagentpad serveThen open http://127.0.0.1:8080 in your browser.
agentpad open /path/to/file.mdThat opens the local file in the AgentPad UI so you can read it, comment on it, and share the same document with an agent.
Use $agentpad to review /path/to/file.md in AgentPad.
Run `agentpad agent-usage` first and follow that workflow.
The CLI is mainly useful for agents and automation once the basic workflow above is working.
agentpad open ./plan.md --json
agentpad read ./plan.md --quote "rollback signal" --prefix "define the " --json
agentpad edit ./plan.md --anchor-file /tmp/anchor.json --text "rollback threshold" --json
agentpad threads create ./plan.md --start 120 --end 168 --body "Split this into two PRs." --jsonFor agent-driven edits, the preferred flow is:
agentpad read ... --jsonto get a reusableanchoragentpad edit ... --anchor-json/--anchor-file --text ...to apply the edit through AgentPad's collab engine- If the edit is explicitly addressing an existing comment, use
agentpad edit --thread <thread-id> ...so the thread follows the replacement text - If a thread is already unresolved, use
agentpad threads reanchor <file> <thread-id> --anchor-file ...or--start/--endafter choosing the new span - For multiline text, use
--text-fileor--body-fileinstead of shell-escaped\n
Low-level edit --start/--end --base-revision ... still exists, but anchor-first editing is the safer default for concurrent human + agent work.
agentpad install-skill is the fastest path. It installs a small routing skill that points Codex at agentpad agent-usage for the current workflow. If you want to install from a local checkout manually instead, link skills/agentpad/SKILL.md into ${CODEX_HOME:-$HOME/.codex}/skills/agentpad.
AgentPad reads agentpad.toml from the current working directory, then falls back to ~/.agentpad/config.toml when no local config is present. Override with --config or AGENTPAD_CONFIG.
Key sections:
[server]: listen address and base URL[storage]: root directory for AgentPad runtime metadata[identity]: default display name for the CLI
Start the server:
go run . serveRun the web app in another terminal:
cd web
npm install
npm run devBackend:
go test ./...Frontend:
cd web
npm test
npm run build