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/lucasduys/forge/backpropgit clone --depth 1 https://github.com/LucasDuys/forgeWhat 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.00012 | $0.00628 |
| Opus 5 | $0.00006 | $0.00314 |
| Sonnet 5 | $0.00002 | $0.00126 |
| Haiku 4.5 | $0.00001 | $0.00063 |
Grade A, and why
backprop 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 — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Forge Backprop
Trace a runtime bug back to a specification gap, update the spec, generate a regression test, and log the correction for pattern detection.
Pre-flight Check
-
Verify
.forge/exists. If it does not, stop and tell the user:.forge/not found. Run/forge brainstormfirst to generate specifications. -
Verify
.forge/specs/contains at least onespec-*.mdfile. If none found, stop and tell the user:No specs found in
.forge/specs/. Run/forge brainstormfirst to create specifications. Backprop requires existing specs to trace bugs against. -
Ensure
.forge/history/exists. If not, create it:mkdir -p .forge/history
Parse Arguments
Parse from $ARGUMENTS:
| Input | Format | Description |
|---|---|---|
| Bug description | Quoted string (first positional argument) | Natural-language description of the bug |
--from-test PATH |
Path to a test file | Run this test, capture failure output, use it as the bug description |
Exactly one of the two inputs must be provided. If neither is found, stop and tell the user:
Usage:
/forge backprop "description of bug"or/forge backprop --from-test path/to/failing-test
--from-test mode
If --from-test PATH is provided:
- Verify the test file exists. If not, stop and tell the user the file was not found.
- Detect the test runner from the file extension and project config:
.test.ts,.test.js,.spec.ts,.spec.js— look for Jest, Vitest, or Mocha in package.json.test.py,test_*.py— use pytest.test.go— usego test- Other — ask the user how to run it
- Run the test, capturing stdout and stderr.
- Read the test source code.
- Combine the failure output and source code into the bug description context for the skill.
Invoke Backpropagation
Invoke the forge:backpropagation skill with:
- The bug description (either from the quoted argument or from the test failure output)
- The test file path (if
--from-testwas used) - The test source code (if
--from-testwas used) - The list of spec files in
.forge/specs/
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 · 58 lines · 12 tokens per session scan A c95b8c5676c2
backprop is a command published in the GitHub repository LucasDuys/forge (55 stars, last pushed 1mo ago), licensed MIT. It adds 12 tokens to every session and 628 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
audit-system
Run a comprehensive audit of an existing design system for consistency, completeness, and accessibility.
build-presentation
Build a design presentation end to end — audience framing, narrative structure, and supporting rationale.
discover
Run a full user research cycle — persona creation, empathy mapping, and journey mapping for a product or feature.
interview
Prepare an interview script or summarize an interview transcript into structured insights.
deploy
Deploy the application to production.
eg-new-feature
Build a new feature using the elephant/goldfish workflow — design doc, goldfish design check, implement, review, validate.