Skip to content

Getting Started

Liam Thompson edited this page Oct 17, 2026 · 1 revision

Doctrack keeps project knowledge beside your code: linked Markdown notes for features, components, interfaces, decisions, and guides. Open the vault in Obsidian to explore it yourself, or let a coding agent use it to recover context between sessions.

This guide covers the standalone project with Claude Code.

Project status: Standalone development has been frozen since May 18, 2026 while the project evolves toward a Switchyard plugin. The standalone source remains available. Switchyard is an early prototype, not a finished replacement.

What you need

  • A local project and Claude Code.
  • Git and Node.js/npm (npx) for the skill and vault integration. The shell examples below use a POSIX shell, as on macOS or Linux.
  • jq if you enable the optional Claude Code hooks; the note-validation hook uses it to read tool input.
  • Rust/Cargo with Rust 2024 edition support if you want the optional code-indexing server.
  • Obsidian is optional; the vault is ordinary Markdown.

Doctrack has two complementary parts: the skill tells the agent what to document, and the optional Rust MCP server connects documentation to source files and symbols. The Obsidian MCP integration handles reading and writing the notes.

1. Install the skill in your project

Run these commands from the root of the project you want to document. They copy the skill from the standalone repository into that project's Claude Code skills directory. If you already have a customized Doctrack skill, compare it before replacing it.

doctrack_src="$(mktemp -d)"
git clone https://github.com/liamstar97/doctrack.git "$doctrack_src"
git -C "$doctrack_src" checkout --detach 62df95bf529c926489a879995ec88f0dcb39a903
mkdir -p .claude/skills/doctrack
cp "$doctrack_src/skills/doctrack/SKILL.md" .claude/skills/doctrack/SKILL.md

This pins the guide to the frozen standalone revision. Its skill is version 3.0.0; the latest packaged GitHub release is v2.0.0, so the source installation avoids mixing those versions. Keep this terminal open for the optional install in the next step.

2. Add the integrations

Install the Obsidian skill used for vault operations:

npx skills add bitbonsai/mcpvault --yes

For code-to-documentation search, reference validation, impact checks, and refresh planning, also install the Rust server from the same checkout:

cargo install --path "$doctrack_src/crates/dt-mcp" --locked
doctrack-mcp --version

The Cargo package is called dt-mcp; the installed executable is doctrack-mcp. Make sure Cargo's binary directory (usually ~/.cargo/bin) is on your PATH. You can skip this installation and use the Markdown vault without the indexing tools.

3. Configure the project

Create the vault directory before starting its MCP server:

mkdir -p .doctrack/.obsidian

Add the following entries to .mcp.json in your project root. Merge them with any existing servers rather than replacing the file. Omit the doctrack entry if you skipped the Rust installation.

{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": ["@bitbonsai/mcpvault@latest", ".doctrack"]
    },
    "doctrack": {
      "command": "doctrack-mcp"
    }
  }
}

The relative vault path lets the configuration travel with the repository. The Rust server uses the current working directory as the project root; custom launchers can set DOCTRACK_ROOT explicitly.

If you installed the Rust server, you can also enable Claude Code hooks:

doctrack-mcp --setup-hooks

This merges Doctrack hooks into .claude/settings.json: a coverage summary at session start and reference validation after Obsidian note writes. These checks provide feedback; they do not guarantee that documentation is complete or correct.

4. Initialize the knowledge graph

Restart Claude Code from your project root so it loads the skill and MCP configuration. Review and approve the project's MCP servers when prompted. Then say this in the Claude Code conversation, not in your terminal:

doctrack init

The skill inspects the project and builds linked notes under .doctrack/. It also creates project orientation and procedural documentation. If it needs to finish dependency setup and asks for a restart, restart Claude Code and say doctrack init again. An interrupted initialization can resume from its recorded phase.

Review the generated notes and changes to your existing project files before committing them. Start with .doctrack/_project.md, then follow a feature into its components, interfaces, and decisions.

5. Use it as you work

  • Orient: ask the agent to read the relevant Doctrack notes before changing a feature.
  • Update: after a meaningful change, ask it to update the affected notes and record significant decisions.
  • Refresh: say doctrack refresh to have the agent use the Rust server's refresh plan and repair stale references. This workflow requires the doctrack MCP tools.
  • Explore: open .doctrack as a vault in Obsidian to browse the notes, backlinks, and graph.

Commit the useful vault content alongside your code so the next session or collaborator can use it. Review what you are sharing, including generated documentation and project configuration.

Troubleshooting

Symptom What to check
doctrack init is not recognized in the terminal It is an instruction to the coding agent, not a shell executable.
Claude Code cannot see the skill Confirm .claude/skills/doctrack/SKILL.md exists in the project, then restart Claude Code.
The Obsidian server cannot open the vault Confirm .doctrack/ exists and launch Claude Code from the project root.
doctrack-mcp: command not found Check the Rust installation and PATH, or remove the optional server entry until it is installed.
Indexing tools return no useful results Confirm the project root and vault path, then complete doctrack init so there are notes to index.
Refresh tools are unavailable Check the doctrack entry in .mcp.json, confirm doctrack-mcp --version works, and restart Claude Code.

Reference

Clone this wiki locally