documcp: Agent for Claude Code

.github/agents/documcp-memory.md

documcp-memory is an agent for Claude Code from tosin2013/documcp. It costs 16 tokens per session (635 once invoked), scanned A, original, MIT.

An agent for working with DocuMCP’s knowledge graph, a stored network of projects, technologies, files, users, configurations, and documentation links. DocuMCP is a system for storing and using project knowledge.

In plain words
What is it for?
Use it to record or inspect projects, technologies, documentation coverage, outdated documentation, references, deployment configurations, and related projects.
Why use it?
It helps keep project analysis and documentation relationships available across work instead of treating each task as isolated.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

This is tosin2013/documcp's own configuration. It tells Claude Code how to work on documcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything documcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tosin2013/documcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tosin2013/documcp/main/.github/agents/documcp-memory.md
Clone the repo
git clone --depth 1 https://github.com/tosin2013/documcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for documcp-memory

README.md
[![agentmods](https://agentmods.dev/badge/agents/tosin2013/documcp/documcp-memory/github.svg)](https://agentmods.dev/agents/tosin2013/documcp/documcp-memory)
Your own site
<a href="https://agentmods.dev/agents/tosin2013/documcp/documcp-memory"><img src="https://agentmods.dev/badge/agents/tosin2013/documcp/documcp-memory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for documcp-memory

Your own site · 80×15
<a href="https://agentmods.dev/agents/tosin2013/documcp/documcp-memory"><img src="https://agentmods.dev/badge/agents/tosin2013/documcp/documcp-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 635 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00635
Opus 5.5 $0.00006 $0.00254
Sonnet 5.5 $0.00003 $0.00127
Haiku 4.5 $0.00002 $0.00064

Measured 2mo ago against content hash bfd6211717fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

documcp-memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/agents/documcp-memory.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an expert at DocuMCP's Knowledge Graph memory system.

Knowledge Graph Architecture

Entity Types (src/memory/schemas.ts)

  • Project: Software projects with analysis history
  • User: User preferences and behavior patterns
  • Configuration: SSG deployment configurations
  • Technology: Languages, frameworks, tools
  • CodeFile: Source code files with metadata
  • DocumentationSection: Documentation sections

Relationship Types

  • project_uses_technology: Project → Technology (with file counts)
  • user_prefers_ssg: User → SSG (with usage frequency)
  • project_deployed_with: Project → Configuration (success/failure)
  • similar_to: Project → Project (similarity score)
  • documents: CodeFile → DocumentationSection (coverage level)
  • references: DocumentationSection → CodeFile (reference type)
  • outdated_for: DocumentationSection → CodeFile (change detection)

Storage System

  • Location: .documcp/memory/
  • Files:
    • knowledge-graph-entities.jsonl
    • knowledge-graph-relationships.jsonl
  • Backups: .documcp/memory/backups/ (last 10 kept)

Integration Patterns

Store Project Analysis

import {
  createOrUpdateProject,
  getProjectContext,
} from "./memory/kg-integration.js";

// Store analysis results
await createOrUpdateProject(projectPath, analysisResult);

// Retrieve historical context
const context = await getProjectContext(projectPath);
console.log(`Previously analyzed ${context.analysisCount} times`);

Track Deployments

import { trackDeployment } from "./memory/kg-integration.js";

await trackDeployment(projectPath, {
  ssg: "docusaurus",
  success: true,
  timestamp: new Date().toISOString(),
});

Query Similar Projects

import { getSimilarProjects } from "./memory/index.js";

const similar = await getSimilarProjects(analysisResult, 5);
similar.forEach((p) => console.log(`${p.name}: ${p.similarity}%`));

Memory Tool Operations

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 105 lines · 16 tokens per session scan A bfd6211717fc

Subscribe to this mod's changes

documcp-memory is an agent published in the GitHub repository tosin2013/documcp (10 stars, last pushed 3mo ago), licensed MIT. It adds 16 tokens to every session and 635 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

documcp-memory compared with agents from other repositories

documcp-memory next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
documcp-memorytosin2013/documcpAgent103mo agoMITA16Claude Code
code-explorerggemba/squad-mcpAgent43mo agoApache-2.0A116Claude Code
memory-keeperDiablorosso67/multi-ai-memoryAgent45mo agoMITA116Claude Code
FAI Multi-Agent Service Tunerfrootai/frootaiAgent74d agoMITA39Claude Code
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79k4d agoMITA33Claude Code
code-revieweranthropics/claude-cookbooksAgent54k2d agoMITA52Claude Code