by docmancer
Find out what your coding agents already know. Docmancer indexes the memory, rules, and instructions Claude Code, Codex, Cursor, and Gemini wrote on your machine, then carries the durable parts to every agent. It is local-first and under MIT license.
# Add to your Claude Code skills
git clone https://github.com/docmancer/docmancerdocmancer is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by docmancer. Find out what your coding agents already know. Docmancer indexes the memory, rules, and instructions Claude Code, Codex, Cursor, and Gemini wrote on your machine, then carries the durable parts to every agent. It is local-first and under MIT license. It has 135 GitHub stars.
docmancer's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/docmancer/docmancer" and add it to your Claude Code skills directory (see the Installation section above). docmancer ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
docmancer is primarily written in Python. It is open-source under docmancer on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh docmancer against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
name: docmancer description: Work from the same local memory as every other coding agent on this machine. Recall prior decisions, preferences, instructions, and project conventions that Claude Code, Codex, Cursor, and other agents wrote here, with cited sources, fully local. Also searches a separate local technical-documentation index. version: 0.9.5 author: docmancer license: MIT homepage: https://docmancer.dev repository: https://github.com/docmancer/docmancer tags:
An AI-agent memory harness: shared memory for coding agents.
Work from the same local memory as every other coding agent on this machine, instead of making the user explain the project again. Claude Code, Codex, Cursor, Gemini, and other coding agents write memory, instructions, and rules all over the machine, each locked in its own silo. Docmancer discovers that evidence, combines the durable parts into one human-readable Shared Memory tree, and gives every agent grounded, cited recall over it: automatically through recall hooks (Claude Code and Codex), on demand through this skill and the CLI, and through MCP tools for everything else. The core memory path runs locally. Network access happens only when the user explicitly fetches online documentation, uses an external model, checks a package registry, or enables Cloud.
pipx install docmancer
pipx ensurepath
export PATH="$(pipx environment --value PIPX_BIN_DIR):$PATH"
docmancer setup # discovers agents, indexes their memory, installs skills and hooks
docmancer ask "why did we pick Railway?" # grounded answer with citations from what your agents wrote
The PATH export makes Docmancer available in the current terminal, including an existing SSH session. pipx ensurepath keeps it available in future terminals.
If you use uv, uv tool install docmancer installs it the same way.
The default profile uses SQLite FTS5, sqlite-vec, and bundled Model2Vec embeddings: no API keys, no daemon, no model download, offline at runtime. The optional scale profile uses FastEmbed, sparse retrieval, and Qdrant without changing memory authority or provenance semantics. Technical documentation remains a separate Library corpus, searched with docmancer docs.
docmancer ask "<the task>" when prior decisions, instructions, conventions, or preferences may matter.docmancer read <address> when the full file or current content hash is needed.docmancer ask to prepare one complete-file proposal. Apply it only with the user's confirmation or explicit --apply.docmancer docs list and docmancer docs query for libraries, APIs, and vendor documentation.Read-only Ask reads the latest committed local index. A configured generation provider semantically separates read and mutation intent, produces grounded prose for the read part, and prepares at most one validated proposal for the mutation part. A mixed request can return both an answer and a proposal. Applying a proposal re-reads the affected state and reports whether the requested outcome was verified. Use --read-only to suppress action planning, --apply only after explicit authorisation, --no-answer for evidence only, and --fresh when the question must first wait for changed agent sources to be indexed.
docmancer setup
docmancer web
docmancer ask "what deployment decisions apply?"
docmancer ask "how did this policy change?" --history
docmancer ask "return evidence only" --no-answer
docmancer ask "remember that production releases require a smoke test"
docmancer ask "update decisions/deployment.md to require two reviewers" --apply
docmancer common
docmancer delivery
docmancer timeline
docmancer memory canonical
docmancer read docmancer://memory/<id>
docmancer write "# Decision\n\nDeploy on Railway." --path decisions/deployment.md --scope project
docmancer edit docmancer://memory/<id> - --expected-hash <hash>
docmancer move docmancer://memory/<id> decisions/hosting.md --expected-hash <hash>
docmancer import ./notes
docmancer status --check
Existing-file mutations require the current content hash. Conversational Ask proposals affect exactly one complete file and never apply because the user merely types “yes”. Imported and harvested sources remain read-only. Never trash, restore, connect Cloud, change capture installation, or publish Team memory without explicit user authorization.
When the user explicitly authorizes Personal Sync, docmancer cloud connect is the normal entry point. The first connected machine creates and checks the recovery kit and starts the first encrypted transfer. A second machine displays a four-word pairing code for approval from a connected machine; docmancer cloud connect --recover is the fallback when no connected machine remains. docmancer cloud sync is an explicit retry or later push and pull, not an onboarding requirement.
docmancer docs list
docmancer docs add ./docs
docmancer docs add https://docs.example.com
docmancer docs query "how to authenticate"
docmancer docs query "how to authenticate" --expand
docmancer docs query "how to authenticate" --expand page
docmancer docs query "how to authenticate" --format json
docmancer docs query "how to authenticate" --allow-degraded
docmancer docs sync
docmancer docs remove <source>
docmancer docs download <url> --output <dir>
docmancer doctor
Use docs add for local files, directories, documentation URLs, and GitHub repositories. Use root import only for Markdown intended for memory curation.
docmancer providers list
docmancer providers key <provider>
docmancer providers set <provider> --default --model <model-id>
docmancer providers test <provider>
pipx install "docmancer[embeddings-heavy]"
docmancer qdrant up
docmancer setup --profile scale
If you use uv, the install line becomes uv tool install "docmancer[embeddings-heavy]". Local retrieval does not require a generation provider or Qdrant.
Your AI coding environment, restored on every machine.
Website · Documentation · Blog · Changelog · Discussions
Agent backup and restore are development-preview commands. Local encrypted archives are available now. Managed Cloud snapshots remain gated on migration and recovery acceptance.
Docmancer securely restores their sessions, memory, and setup, then makes the useful project context available to every agent you use.
Claude Code and Codex can search the files they already wrote on one machine. A normal dotfile tool can copy directories. Neither gives you an agent-aware, secret-stripped backup with structural verification, project mapping, conflict quarantine, and a reviewed path from raw history to shared project memory.
Start by seeing what Docmancer can protect:
docmancer backup --dry-run
Create a free passphrase-encrypted local archive:
docmancer backup --local --to ~/Backups/agents.dmbak
On a new machine, close Claude Code and Codex and preview the restore:
docmancer restore ~/Backups/agents.dmbak --dry-run
docmancer restore ~/Backups/agents.dmbak
Docmancer restores missing history, skips identical files, merges only safe configuration, and quarantines divergent sessions. It never copies authentication stores, .env files, literal MCP environment values, caches, logs, telemetry, or machine keys.
After backup or restore, local consolidation finds durable decisions and constraints in the protected histories. Every proposal links to exact transcript evidence and waits for review:
docmancer consolidate
docmancer consolidate --review PROPOSAL_ID
docmancer consolidate --approve PROPOSAL_ID
Claude Code knows why you moved off Railway. Codex learned your migration convention. Cursor is still following a rule you overruled two months ago. Each agent wrote something down, none of them agree, and none of it is anywhere you can read.
That knowledge is real, and it is already on your disk. It is sitting in CLAUDE.md files, AGENTS.md files, Cursor rules, agent memory directories, and session history, in a different place and a different format for every tool you use.
Docmancer is built around two questions, in this order:
Nothing leaves your machine unless you ask it to. There is no telemetry, no account, and no API key needed for the core product.
pipx install docmancer
pipx ensurepath
export PATH="$(pipx environment --value PIPX_BIN_DIR):$PATH"
docmancer setup
pipx ensurepath makes the change persistent for future terminals. The export line makes Docmancer available in the current terminal immediately, which matters in an existing SSH session. If docmancer still reports command not found, reconnect over SSH and try again.
If you use uv, uv tool install docmancer installs it the same way.
setup finds every supported coding agent, shows you one complete plan and privacy warning, and waits for your confirmation before it changes anything. Then it indexes what it found, builds your canonical memory, installs the agent skills, and turns on automatic recall where the agent supports it.
Ask it something:
docmancer ask "Why did we choose Railway?"
You get a bounded, cited answer built from your own agents' evidence. Then open the app for the current project:
cd /path/to/your-project
docmancer web
That is the whole first run. It takes about a minute, and setup does not modify the project you are standing in.
One memory instead of six. Every supported agent reads from the same canonical Markdown, so a decision recorded once is available to Claude Code, Codex, Cursor, Gemini, and the rest without you copying it around.
Answers with receipts. Recall returns the mandatory policy, the curated memory, and the supporting agent evidence with stable citations, so you can see which agent said what and when. The optional language model turns that evidence into prose but never chooses what goes into it.
Files you own, not a database. Shared Memory is ordinary Markdown in ordinary directories. You can open it in your editor, commit it, grep it, or delete it. Stable docmancer://memory/<id> addresses keep working even after you move a file.
Local and offline by default. The default profile uses SQLite FTS5, sqlite-vec, and a small vendored embedding model. No daemon, no model download, no network call, no key.
Edits that cannot clobber each other. Changing or moving an existing memory file requires the content hash you last read, so one agent cannot silently overwrite a newer decision made by another.
Approval before anything is written. When you ask Docmancer to remember or change something, it prepares one complete file proposal and shows you the diff. The default answer is no, and a later "yes" in conversation never applies a stored proposal.
The complete product above is free on one machine. Optional paid Personal Sync adds encrypted transport, managed revision history, devices, and recovery when you work across a laptop, VPS, or other machines.
On the machine that already has your memory, run:
docmancer cloud connect
Sign in through the browser. Docmancer creates and checks a recovery kit, shows it once for offline storage, and starts the first encrypted upload automatically. The account page then asks for a payment method to start the 30-day trial. There is no separate recovery verification or first-sync command.
On the VPS or second machine, install Docmancer and run:
docmancer setup
docmancer cloud connect
The new machine shows a four-word pairing code. Run docmancer cloud connect on an already connected machine, confirm the same four words, and approve it. Then run the command once more on the new machine. Docmancer downloads the machine-wide Shared Memory tree and any project trees mapped on that machine. If every connected machine is unavailable, use docmancer cloud connect --recover and enter the offline recovery kit.
The selected monthly or yearly subscription begins automatically after the trial unless you cancel. A failed renewal has a fixed 7-day upload grace period, followed by a 30-day read-only pull and export window before hosted ciphertext is scheduled for deletion. Local memory and every local feature keep working in every billing state. See the Personal Sync guide for the full journey.
Run docmancer web and open Shared Memory. The left pane is the real file tree on disk, the middle pane reads the selected file with its provenance, and the right pane lists your connected agents. Select an agent to inspect the exact bounded projection it will receive, before it receives it.
The scaffold is opinionated, but the files are yours:
~/.docmancer/tree/ # machine-wide, follows you between projects
├── profile/
│ ├── about.md
│ └── preferences.md
├── principles/
│ └── working-style.md
├── projects/
│ └── active.md
└── shared/
<project>/.docmancer/tree/ # per project
├── overview.md
├── decisions/
├── constraints/
├── workflows/
└── lessons/
docmancer setup installs everything it detects. To manage one integration on its own:
docmancer agent install claude-code --hooks
docmancer agent install codex --hooks
| Agent | Skill file | Automatic recall | Session capture | MCP |
|---|---|---|---|---|
| Claude Code | Yes | Yes | Yes | Yes |
| Codex (CLI, app, desktop) | Yes | Yes | Yes | Yes |
| Cursor | Yes | |||
| Cline | Yes | |||
| Gemini CLI | Yes | |||
| OpenCode | Yes | |||
| GitHub Copilot | Yes | |||
| Claude Desktop | Manual upload | Yes |
Installed skills teach an agent when to ask Do