droste-code-memory

A code-memory tool that indexes a repository and records relationships between its parts, such as which functions call others. It retrieves focused context from the codebase through the Droste command-line tool or MCP.

In plain words
What is it for?
Use it to index repositories, find related symbols, inspect caller and callee relationships, retrieve focused context, and support ongoing work across projects.
Why use it?
It helps an agent understand relevant code before reading large numbers of files, reducing blind searching and missed connections.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lorismascio17/droste-memory/droste-code-memory
Any agent
npx skills add lorismascio17/droste-memory --skill droste-code-memory
Clone the repo
git clone --depth 1 https://github.com/lorismascio17/droste-memory

Made for: Claude Code, Codex.

Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 599 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00075 $0.00599
Opus 5 $0.00037 $0.00300
Sonnet 5 $0.00015 $0.00120
Haiku 4.5 $0.00007 $0.00060

Measured 2d ago against content hash d59927352b1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

droste-code-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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/check_droste.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

integrations/claude-skill/droste-code-memory/SKILL.md · 87 lines

How it starts

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

Droste Code Memory

Use Droste as Claude's local structural + semantic memory layer for codebases. Prefer it before broad file reads when the task needs repository context, symbol relationships, caller/callee edges, or MCP-backed retrieval.

Core Workflow

  1. Confirm Droste is installed:
droste --version

If uncertain, run scripts/check_droste.py from this skill.

  1. Use an isolated DB for serious multi-repo work. Put --db before the command:
droste --db /absolute/path/to/droste_memory_db.json status
droste --db /absolute/path/to/droste_memory_db.json index . --reset
  1. Index the current repo before asking for context:
droste index .

Use --reset only when the selected DB belongs to the current repository.

  1. Retrieve focused context:
droste context "authentication flow" --budget 3000 --json

Use Droste output to choose exact files and symbols to inspect. Do not make final claims from retrieved context alone; verify relevant source files.

  1. Use MCP for persistent Claude workflows:
droste mcp

Read references/claude-mcp-config.md when configuring Claude Desktop, Claude Code, or another Claude-facing MCP client.

Safety Rules

  • Do not reset a shared/global Droste DB unless the user explicitly asked.
  • Do not index secrets, dependency caches, build output, .droste/, or private generated graph JSON.
  • If Droste reports multi-root warnings, pass an explicit DB or root instead of accepting mixed context.
  • Prefer source paths under the current repository. Treat unrelated absolute paths as suspicious until verified.
  • Redact any secret-like value before reporting it.

Useful Commands

droste status --json
droste context "query" --budget 1500
droste context "query" --budget 3000 --json
droste zoom "symbolName" --no-open
droste view

Expected MCP Tools

When the Droste MCP server is connected, use:

  • droste_index_project to index the current repository.
  • droste_get_context to retrieve causal context for a query.
  • droste_status to inspect storage, active root, symbols and warnings.

Read the full file on GitHub · 87 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 87 lines · 75 tokens per session scan A d59927352b1b

Subscribe to this mod's changes

droste-code-memory is a skill published in the GitHub repository lorismascio17/droste-memory (3 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 599 once invoked, about $0.0004 per session on Opus 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

Other skills, from other repositories

Sverklo Code Intelligence

Gives you deep codebase understanding — semantic search, blast-radius analysis, PR review, and health audits.

sverklo/sverklo · 27 tokens

memtrace-first

Route code discovery, debugging, flow tracing, how-code-works questions, and pre-edit rationale checks in indexed source-code repos to Memtrace graph plus Cortex decision tools. Use first before searching/reading code, and before editing, refactoring, deleting, or re-picking an approach that may have a recorded…

syncable-dev/memtrace-public · 115 tokens

memtrace-style-fingerprint

Pull the codebase's empirical style norm from Memtrace and match it when writing or editing source code in an indexed repo. Use when choosing between competing idioms (ternary vs if-else, arrow vs function declaration, const vs let, await vs .then, early-return vs nested-return), matching naming case, or when the user…

syncable-dev/memtrace-public · 111 tokens

memtrace-decision-memory

Use Cortex decision memory through the normal Memtrace MCP tools. Trigger for free-text questions about what was decided, chosen, rejected, banned, or established as a convention; for why a symbol exists or which contracts constrain it; for whether a known decision held, drifted, or was violated; and for the…

syncable-dev/memtrace-public · 137 tokens

memtrace-docs

Use official hosted Memtrace documentation before guessing, web search, or stale local copies. Trigger when the user asks how Memtrace works; how to install, configure, or deploy CLI, MCP, fleet, Cortex, or enterprise MemDB; what tools, skills, or commands exist; wants to find or locate official docs for a topic; or…

syncable-dev/memtrace-public · 125 tokens

memtrace-evolution

Trace source-code change history from Memtrace's symbol-level temporal memory. Use when the user asks about change history, recent modifications, what changed since a date, symbol timeline, evolution, unexpected changes, or incident timelines. Do not use git log, git diff, Grep, or manual file search to reconstruct…

syncable-dev/memtrace-public · 107 tokens