Open-source CLI · Rust · local-first

Dig into any project.
Document it with evidence.

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

What archeology-doc gives you

System map

Modules, features, glossary and decisions in plain Markdown, browsable in Obsidian, VitePress or GitHub.

Contradictions and risks

Findings by severity: outdated documentation, duplicated rules, conflicting configuration, dead code.

Testing gaps

Features ↔ tests, covered and missing scenarios, disabled or empty tests.

Context for agents

AGENTS.md, persistent memory and skills: every AI session starts knowing what exists and where.

Specs with OpenSpec

Requirement compliance checked against the code, with abandoned changes flagged in review, status and check.

Verifiable

adoc check validates evidence, links and outdated notes; ideal for CI.

How it works

Rust computes the deterministic parts; your agent does the interpretation; adoc orchestrates and validates.

  1. 1

    adoc scan

    AI-free inventory: languages, modules, tests, CI, git history and OpenSpec. Honors .gitignore and excludes secrets.

  2. 2

    adoc plan

    Splits the work into bounded tasks based on project size: a few tasks for a small one, more for a large one.

  3. 3

    adoc inspect

    Your agent runs each task. It is only marked done if it produced what was asked, with valid evidence.

  4. 4

    adoc preview

    A site with a dashboard: status, findings, questions for the team and FAQ. Or a single HTML report.

  5. 5

    adoc sync

    When the code changes, it marks the affected notes as outdated and reopens only those tasks.

Install

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 | sh

or 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 | sh

or 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 | iex

or 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 --locked

VS Code extension

$ code --install-extension jcruz.archeology-doc

The .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 upgrade

Stay 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).

All downloads

FilePlatformSizeSHA-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.

Getting started

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 result

Day to day

adoc statusSummary: progress, pending tasks and the next step (--format json for integrations)
adoc reviewProgress, findings, features without tests
adoc checkChecklist of what is done and missing, with hints to fix it (exit code for CI)
adoc syncShows changed and uncovered files, marks outdated notes and reopens their tasks
adoc inspect --resumeRetries failed or interrupted tasks
adoc task answer T-014 "…"Answers an agent that asked a question
adoc task run T-014 -iInteractive 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 graphInteractive knowledge graph in the browser; --json prints it as JSON
adoc reportSingle HTML report to share

Projects, agents and settings

adoc projects listAll 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 opusProject agent and model
adoc config set language esInterface language: en or es

Maintenance

adoc doctorChecks git, Node, VitePress, OpenSpec and agents
adoc upgrade --checkOnly checks whether a new version is available
adoc upgradeDownloads and installs the latest version
adoc uninstallRemoves adoc; --purge also deletes ~/.archeology-doc

Work with your agent

Agent-agnostic: switch agent or model whenever you like. No CLI? Export the tasks and do them by hand.

Claude CodeDevinCodexGemini CLIQwen Code OpenCodeCursorGitHub CopilotAmpgooseAider
adoc agent list                       # available; * = active
adoc agent use devin --model opus     # project agent and model
adoc inspect --agent codex            # just for this run

VS Code extension

Everything generated, in view while you code. Also works in Cursor, Windsurf and Devin Desktop.

  • Tasks by status with a ▶ button to run them
  • Findings that jump to the evidence line
  • Knowledge graph, like in Obsidian
  • Questions from the agent and the team, plus FAQ
  • Editor marks on the cited code
  • Progress and active agent in the status bar

or from the terminal

$ code --install-extension jcruz.archeology-doc

What stays in your project

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.txt

Principles

  • Evidence first: every claim cites path:line
  • Non-destructive: never modifies your code; respects your edits
  • Local-first: nothing leaves your machine except what your agent sends
  • Incremental: small, resumable tasks, module by module
  • Standards: Markdown, OpenSpec, AGENTS.md, Obsidian and VitePress

Sensitive data stays out

archeology-doc never reads secret files and tells your agent not to either. This is what is left out by default:

Secret files skipped

.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.

Can't be switched off

A repository's configuration can add patterns ([scan] secrets_patterns) but never remove the built-in ones.

Rules for the agent

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.

Respects .gitignore

Plus vendor/, node_modules/, target/, dist/ and minified files. Add your own with [paths] exclude. Symbolic links are not followed.

Working state outside the repo

Tasks, logs and approvals live in ~/.archeology-doc/, not in your repository, and adoc never writes through a link that points outside the project.

Your code isn't uploaded

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.

Open source

The whole project lives on GitHub under the MIT license: use it, modify it and share it freely.

Rust CLI

crates/: the adoc CLI plus the core, scan, agents, OpenSpec and registry crates.

VS Code extension

extension/: tasks, findings, knowledge graph and questions inside the editor.

Installers

install.sh and install.ps1: one-command install for macOS, Linux and Windows, with SHA-256 verification.

Templates

templates/: the Markdown notes and prompts the agents fill in, in English and Spanish.

How to contribute

  1. 1

    Fork the repository and create a branch for your change.

  2. 2

    Run cargo test --workspace (and npm run compile in extension/ if you touch it).

  3. 3

    Open a pull request describing what changes and why. For larger ideas, open an issue first.

Build from source

# 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 package

Frequently asked questions

What is archeology-doc?

An 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.

Which AI agents does it work with?

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.

Does it upload my code or read my secrets?

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.

Which programming languages and frameworks does it support?

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.

Is it free?

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.

Is there a VS Code extension?

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.

How do I update it?

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.