pip install agent-doc==0.35.569 Copy PIP instructions
agent-doc turns an ordinary markdown file into a live session with an AI coding agent. You write in the document, press a hotkey (or just keep typing), and the agent reads what you changed and writes its answer back into the same file. Nothing scrolls away: you can reorganize, annotate, and prune the conversation like any other document, and every turn is committed to git.
Alpha software. Actively developed; commands and frontmatter may change between versions. Single-user only: use a private git repository (see Security).
From a clean machine to your first agent turn. Each step links to the full guide if you need more.
You need: git, tmux, and one agent CLI that already works on its own in a terminal: Claude Code (claude), Codex, Grok Build, or OpenCode. agent-doc drives that agent; it does not replace it or hold your API keys.
curl -fsSL https://raw.githubusercontent.com/btakita/agent-doc/main/install.sh | sh agent-doc --version pip install agent-doc and brew install btakita/tap/agent-doc also work. If the installer prints a PATH note, add that line to your shell profile. See Installation.
cd your-project agent-doc init agent-doc skill install --harness claude # or: codex, grok, opencode, --all agent-doc init creates .agent-doc/ (local runtime state: add it to .gitignore) plus runbooks/ and okf/ reference files for the agent. skill install teaches your agent the agent-doc workflow by writing its instructions where that agent looks, for example .claude/skills/agent-doc/ for Claude Code. Run skill install with your harness even if init already installed one: from a plain terminal, init cannot tell which agent you use. The instruction files are regenerated on upgrade; commit them if teammates use agent-doc in the same repository.
agent-doc plugin install jetbrains # or: vscode Restart the IDE if it asks you to. The plugin gives you a Run Agent Doc action, live merging while the agent writes, and highlighting. Without a plugin, everything below still works from a terminal. See Editor Integration.
agent-doc init notes.md "My Topic" Open notes.md and write a request at the end, under ## User. For example, "Summarize what this repository does."
5. Run the first turn. Pick whichever fits how you work:
The answer is written into notes.md as a ## Assistant block and the turn is committed to git. Add another ## User block below it and run again; that is the whole loop. agent-doc run notes.md --dry-run shows what the agent would receive without sending anything.
What the markers mean. ... pairs are named sections (components) that agent-doc reads and patches, such as agent:exchange for the conversation or agent:run for a work queue. You do not need any for a first session. The icons agent-doc adds to queue items are explained under Queue attributes. See Document Format and Components for the full layout.
If something goes wrong: agent-doc version shows which binary, native library, and plugin versions are in use, and agent-doc env reports what agent-doc sees of your terminal and tmux. A step-by-step version of this path, with troubleshooting, lives in the Quick Start.
Terminal chats are ephemeral. A document is a workspace you curate:
The Rust binary owns every deterministic step (diffing, merging, routing, git); the bundled skill instructions tell the agent how to take part. See Architecture for the full picture.
The plugins add realtime sync, tmux layout mirroring (one pane per visible document), and highlighting for agent-doc structures. See Editor Integration.
agent-doc skill install --harness installs the matching instructions (or --all for every harness; Cursor rules and a generic target are also available). To pick which agent a document's pane runs, set agent: in its frontmatter (claude, codex, grok, or opencode). See Agent Backends.
agent-doc prefixes each row in an agent:run section with its state:
A session document with an agent:run section keeps this legend on one line at the end of its agent:status section (hide it with queue-legend=off on the status marker), and agent-doc queue --help prints it. See Queue Markers for the full legend, including the [#owner#N], ⟦blocked by …⟧ and ⟦effect:N⟧ annotations. Completed queue rows also retain ⟦addressed-at:…⟧; supported editors rank the newest three as ①/②/③ with graded, caret-dismissible highlights.
agent-doc is designed for single-user, local operation. Documents, snapshots, and exchange history live on your filesystem and are committed to a git repository.
Planned: collaborative security for web/networked deployments (multi-user access control, session isolation, content scanning, compartmented access).
Licensed under the Apache License, Version 2.0 (Apache-2.0).
1 file in this release has provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
1 file in this release has been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




