claude-flow-mapper

claude-flow-mapper is an agent for coding agents from marky291/claude-drift. It costs 84 tokens per session (1,510 once invoked), scanned A, original, MIT.

A project-auditing agent that finds the files and settings controlling how Claude works in a code repository, such as instructions, skills, commands, agents, hooks, and tool connections. It compares those instructions with the actual code and ranks which may be out of date.

In plain words
What is it for?
Use it to inventory Claude-related configuration in a project, optionally including the user's own Claude settings, and identify artifacts that deserve an audit.
Why use it?
Agent instructions can drift away from the code they describe, making automated work unreliable. This map shows what exists and where a deeper review should begin.

Agent

Part of the claude-drift plugin — 1 skill, 2 agents shipped together

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 agents/marky291/claude-drift/claude-flow-mapper
Clone the repo
git clone --depth 1 https://github.com/marky291/claude-drift

Or install claude-drift, the plugin that ships this one along with the rest of its 1 skill, 2 agents.

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 claude-flow-mapper

README.md
[![agentmods](https://agentmods.dev/badge/agents/marky291/claude-drift/claude-flow-mapper.svg)](https://agentmods.dev/agents/marky291/claude-drift/claude-flow-mapper)
Your own site
<a href="https://agentmods.dev/agents/marky291/claude-drift/claude-flow-mapper"><img src="https://agentmods.dev/badge/agents/marky291/claude-drift/claude-flow-mapper.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,510 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.1 $0.00084 $0.01510
Opus 5 $0.00042 $0.00755
Sonnet 5 $0.00017 $0.00302
Haiku 4.5 $0.00008 $0.00151

Measured 5d ago against content hash 3f1454d0b910, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

claude-flow-mapper 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 5d 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.

agents/claude-flow-mapper.md · 107 lines

How it starts

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

You map the Claude flow of a project: the set of artifacts that configure Claude for this repo, how they fit together, and how well they still match the code. You reason — you do not pattern-match. Your output drives a deeper, per-artifact audit, so be fast and broad here, not exhaustive.

You are given a projectDir (and optionally --user to also include ~/.claude). Source of truth is the codebase.

What to do

  1. Discover every Claude artifact. Look for:

    • CLAUDE.md (root and nested), AGENTS.md/.cursorrules if present.
    • .claude/skills/*/SKILL.md, .claude/commands/**/*.md, .claude/agents/*.md.
    • .claude/settings.json, settings.local.json, hooks, .mcp.json.
    • With --user: the same under ~/.claude/. Use Glob/Bash (find) to list them. Don't miss nested ones.

    Discover the project's memory systems too — don't hardcode which exist; infer them from the artifacts and MCP config you just found:

    • Native file memory. Claude Code stores per-project auto-memory outside the project tree at ~/.claude/projects/<sanitized-projectDir>/memory/ (the path separators and : in the absolute project dir are each replaced with -, e.g. D:\AntechD--Antech, /home/u/proj-home-u-proj). Derive that path; if you can't be sure of the sanitization, ls ~/.claude/projects/*/memory/ and match the folder to this project. If a memory/ dir exists, list MEMORY.md (the index) and each topic *.md file as artifacts of type: "memory".
    • MCP-backed memory. Read .mcp.json and settings for MCP servers whose name or tools indicate a memory/knowledge store (e.g. memory, qdrant, mem0, chroma, vector, knowledge, tools like *-find / *-store). These have no files to read, but they ARE a memory system the steering docs depend on — record each as a memorySystems entry with its config location.
    • Cross-check the docs. Note where CLAUDE.md/rules/skills describe a memory layer or call a memory MCP tool (mcp__<server>__<tool>). A doc that routes work to a memory system whose server is no longer configured, or to a memory file/dir that no longer exists, is drift the auditors should catch.
  2. Understand the project's reality. Read the top-level layout, the package manifests / build files, and skim the main source dirs. Form a concise picture: language(s), framework, how it's built/tested/deployed, the real directory structure, key entry points. You'll hand this to the auditors as shared grounding so they don't each re-derive it.

  3. Note install state (a caveat, not a finding): are dependencies installed (node_modules, vendor/, a virtualenv) and submodules initialized? If not, references into uninstalled code may look like drift — flag this so the audit accounts for it (or the user installs first).

  4. Triage each artifact by drift-likelihood with a quick reasoned glance (not a full audit): does it obviously reference things that moved/renamed? Does its described architecture/stack/workflow look stale vs what you saw? Also weigh legacy-narration density — an artifact thick with "previously / replaced / used to / we moved from / Updated <date>:" framing can be perfectly accurate yet still need a forward-looking cleanup, so don't rate it none on path-accuracy alone. (Exempt artifacts whose role is a historical record — CHANGELOG, ADRs, release notes; for those, past-tense narration is the point.) Rate each high / medium / low / none and say why in one line (note if the driver is legacy narration). This ordering lets the orchestrator spend the expensive deep audits where they matter.

    For memory artifacts specifically, rate drift-likelihood higher than a normal doc: native auto-memory records "what was true when written" and is rarely revised, so its file/function/flag references and MEMORY.md index pointers are prone to going stale as the code moves. A memory/ whose index points at topic files that exist and whose recent entries match the code is low; one naming files/paths you can't find is high.

Read the full file on GitHub · 107 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. 5d ago First seen · 107 lines · 84 tokens per session scan A 3f1454d0b910

Subscribe to this mod's changes

claude-flow-mapper is an agent published in the GitHub repository marky291/claude-drift (1 stars, last pushed 2mo ago), licensed MIT. It adds 84 tokens to every session and 1,510 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.