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.
npx agentmods add commands/rand/mnemosyne/feature-validategit clone --depth 1 https://github.com/rand/mnemosyneWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00013 | $0.01809 |
| Opus 5 | $0.00006 | $0.00905 |
| Sonnet 5 | $0.00003 | $0.00362 |
| Haiku 4.5 | $0.00001 | $0.00181 |
Grade A, and why
feature-validate 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.
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.
How it starts
The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.
I will help you validate a feature specification using AI-powered semantic analysis.
Usage:
/feature-validate <feature-id>- Validate a specific feature spec/feature-validate --all- Validate all specs in artifacts/specs//feature-validate <feature-id> --fix- Validate and suggest specific fixes
Instructions for me:
-
Load feature spec:
- Read
.mnemosyne/artifacts/specs/<feature-id>.md - If
--all: Glob.mnemosyne/artifacts/specs/*.md - If not found: "Error: Feature spec '' not found"
- Parse YAML frontmatter for spec metadata
- Read
-
Run DSPy validation:
- Execute validation using optimized ReviewerModule v1:
cd src/orchestration/dspy_modules uv run python3 specflow_integration.py ../../.mnemosyne/artifacts/specs/<feature-id>.md --json - Parse JSON output for validation results:
is_valid: Overall validation status (bool)issues: List of specific problems foundsuggestions: Actionable improvement recommendationsrequirements: LLM-extracted requirements from specambiguities: Detected vague terms and missing metricscompleteness_score: 0.0-1.0 quality score
- Execute validation using optimized ReviewerModule v1:
-
Interpret results:
- Excellent (score ≥ 0.9): "✓ Spec quality: Excellent"
- Good (score ≥ 0.8): "✓ Spec quality: Good"
- Fair (score ≥ 0.7): "⚠️ Spec quality: Fair - improvements recommended"
- Poor (score < 0.7): "✗ Spec quality: Poor - significant issues found"
-
Display validation report:
✓ Validation complete Feature ID: <feature-id> Feature Name: <feature-name> Spec Location: .mnemosyne/artifacts/specs/<feature-id>.md Spec Version: <version> Validation Method: DSPy ReviewerModule v1 (semantic analysis) == QUALITY ASSESSMENT == Completeness Score: <score>% (<rating>) Requirements Extracted: <count> Issues Found: <count> Ambiguities Detected: <count> Validation Status: <✓ Pass | ⚠️ Warning | ✗ Fail> == EXTRACTED REQUIREMENTS == [First 5 requirements extracted by LLM:] 1. <requirement> 2. <requirement> 3. <requirement> 4. <requirement> 5. <requirement> [If more than 5:] ... and <N> more requirements == ISSUES == [If issues found:] ✗ <issue 1> ✗ <issue 2> ✗ <issue 3> [If no issues:] ✓ No issues detected == AMBIGUITIES == [If ambiguities found:] 🔍 <location>: <term> Question: <clarifying question> Impact: <why this matters> [If no ambiguities:] ✓ No ambiguities detected == SUGGESTIONS == [If suggestions available:] 💡 <suggestion 1> 💡 <suggestion 2> 💡 <suggestion 3> [If no suggestions:] ✓ Spec meets quality standards == NEXT STEPS == [If score >= 0.8:] - Review spec: cat .mnemosyne/artifacts/specs/<feature-id>.md - Create implementation plan: /feature-plan <feature-id> [If score < 0.8:] - Address issues above (priority: high) - Clarify ambiguities: /feature-clarify <feature-id> - Re-validate: /feature-validate <feature-id> - After fixes, create plan: /feature-plan <feature-id> -
Detailed fix suggestions (if
--fixflag): For each issue/ambiguity, provide:- Location: Exact section/line in spec
- Problem: What's wrong
- Fix: Specific text to add/change
- Example: Show before/after
Format:
== FIX #1: <issue summary> == Location: <section> - <line range> Problem: <specific issue> Suggested Fix: Replace: "<current text>" With: "<improved text>" Example: Before: "API must be fast" After: "API must respond within 200ms (p95 latency) under normal load (1000 req/s)" Rationale: <why this fix improves spec quality> -
Validation for --all flag:
- Run validation on each spec sequentially
- Display summary table:
== BATCH VALIDATION RESULTS == | Feature ID | Score | Status | Issues | Ambiguities | |--------------------|-------|----------|--------|-------------| | jwt-auth | 92% | ✓ Pass | 0 | 0 | | api-rate-limiting | 78% | ⚠️ Warn | 2 | 3 | | user-dashboard | 65% | ✗ Fail | 5 | 7 | Summary: - Total Specs: 3 - Passed (≥80%): 1 - Warning (70-79%): 1 - Failed (<70%): 1 Average Score: 78% Recommended Actions: - Fix critical issues in: user-dashboard - Review and improve: api-rate-limiting
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.
- 2d ago First seen · 205 lines · 13 tokens per session scan A d2032dc458e8
feature-validate is a command published in the GitHub repository rand/mnemosyne (84 stars, last pushed 9mo ago), licensed MIT. It adds 13 tokens to every session and 1,809 once invoked, about $0.0001 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.
Other commands, from other repositories
hatch3r-debug
Standalone debug-and-fix workflow — add strategic debug logging, collect runtime logs from the user, perform root cause analysis, implement the fix, and clean up all debug artifacts.
hatch3r-feature-plan
Design a new capability -- draft user stories, acceptance criteria, data model, API surface, and sub-issue breakdown as an epic-shaped todo.md for greenfield features.
hatch3r-bug-plan
Diagnose a complex incident -- reproduce the symptom, rank root-cause hypotheses, design the fix path, and emit regression coverage items as a board-ready investigation.
hatch3r-bug-pipeline
Run a known-cause bug fix through a 3-phase test-first pipeline -- reproduce + root-cause, regression-test + fix together, then root-cause-depth review -- with full sub-agent delegation.
hatch3r-incident-response
Drive a live production incident through a structured lifecycle -- triage + topology, bounded-autonomy mitigation, stakeholder communication, then a blameless post-mortem with runbook -- via delegated sub-agents.
story-6.1.4
Story ID: 6.1.4 Epic: Epic-6.1 - Agent Identity System Wave: Wave 1 (Foundation) Status: 📋 Ready to Start Priority: 🔴 Critical Owner: Dev (Dex) Created: 2025-01-14 Updated: 2025-01-17 (v4 - Unified System Integration) Duration: 2.5 days (20 hours) Investment: $250.00.