mcp-memory-service: Command for Claude Code

.claude/commands/triage.md

triage is a command for Claude Code from doobidoo/mcp-memory-service. It costs 0 tokens per session (1,179 once invoked), scanned A, original, Apache-2.0.

A command that scans and organizes open security alerts from Dependabot, CodeQL, and secret scanning for the mcp-memory-service project.

In plain words
What is it for?
Use it to classify alerts by severity, repair complexity, and exploitability, then create branches, implement fixes, and open pull requests.
Why use it?
It turns scattered security warnings into a prioritized list of issues with suggested fixing work.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is doobidoo/mcp-memory-service's own configuration. It tells Claude Code how to work on mcp-memory-service 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 mcp-memory-service configures →

About the project

mcp-memory-service is a self-hosted memory backend that lets AI agents store and retrieve shared project context through REST, MCP, OAuth, a command-line interface, and a dashboard. It is intended for agent pipelines and clients such as LangGraph, CrewAI, AutoGen, Claude Desktop, and OpenCode, with support for knowledge graphs and memory consolidation. The catalogue includes skills, agents, commands, instructions, hooks, a setting, an MCP entry, and a plugin for its workflows.

doobidoo/mcp-memory-service · 1,926 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to doobidoo/mcp-memory-service. 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/doobidoo/mcp-memory-service/main/.claude/commands/triage.md
Clone the repo
git clone --depth 1 https://github.com/doobidoo/mcp-memory-service

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 triage

README.md
[![agentmods](https://agentmods.dev/badge/commands/doobidoo/mcp-memory-service/triage.svg)](https://agentmods.dev/commands/doobidoo/mcp-memory-service/triage)
Your own site
<a href="https://agentmods.dev/commands/doobidoo/mcp-memory-service/triage"><img src="https://agentmods.dev/badge/commands/doobidoo/mcp-memory-service/triage.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,179 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.00000 $0.01179
Opus 5 $0.00000 $0.00589
Sonnet 5 $0.00000 $0.00236
Haiku 4.5 $0.00000 $0.00118

Measured 6d ago against content hash 4972c831b0f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

triage 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 6d 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.

.claude/commands/triage.md · 155 lines

How it starts

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

/triage — Security Alert Triage & Remediation

Scan, classify, and fix security alerts for mcp-memory-service.

Steps

1. Scan All Security Alerts

Run these in parallel to gather all alerts:

Dependabot alerts:

gh api repos/{owner}/{repo}/dependabot/alerts --jq '.[] | select(.state=="open") | {number, severity: .security_advisory.severity, package: .security_vulnerability.package.name, summary: .security_advisory.summary, cve: .security_advisory.cve_id}'

CodeQL alerts:

gh api repos/{owner}/{repo}/code-scanning/alerts --jq '.[] | select(.state=="open") | {number, severity: .rule.security_severity_level, rule: .rule.id, description: .rule.description, file: .most_recent_instance.location.path}'

Secret scanning alerts:

gh api repos/{owner}/{repo}/secret-scanning/alerts --jq '.[] | select(.state=="open") | {number, secret_type: .secret_type_display_name, created_at}'

2. Classify Each Alert

For each open alert, determine:

Factor Assessment
Severity critical / high / medium / low (from alert data)
Fix complexity trivial (dep bump) / moderate (code change) / complex (architecture)
Exploitability Is this reachable in our code? Check if the vulnerable code path is actually used
Priority Severity × Exploitability → fix order

Present a summary table sorted by priority (critical first).

3. Create Fix Branches and Implement Fixes

For each alert to fix (starting with highest priority):

# Create fix branch
git checkout -b fix/security-<alert-type>-<number> main

# For Dependabot (dependency bumps):
# Update the dependency in pyproject.toml to the patched version
# Run: pip install -e . && pytest --tb=short -q

# For CodeQL (code fixes):
# Read the flagged file and line
# Implement the fix following the CodeQL recommendation
# Run: pytest --tb=short -q

# For secret scanning:
# Rotate the exposed credential immediately
# Remove from code history if needed
# Update .gitignore / .env.example as needed

Read the full file on GitHub · 155 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. 6d ago First seen · 155 lines · 0 tokens per session scan A 4972c831b0f3

Subscribe to this mod's changes

triage is a command published in the GitHub repository doobidoo/mcp-memory-service (1,926 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,179 tokens. 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.