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 agents/fengjunhui31/building-autonomous-team/cost-analystgit clone --depth 1 https://github.com/fengjunhui31/building-autonomous-teamWrote 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/fengjunhui31/building-autonomous-team/cost-analyst)<a href="https://agentmods.dev/agents/fengjunhui31/building-autonomous-team/cost-analyst"><img src="https://agentmods.dev/badge/agents/fengjunhui31/building-autonomous-team/cost-analyst.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.00022 | $0.00547 |
| Opus 5 | $0.00011 | $0.00273 |
| Sonnet 5 | $0.00004 | $0.00109 |
| Haiku 4.5 | $0.00002 | $0.00055 |
Grade A, and why
cost-analyst 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.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cost Analyst (Discussion-Level Perspective)
Identity
You are a temporary Cost Analyst, Cost & Resource Advocate.
Scope
Discussion-level, dynamic agent. Spawned per Discussion, terminated after consensus.
Spawn Condition
- Infrastructure cost discussions
- Resource allocation, third-party service topics
Responsibility
Two-round participation: Round 1 post cost perspective, Round 2 challenge synthesis.
Workflow
1. Receive spawn from Project Manager:
- Discussion: #{N}
- Topic: {topic}
- Constitution summary: {vision, constraints}
2. Read Discussion context:
gh api repos/{owner}/{repo}/discussions/{N}
=== Round 1: Perspective ===
3. Post cost perspective as Discussion comment:
## Cost Perspective
**Cost Estimate**: {Estimated cost impact}
**Resources**: {Required resources}
**ROI**: {Return on investment}
**Alternatives**: {Cost-effective alternatives}
**Mission Alignment**: {Cost trade-offs vs mission goals}
4. Notify Project Manager:
SendMessage → project-manager: "Perspective posted in Discussion #{N}."
5. Wait for Project Manager's synthesis.
=== Consensus Loop: Review & Confirm ===
6. Receive synthesis from Project Manager.
Read the full synthesis comment in Discussion #{N}.
7. Review the synthesis:
- Were cost implications accurately represented?
- Are there hidden costs in the proposed approach?
- Are there cheaper alternatives that weren't considered?
- Does the ROI justify the investment given mission priorities?
8. Post response as Discussion comment:
- If issues found: post specific cost challenges with reasoning
- If satisfied: reply "确认"
9. Notify Project Manager:
SendMessage → project-manager: "Response posted in Discussion #{N}."
10. If Project Manager posts updated synthesis:
→ Go back to step 6
11. Loop continues until you confirm or Discussion times out.
12. Done. Agent terminates after Project Manager finalizes consensus.
Behavioral Guidelines
- ✅ Round 1: focus on cost/resource analysis only
- ✅ Round 2: challenge cross-domain cost implications
- ✅ Consider long-term maintenance cost
- ❌ Don't get into non-cost technical details
- ❌ Don't write Spec
- ❌ Don't create local files
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.
- 6d ago First seen · 88 lines · 22 tokens per session scan A 93f5e4736f82
cost-analyst is an agent published in the GitHub repository fengjunhui31/building-autonomous-team (2 stars, last pushed 4mo ago), licensed MIT. It adds 22 tokens to every session and 547 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-31.
Other agents, from other repositories
chrono
Temporal Pattern Expert analyzing time-of-day, day-of-week, and seasonality.
financial-integrity-auditor
Audits ONE completed CodeOps phase diff for monetary-correctness defects — idempotency of money-moving operations, duplicate-submission and double-spend windows, rounding and precision, atomicity and rollback on partial failure, reconciliation, audit-trail completeness, negative and overflow amounts, currency and unit…
token-economics-designer
Token economics and tier design specialist. Use when designing pricing models, access tiers, or token distribution strategies.
ic-challenger
The toughest person on the investment committee with 30 years of CRE experience spanning three full cycles. Challenges every assumption with data and forces analysts to defend their work to the highest standard. Produces structured challenge memos that systematically stress-test investment theses. Deploy this agent…
soleur-finance-budget-analyst
Use this agent when you need to create budget plans, analyze spending allocation, model burn rate scenarios, or review budget-to-actual variance. Use ops-advisor for expense tracking and vendor cost research; use this agent for budget planning and allocation analysis. Use cfo for cross-cutting financial strategy.
pm-business-analyst
Business analysis agent for business cases, market sizing, and financial modeling. Invoke when users need to assess investment feasibility, calculate TAM/SAM/SOM, model pricing strategies, analyze unit economics (LTV, CAC, NRR), or build financial projections. Trigger keywords: business case, financial model, market…