Skip to main content

Compress local documentation context for coding agents.

Project description

Docmancer

One local memory for all your coding agents.

PyPI version License: MIT Python 3.11 | 3.12 | 3.13

Docmancer local Context Workbench

Claude Code, Codex, Cursor, Gemini, OpenCode, and other coding agents keep useful decisions in different files. Docmancer finds that memory, indexes it locally, and gives people and agents one place to recall it.

Your memory stays on your machine. The browser app, CLI, and MCP use the same local data.

Install

pipx install docmancer
docmancer setup

Run setup once per machine. It:

  • finds supported coding agents;
  • indexes the memory, instructions, and rules they already wrote;
  • installs user-level agent integrations;
  • stores its config and index under ~/.docmancer/.

It does not modify the project in your current directory.

Open a project

cd /path/to/your-project
docmancer web

That is the normal workflow.

web finds the project root, creates the local memory folders when needed, refreshes changed agent sources, and opens the workbench. It does not install capture hooks or change repository instructions.

In the workbench you can search memory, write and edit Markdown, review imported notes, and inspect sources. Any Markdown file can be opened in a detected editor such as VS Code, Cursor, Sublime Text, Zed, Obsidian, or the system default.

Three views answer the questions that usually matter after setup:

  • Shared memory shows equivalent memories recurring across independent agents. Generated Docmancer integration copies are excluded, and recurrence is never labeled as consensus or truth.
  • Context delivery shows how each agent receives context, whether its hook is installed, and the revision and hash of the last observed bundle.
  • Decision timeline shows canonical Markdown creates, edits, moves, duplicates, trash operations, and restores with actors, sources, revision lineage, and readable diffs.

Use the CLI

Agents and people can perform the same core actions without the browser.

Ask what is already known:

docmancer ask "Why did we choose Railway?"

ask checks changed agent sources, then returns one bounded result containing:

  • mandatory project policy;
  • relevant curated memory;
  • supporting evidence from indexed agent memory, instructions, and rules;
  • source paths and stable memory addresses.

Save a decision:

docmancer write $'# Deployment\n\nDeploy the API on Railway.' \
  --path decisions/deployment.md \
  --scope project

Read it later:

docmancer read decisions/deployment.md

Edit and move operations require the current content hash returned by read. This prevents one agent from silently overwriting another agent's newer change.

docmancer edit decisions/deployment.md \
  $'# Deployment\n\nDeploy the API and worker on Railway.' \
  --expected-hash <current-hash>

docmancer move decisions/deployment.md decisions/hosting.md \
  --expected-hash <current-hash>

Import existing notes

To copy an arbitrary Markdown file or directory into the current project's inbox:

docmancer import ./notes

Docmancer never edits or moves the source files. The workbench lets you review the copied files before turning them into curated project memory.

You do not need to find Claude, Codex, or Cursor storage paths. setup, web, and ask discover registered agent sources automatically.

Everyday commands

Command Purpose
docmancer setup Perform the initial machine-wide discovery and install user-level integrations.
docmancer web Open the local workbench and refresh changed agent sources.
docmancer ask "..." Recall curated memory and supporting indexed evidence.
docmancer common Show memory recurring across independent agent harnesses.
docmancer delivery Show how context reaches each agent and the last observed bundle.
docmancer timeline Show canonical memory changes with revision lineage and diffs.
docmancer write ... --path file.md Write one curated Markdown memory file.
docmancer read <address-or-path> Read one memory file.
docmancer edit ... --expected-hash <hash> Safely edit a memory file.
docmancer move ... --expected-hash <hash> Safely rename or move a memory file.
docmancer import ./notes Copy arbitrary Markdown into the project inbox.
docmancer status Show local memory, source, security, and Cloud health.
docmancer doctor Diagnose installation and configuration problems.
docmancer cloud sync Push and pull optional encrypted Cloud revisions.

Run docmancer --help or docmancer <command> --help for exact arguments.

Agent integration and MCP

setup installs guidance that teaches supported agents the same workflow: use ask before work that may depend on prior decisions, use common, delivery, or timeline when the user asks about cross-agent recurrence, activation, or change history, and use write, read, edit, or move when the user asks to manage durable memory.

Docmancer also includes a local MCP server. Its main memory tool is ask_memory. The read-only common_memory, context_delivery, and decision_timeline tools expose the same three outcome views to agents, with separate tools for read, write, edit, move, duplicate, trash, and restore. Documentation search remains a separate MCP tool so library documentation is never presented as project memory.

Advanced integration commands remain available when needed:

docmancer agent --help
docmancer mcp --help
docmancer docs --help

Automatic capture is off by default. Enabling capture, deleting memory, publishing Team memory, and connecting Cloud remain explicit actions.

Documentation search

Memory and external documentation are separate:

docmancer docs init --dir .
docmancer docs add https://docs.pytest.org
docmancer docs query "How do I parametrize a fixture?"
docmancer docs download https://docs.pytest.org --output ./pytest-docs

Use ask for your decisions and agent memory. Use docs query for libraries, APIs, and vendor documentation.

Optional encrypted Cloud

The complete single-machine product works without an account.

Paid Cloud adds encrypted device sync, managed revision history and recovery, and Team coordination:

docmancer cloud connect
docmancer cloud sync

Files are encrypted before they leave your machine. The hosted service cannot read plaintext memory or execute local actions.

Local storage

Location Contents
<project>/.docmancer/tree/ Curated project memory as Markdown.
<project>/.docmancer/inbox/ Imported or captured material awaiting review.
<project>/.docmancer/trash/ Recoverable deleted memory files.
<project>/.docmancer/state/decision-journal.jsonl Append-only canonical file mutation journal.
<project>/.docmancer/state/delivery.json Latest successful local context-delivery receipts.
~/.docmancer/memory.db Rebuildable machine-wide agent-memory index.
~/.docmancer/docmancer.yaml Local configuration.

Docmancer has no telemetry. Network access occurs only when you explicitly fetch online documentation, use an external model, check package registries, or enable encrypted Cloud.

Upgrading to 0.9

The 0.8 compatibility window has ended. Replace old root commands as follows:

  • Use ask instead of query, search, or context.
  • Use cloud sync instead of root sync.
  • Use web instead of init for normal project onboarding.
  • Use import <path> instead of harvest <path>.
  • Use agent import-sources for the advanced registered-source inbox workflow.
  • Use docs add, docs query, docs sync, docs list, and docs remove for documentation.
  • Use agent install for agent integrations.
  • Use MCP ask_memory instead of build_context.

Recovery and migration commands such as reindex, curate, trash, restore, and migrate remain callable but are intentionally absent from the everyday command list.

Requirements

Docmancer supports Python 3.11, 3.12, and 3.13. If pipx selects Python 3.14, choose a supported interpreter:

pipx install docmancer --python python3.13

Check the installation:

docmancer doctor

For architecture, supported sources, Cloud details, and troubleshooting, see the wiki.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docmancer-0.9.0.tar.gz (32.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docmancer-0.9.0-py3-none-any.whl (29.5 MB view details)

Uploaded Python 3

File details

Details for the file docmancer-0.9.0.tar.gz.

File metadata

  • Download URL: docmancer-0.9.0.tar.gz
  • Upload date:
  • Size: 32.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for docmancer-0.9.0.tar.gz
Algorithm Hash digest
SHA256 c638a834ab09e4811f864b2e49929f7bd7b7156588d7ec1b6b313ab64b97f1c3
MD5 a60f9d9cacca5711345d8d313bb12a0c
BLAKE2b-256 dd9bcbc309a1c074ace7b3c7328831f65e34042fccbf45c735baabed75d7cf62

See more details on using hashes here.

Provenance

The following attestation bundles were made for docmancer-0.9.0.tar.gz:

Publisher: publish.yml on docmancer/docmancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docmancer-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: docmancer-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 29.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for docmancer-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f01a1155deaa94ef2f0f086bff00ea7f3a389b1e32cc919c0bbd221f6bf3af18
MD5 8a3d9b1c5ddedfbf6a6f3e8e3beecc8a
BLAKE2b-256 ff04df8226cb279ca805ba8061e7141f10f485d92c359d8f9d94b871a054c52f

See more details on using hashes here.

Provenance

The following attestation bundles were made for docmancer-0.9.0-py3-none-any.whl:

Publisher: publish.yml on docmancer/docmancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page