membuf
v0.1.0
Published
Ref-first doc lookup CLI for AI agents
Readme
agent-doc
Ref-first doc lookup CLI for AI agents. Optimized for minimal context and incremental retrieval.
Install (npm)
npm install -g @agent-doc/agent-docThe npm package includes a small wrapper (bin/agent-doc) and a postinstall script that downloads the platform-specific native binary from GitHub Releases.
Environment variables:
AGENT_DOC_SKIP_DOWNLOAD=1- Skip binary download during installAGENT_DOC_BIN_URL_BASE- Override the binary download base URL
Usage
agent-doc --helpExample flow:
agent-doc search "useState" --doc react
agent-doc open @d1 --toc
agent-doc find @d1 "examples"
agent-doc get @h3 --lines 30
agent-doc expand @h3 --more-lines 30Build from source
cargo build --releaseLicense
Apache-2.0
