System map
Modules, features, glossary and decisions in plain Markdown, browsable in Obsidian, VitePress or GitHub.
Open-source CLI · Rust · local-first
archeology-doc (adoc) inspects new or legacy projects and, with the AI agent you already use, generates a browsable knowledge base, documentation, findings and context for agents. Every claim cites its source as path:line.
$ curl -fsSL https://archeology-doc.com/download/install.sh | sh
Modules, features, glossary and decisions in plain Markdown, browsable in Obsidian, VitePress or GitHub.
Findings by severity: outdated documentation, duplicated rules, conflicting configuration, dead code.
Features ↔ tests, covered and missing scenarios, disabled or empty tests.
AGENTS.md, persistent memory and skills: every AI session starts knowing what exists and where.
Requirement compliance checked against the code, with abandoned changes flagged in review, status and check.
adoc check validates evidence, links and outdated notes; ideal for CI.
Rust computes the deterministic parts; your agent does the interpretation; adoc orchestrates and validates.
adoc scanAI-free inventory: languages, modules, tests, CI, git history and OpenSpec. Honors .gitignore and excludes secrets.
adoc planSplits the work into bounded tasks based on project size: a few tasks for a small one, more for a large one.
adoc inspectYour agent runs each task. It is only marked done if it produced what was asked, with valid evidence.
adoc previewA site with a dashboard: status, findings, questions for the team and FAQ. Or a single HTML report.
adoc syncWhen the code changes, it marks the affected notes as outdated and reopens only those tasks.
One command for your system: it downloads the binary for your platform, verifies its SHA-256 and puts it on your PATH. No Rust needed. Node 18+ only for the VitePress site and the extension.
Terminal
$ curl -fsSL https://archeology-doc.com/download/install.sh | shor download the binary
When downloaded from the browser, macOS quarantines it:
xattr -d com.apple.quarantine adoc archeology-doc, then move both to ~/.local/bin.
Not needed with the terminal command.
Terminal
$ curl -fsSL https://archeology-doc.com/download/install.sh | shor download the binary
Binaries for glibc 2.28 or later (Debian 10, Ubuntu 18.10, RHEL 8 and newer).
PowerShell
> irm https://archeology-doc.com/download/install.ps1 | iexor download the binary
The installer puts it in %LOCALAPPDATA%\Programs\archeology-doc\bin and adds it to your
PATH, without administrator rights. On Windows ARM64 it runs under x64 emulation.
# Requires Rust (rustup.rs). Installs `adoc` into ~/.cargo/bin
git clone https://github.com/jsoncr/archeology-doc.git
cd archeology-doc
installers/install.sh
# or directly with cargo
cargo install --path crates/archeology-cli --lockedVS Code extension
$ code --install-extension jcruz.archeology-docThe .vsix is for offline installs and for editors that don't use the Microsoft Marketplace (Cursor, Windsurf): code --install-extension archeology-doc.vsix.
Extras
# With shared VitePress and the VS Code extension
curl -fsSL https://archeology-doc.com/download/install.sh | sh -s -- --with-vitepress --with-vscode
# Checks requirements: git, Node, VitePress, OpenSpec and agents
adoc doctor
# Only checks whether a new version is available
adoc upgrade --check
# Downloads and installs the new version automatically
adoc upgradeStay up to date: adoc upgrade checks for a new version and updates itself automatically; adoc upgrade --check only checks, without changing anything.
Two equivalent binaries are installed: adoc (short) and archeology-doc.
To uninstall: adoc uninstall (with --purge it also deletes
~/.archeology-doc; your project files are never touched).
| File | Platform | Size | SHA-256 |
|---|---|---|---|
| List available once a release is published. | |||
Verify a download with shasum -a 256 <file> (macOS/Linux) or
Get-FileHash <file> (PowerShell) and compare it with SHA256SUMS.
In your project folder:
cd my-project
adoc init # config + structure
adoc agent use claude # or devin, codex, gemini…
adoc scan # deterministic inventory
adoc plan # tasks sized to the project
adoc inspect # the agent documents
adoc status # where you are and what's next
adoc preview # see the resultadoc status | Summary: progress, pending tasks and the next step (--format json for integrations) |
adoc review | Progress, findings, features without tests |
adoc check | Checklist of what is done and missing, with hints to fix it (exit code for CI) |
adoc sync | Shows changed and uncovered files, marks outdated notes and reopens their tasks |
adoc inspect --resume | Retries failed or interrupted tasks |
adoc task answer T-014 "…" | Answers an agent that asked a question |
adoc task run T-014 -i | Interactive session with the agent |
adoc ask "…?" | Ask about the project → FAQ |
adoc context src/billing/ | Documented context of a code zone for agents and scripts: notes, open findings, tests and dependencies (--format json stable contract) |
adoc graph | Interactive knowledge graph in the browser; --json prints it as JSON |
adoc report | Single HTML report to share |
adoc projects list | All your projects and their progress |
adoc projects delete <name> | Removes a project from the registry; with -d it also deletes its generated files |
adoc agent use claude --model opus | Project agent and model |
adoc config set language es | Interface language: en or es |
adoc doctor | Checks git, Node, VitePress, OpenSpec and agents |
adoc upgrade --check | Only checks whether a new version is available |
adoc upgrade | Downloads and installs the latest version |
adoc uninstall | Removes adoc; --purge also deletes ~/.archeology-doc |
Agent-agnostic: switch agent or model whenever you like. No CLI? Export the tasks and do them by hand.
adoc agent list # available; * = active
adoc agent use devin --model opus # project agent and model
adoc inspect --agent codex # just for this runEverything generated, in view while you code. Also works in Cursor, Windsurf and Devin Desktop.
Only results, in Markdown. Working state lives outside the repository.
my-project/
├── archeology-doc.toml # config + ID
├── AGENTS.md # context for agents
├── knowledge/ # Obsidian vault
│ ├── 00-overview.md
│ ├── modules/ features/ findings/
│ ├── tests/ glossary/ faq/
│ └── memory/
├── docs/ # VitePress site
└── llms.txtpath:linearcheology-doc never reads secret files and tells your agent not to either. This is what is left out by default:
.env*, *.pem, *.key, credentials*, SSH keys (id_rsa, id_ed25519…), keystores (*.p12, *.pfx, *.jks), .npmrc, .netrc, .git-credentials, *.tfvars, *.tfstate, secrets.*. They never reach the inventory or the prompts.
A repository's configuration can add patterns ([scan] secrets_patterns) but never remove the built-in ones.
Every task tells the agent not to read or cite those files, and never to copy keys, tokens, passwords or connection strings into the notes: only that they exist and where.
Plus vendor/, node_modules/, target/, dist/ and minified files. Add your own with [paths] exclude. Symbolic links are not followed.
Tasks, logs and approvals live in ~/.archeology-doc/, not in your repository, and adoc never writes through a link that points outside the project.
adoc only talks to the network to check for updates (adoc upgrade, adoc doctor; turn it off with ADOC_NO_UPDATE_CHECK=1). The agent you choose talks to its own provider. Third-party adapters need your approval (adoc agent trust).
# archeology-doc.toml: added to the built-in rules
[scan]
secrets_patterns = ["*.vault", "config/prod.*"]
[paths]
exclude = ["**/fixtures/**", "legacy/generated/**"]Detection works by file name: a secret hard-coded in regular source code can still reach the agent. The agent is told not to copy it, but rotate it anyway and move it to an excluded file.
The whole project lives on GitHub under the MIT license: use it, modify it and share it freely.
crates/: the adoc CLI plus the core, scan, agents, OpenSpec and registry crates.
extension/: tasks, findings, knowledge graph and questions inside the editor.
install.sh and install.ps1: one-command install for macOS, Linux and Windows, with SHA-256 verification.
templates/: the Markdown notes and prompts the agents fill in, in English and Spanish.
Fork the repository and create a branch for your change.
Run cargo test --workspace (and npm run compile in extension/ if you touch it).
Open a pull request describing what changes and why. For larger ideas, open an issue first.
# CLI (requires Rust)
git clone https://github.com/jsoncr/archeology-doc
cd archeology-doc
cargo install --path crates/archeology-cli
# VS Code extension (requires Node 18+) → .vsix
cd extension
npm ci
npm run packageAn open-source command-line tool (adoc) written in Rust that documents new or legacy codebases with the AI coding agent you already use. It generates a Markdown knowledge base, VitePress documentation, findings and an AGENTS.md with context for agents, and every claim cites its source as path:line.
Claude Code, Codex, Devin, Gemini CLI, Qwen Code, OpenCode, Cursor, GitHub Copilot, Amp, goose and Aider. Switch agent or model with adoc agent use; without a CLI agent, adoc agent use manual exports the tasks so you can do them by hand.
No. adoc runs on your machine and only uses the network to check for updates (turn it off with ADOC_NO_UPDATE_CHECK=1); the agent you choose talks to its own provider, as it already does. Secret files such as .env*, *.pem or SSH keys are skipped and never reach the prompts. See what is left out.
It is language-agnostic: adoc scan detects the languages, modules, tests and CI in the repository, and your agent reads the code itself. It works with new or legacy projects, small or large.
Yes. archeology-doc is free and open source under the MIT license. The only cost is your AI agent’s usage, if your provider charges for it.
Yes: install archeology-doc from the Visual Studio Marketplace (jcruz.archeology-doc) or download the .vsix. It shows tasks, findings, the knowledge graph and questions in VS Code, Cursor, Windsurf and Devin Desktop.
Run adoc upgrade: it downloads the latest version, verifies its SHA-256 and replaces the binaries. adoc upgrade --check only tells you whether a new version is available.