pathfinder

pathfinder is a skill for Claude Code from thedotmack/claude-mem. It costs 62 tokens per session (1,358 once invoked), scanned A, original, Apache-2.0.

A codebase-mapping guide that turns related features and their connections into flowcharts, then looks for duplicated systems and suggests one shared design.

In plain words
What is it for?
Use it to trace how features work, compare overlapping systems, define clearer feature boundaries, and prepare separate implementation plans for a unified architecture.
Why use it?
It helps when a project has several systems doing similar jobs and the structure is hard to understand before a refactor. It leaves behind diagrams, a duplication report, and planning prompts.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions subagents.

Part of the claude-mem plugin — 25 skills shipped together

Good fit Use it to trace how features work, compare overlapping systems, define clearer feature boundaries, and prepare separate implementation plans for a unified architecture.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thedotmack/claude-mem/pathfinder
About the project

Claude-Mem, now presented as Grok Mem, records an agent's work, compresses it with AI, and brings relevant notes into later sessions so the agent can remember decisions and next steps. It is intended for persistent context across agent conversations and supports multiple coding-agent environments. The catalogue add-ons provide the workflows and integrations used to operate this memory system.

thedotmack/claude-mem · 120,667 stars · on GitHub · claude-mem.ai

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.

Any agent
npx skills add thedotmack/claude-mem --skill pathfinder
Clone the repo
git clone --depth 1 https://github.com/thedotmack/claude-mem

Made for: Claude Code.

Or install claude-mem, the plugin that ships this one along with the rest of its 25 skills.

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 pathfinder

README.md
[![agentmods](https://agentmods.dev/badge/skills/thedotmack/claude-mem/pathfinder/github.svg)](https://agentmods.dev/skills/thedotmack/claude-mem/pathfinder)
Your own site
<a href="https://agentmods.dev/skills/thedotmack/claude-mem/pathfinder"><img src="https://agentmods.dev/badge/skills/thedotmack/claude-mem/pathfinder/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 pathfinder

Your own site · 80×15
<a href="https://agentmods.dev/skills/thedotmack/claude-mem/pathfinder"><img src="https://agentmods.dev/badge/skills/thedotmack/claude-mem/pathfinder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,358 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. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00062 $0.01358
Opus 5.5 $0.00025 $0.00543
Sonnet 5.5 $0.00012 $0.00272
Haiku 4.5 $0.00006 $0.00136

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

Security

Grade A, and why

pathfinder 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 3mo 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.

plugin/skills/pathfinder/SKILL.md · 112 lines

How it starts

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

Pathfinder

You are an ORCHESTRATOR. Map the codebase into feature-grouped flowcharts, identify duplicated concerns, propose the simplest unified architecture, and hand off per-system plans to /make-plan.

You do not write implementation code. You produce diagrams, a duplication report, a proposed unified flowchart, and handoff prompts.

Delegation Model

Use subagents for discovery and extraction (file reading, flow tracing, grep, diagramming). Keep synthesis (deciding feature boundaries, picking unification strategies, final flowchart) with the orchestrator. Reject subagent reports that lack source citations and redeploy.

Subagent Reporting Contract (MANDATORY)

Each subagent response must include:

  1. Sources consulted — exact file paths and line ranges read
  2. Concrete findings — exact function names, call sites, data flow
  3. Mermaid diagram(s) with nodes labeled by file:line
  4. Confidence note + known gaps

Output Artifacts

All artifacts go in PATHFINDER-<YYYY-MM-DD>/ at repo root:

  • 00-features.md — feature inventory with boundaries
  • 01-flowcharts/<feature>.md — one Mermaid flowchart per feature
  • 02-duplication-report.md — cross-cutting duplicated concerns with evidence
  • 03-unified-proposal.md — proposed unified architecture + Mermaid
  • 04-handoff-prompts.md — copy-pasteable /make-plan prompts per unified system

Phases

Phase 0: Feature Discovery (ALWAYS FIRST)

Deploy ONE "Feature Discovery" subagent to:

  1. Walk the source tree (not built artifacts) and read top-level README / CLAUDE.md
  2. Propose feature boundaries based on directory structure, import graph, and naming
  3. Return a flat list of features with: name, entry points (file:line), core files, brief purpose

Orchestrator reviews the proposal, adjusts boundaries if needed, writes 00-features.md. Do NOT fan out until feature boundaries are approved.

Phase 1: Per-Feature Flowcharts (FAN OUT)

Deploy ONE "Flowchart" subagent per feature in parallel. Each receives only its feature's scope. Each must:

  1. Trace the feature's primary happy path from entry point to terminal state
  2. Identify side effects (DB writes, HTTP calls, file I/O, process spawns)
  3. Note error and fallback branches but do not let them dominate the diagram
  4. Produce a Mermaid flowchart TD with every node labeled Name<br/>file:line
  5. List external dependencies (other features it calls into) at the bottom

Read the full file on GitHub · 112 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. 3mo ago First seen · 112 lines · 62 tokens per session scan A a3e17bf66e7c

Subscribe to this mod's changes

pathfinder is a skill published in the GitHub repository thedotmack/claude-mem (120,667 stars, last pushed today), licensed Apache-2.0. It adds 62 tokens to every session and 1,358 once invoked, about $0.0002 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-30.

Related

pathfinder compared with skills from other repositories

pathfinder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pathfinderthedotmack/claude-memSkill121ktodayApache-2.0A62Claude Code
hivemind-goalsactiveloopai/hivemindSkill1.7k19d agoApache-2.0A103Claude Code
hivemind-graphactiveloopai/hivemindSkill1.7k19d agoApache-2.0A105Claude Code
hivemind-memoryactiveloopai/hivemindSkill1.7k19d agoApache-2.0A33Claude Code
hivemind-memoryactiveloopai/hivemindSkill1.7k19d agoApache-2.0A33Claude Code
hivemindactiveloopai/hivemindSkill1.7k19d agoApache-2.0A32Claude Code
dejavucmg8431/claude-dejavuSkill26mo agoMITA51Claude Code