potpie-debug-memory

potpie-debug-memory is a skill for Claude Code, Codex from potpie-ai/potpie. It costs 41 tokens per session (573 once invoked), scanned A, original, Apache-2.0.

A project-memory lookup for debugging software failures. It searches earlier symptoms, fixes, failed attempts, infrastructure relationships, and related changes.

In plain words
What is it for?
Use it before investigating flaky tests, CI failures, production alerts, deployment incidents, local setup problems, regressions, or recurring bugs.
Why use it?
It helps avoid repeating investigations and can point to known fixes or changes connected with the same error, environment, dependency, or test path.

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/potpie-ai/potpie/potpie-debug-memory
Any agent
npx skills add potpie-ai/potpie --skill potpie-debug-memory
Clone the repo
git clone --depth 1 https://github.com/potpie-ai/potpie

Made for: Claude Code, Codex.

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 potpie-debug-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/potpie-ai/potpie/potpie-debug-memory.svg)](https://agentmods.dev/skills/potpie-ai/potpie/potpie-debug-memory)
Your own site
<a href="https://agentmods.dev/skills/potpie-ai/potpie/potpie-debug-memory"><img src="https://agentmods.dev/badge/skills/potpie-ai/potpie/potpie-debug-memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 573 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.00041 $0.00573
Opus 5 $0.00020 $0.00287
Sonnet 5 $0.00008 $0.00115
Haiku 4.5 $0.00004 $0.00057

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

Security

Grade A, and why

potpie-debug-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 4d 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.

potpie/cli/templates/agent_bundle/.agents/skills/potpie-debug-memory/SKILL.md · 80 lines

How it starts

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

Potpie Debug Memory

Use this skill before digging into a failure so prior symptoms, known fixes, and failed attempts can guide the investigation.

Fast Path

Search by symptom first, not just component name. Include exact error text, commands, failing tests, environment, service, dependency, and synonyms.

potpie graph read \
  --subgraph debugging \
  --view prior_occurrences \
  --query "<expanded symptom query>" \
  --scope service:<service-name> \
  --limit 12

If no service is known, omit --scope. If the failure smells like a regression, correlate with the timeline:

potpie graph read \
  --subgraph recent_changes \
  --view timeline \
  --format table \
  --time-window 7d \
  --query "<symptom feature dependency>" \
  --limit 20

If dependencies, adapters, environments, or deploys matter, read infra too:

potpie graph read \
  --subgraph infra_topology \
  --view service_neighborhood \
  --scope service:<service-name> \
  --depth 2 \
  --direction both

Apply Results

Treat prior fixes as leads. Check whether the same symptom, environment, version, dependency, data shape, command, or test path matches this incident. Failed prior attempts are useful because they prevent repeated work.

Record Debug Memory

Record after the investigation when the learning is reusable: bug pattern, fix, verification, failed attempt, incident summary, runbook note, or setup gotcha.

Use the workbench write flow:

potpie --json graph catalog --task "record bug fix"
potpie graph search-entities "<service or symptom>" --limit 10
potpie --json graph describe debugging --view prior_occurrences --examples
potpie --json graph propose --file mutation.json
potpie --json graph commit <plan_id> --verify
potpie --json graph history --plan <plan_id>

Good debug memory includes the distinctive error text, repro signal, root cause or uncertainty, fix steps, verification status, scope, truth class, evidence, and a retrieval-grade description with symptom synonyms.

Read the full file on GitHub · 80 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. 4d ago First seen · 80 lines · 41 tokens per session scan A f3fdab1915bd

Subscribe to this mod's changes

potpie-debug-memory is a skill published in the GitHub repository potpie-ai/potpie (5,710 stars, last pushed yesterday), licensed Apache-2.0. It adds 41 tokens to every session and 573 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

ux-ui-map-page-by-page

Produce the EdgeQuake WebUI UX/UI map one route at a time (capture screenshots, then immediately write per-page docs and per-page analysis requests). Use when asked to map UI, capture screens page-by-page, avoid agent memory saturation, or generate uxuimap artifacts.

raphaelmansuy/edgequake · 63 tokens

ux-ui-analyze-single-page

Analyze exactly one captured UI page (from uxuimap screenshots + request JSON) and immediately write/update uxuimap/pages/{page}.md in neutral descriptive language. Use when asked to analyze screenshots, rewrite corresponding analysis immediately, or avoid memory/context saturation.

raphaelmansuy/edgequake · 58 tokens

build-paths-beginner

Scaffold a small RAG chatbot on Oracle 26ai Free + langchain-oracledb + OCI Generative AI Grok 4 + sentence-transformers MiniLM-L6-v2 (Python-side embeddings, same model intermediate/advanced register inside Oracle) + Open WebUI. Three flavors that share one skeleton — PDF / Markdown / Web. For users new to Oracle who…

oracle-devrel/oracle-ai-developer-hub · 93 tokens

langchain-oracledb-helper

Scaffold a langchain-oracledb store layer — multi-collection OracleVS wrapper, metadata-as-string monkeypatch, embedder-dim assertion, OracleChatHistory subclass (langchain-oracledb does not ship one). Use when a project needs Oracle as its LangChain vector store and chat-history backend.

oracle-devrel/oracle-ai-developer-hub · 72 tokens

hybrid-memory

Hybrid memory strategy combining OpenClaw's built-in QMD vector memory with Graphiti temporal knowledge graph. Use for all memory recall requests.

clawdbrunner/openclaw-graphiti-memory · 32 tokens

midmem-dev

Develop/iterate on the MidMem middleware core (this repo's packages/core — the shared "LLM Wiki" knowledge layer). Use when adding or changing MidMem capability — retrieval lanes, tiers/lifecycle, work-memory events, concept routing, claims, grounding, the MCP/CLI/hook surfaces, or its tests. Encodes the…

U4CSolutions/MidMem · 136 tokens