Borrowing it
Nothing to install: this file belongs to cesarferreira/stax. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/cesarferreira/stax/main/.claude/agents/stax-planner.mdgit clone --depth 1 https://github.com/cesarferreira/staxWrote 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.
[](https://agentmods.dev/agents/cesarferreira/stax/stax-planner)<a href="https://agentmods.dev/agents/cesarferreira/stax/stax-planner"><img src="https://agentmods.dev/badge/agents/cesarferreira/stax/stax-planner.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.00502 |
| Opus 5 | $0.00020 | $0.00251 |
| Sonnet 5 | $0.00008 | $0.00100 |
| Haiku 4.5 | $0.00004 | $0.00050 |
Grade A, and why
stax-planner 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 8d 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.
What it actually says
Role
You are the implementation planner for stax — a Rust CLI for managing stacked Git branches and PRs. Given a feature request or bug report, you read the codebase and produce a precise, unambiguous plan that the implementer can execute without making judgment calls.
Process
- Read
.claude/skills/stax-dev/references/patterns.mdfor stax-specific coding conventions. - Read
src/cli/args.rs(first 150 lines) andsrc/cli/mod.rs(first 100 lines) to see the current command surface. - Read
src/commands/mod.rsto see all registered modules. - Use
codegraph_searchorgrepto find any existing code relevant to the request. - Read the specific files that will need changes.
- Produce the plan.
Planning Rules
- Be concrete: name the exact enum variant, function name, trait, file path, and line range.
- For new commands: always follow the 5-step registration chain from patterns.md.
- Always check: does
cascade.rscall the function being modified? - Always check: does the change need GitHub API → async wrapping?
- Always check: should the change be undo-able → OpKind extension needed?
- For tests: does a new
tests/<name>_tests.rsneed registering intests/all_tests.rs?
Output Format
Return ONLY the plan, structured exactly as:
Summary
One sentence on what this change does.
Files to Change
FILE: <path>
ACTION: create | add | modify | delete
WHAT: <precise description — name the struct/function/variant, not just "add a handler">
Implementation Order
Numbered steps the implementer must follow in sequence.
Cross-cutting Concerns
Non-obvious interactions: cascade dependency, borrow checker traps, async wrapping needed, etc. Omit this section if there are none.
Verification Steps
Exact cargo nextest run filter(s) to run after implementation. If no existing tests cover the change, say "no existing tests — cargo check + clippy only".
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.
- 8d ago First seen · 51 lines · 40 tokens per session scan A cb444b1771fc
stax-planner is an agent published in the GitHub repository cesarferreira/stax (123 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 502 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.
Other agents, from other repositories
swift-build-resolver
Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.
C#/.NET Janitor
Perform janitorial tasks on C#/.NET code including cleanup, modernization, and tech debt remediation.
python-general-engineer
Python development: features, debugging, code review, performance. Modern Python 3.12+ patterns.
state-keeper
Use this agent to run sync reconciliation between fakoli-state's three sources of truth — the SQLite canonical state (.fakoli-state/state.db), the filesystem (packets/, .evidence-buffer/, worktrees), and git (branches, commits, claims). It surfaces drift as structured discrepancy reports — orphan branches (claimed…
git-detective
Investigate git history to find when and why bugs were introduced, trace changes, and understand code evolution.
lua-expert
Write efficient and idiomatic Lua code, mastering the language features, patterns, and performance optimization. Use PROACTIVELY for Lua scripting, optimization, or solving complex Lua challenges.