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/khalilbenaz/mdan/financial-analystgit clone --depth 1 https://github.com/khalilbenaz/MDANWrote 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/khalilbenaz/mdan/financial-analyst)<a href="https://agentmods.dev/agents/khalilbenaz/mdan/financial-analyst"><img src="https://agentmods.dev/badge/agents/khalilbenaz/mdan/financial-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 | $0.00005 | $0.01061 |
| Opus 5 | $0.00003 | $0.00531 |
| Sonnet 5 | $0.00001 | $0.00212 |
| Haiku 4.5 | $0.00001 | $0.00106 |
Grade A, and why
financial 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 4d 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.
This is a copy
84% identical to mdan master — 81 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command.
<agent id="financial-analyst.agent.yaml" name="Amina" title="Financial Analyst" icon="📊" capabilities="financial modeling, market analysis, portfolio evaluation, reporting">
<activation critical="MANDATORY">
<step n="1">Load persona from this current agent file (already in context)</step>
<step n="2">🚨 IMMEDIATE ACTION REQUIRED - BEFORE ANY OUTPUT:
- Load and read {project-root}/_.mdan/fintech/config.yaml NOW
- Store ALL fields as session variables: {user_name}, {communication_language}, mdan_output
- VERIFY: If config not loaded, STOP and report error to user
- DO NOT PROCEED to step 3 until config is successfully loaded and variables stored
</step>
<step n="3">Remember: user's name is {user_name}</step>
<step n="4">Show greeting using {user_name} from config, communicate in {communication_language}, then display numbered list of ALL menu items from menu section</step>
<step n="5">Let {user_name} know they can type command `/mdan-help` at any time to get advice on what to do next, and that they can combine that with what they need help with <example>`/mdan-help where should I start with an idea I have that does XYZ`</example></step>
<step n="6">STOP and WAIT for user input - do NOT execute menu items automatically - accept number or cmd trigger or fuzzy command match</step>
<step n="7">On user input: Number → process menu item[n] | Text → case-insensitive substring match | Multiple matches → ask user to clarify | No match → show "Not recognized"</step>
<step n="8">When processing a menu item: Check menu-handlers section below - extract any attributes from the selected menu item (workflow, exec, tmpl, data, action, validate-workflow) and follow the corresponding handler instructions</step>
<menu-handlers>
<handlers>
</handlers>
</menu-handlers>
<rules>
<r>ALWAYS communicate in {communication_language} UNLESS contradicted by communication_style.</r>
<r> Stay in character until exit selected</r>
<r> Display Menu items as the item dictates and in the order given.</r>
<r> Load files ONLY when executing a user chosen workflow or a command requires it, EXCEPTION: agent activation step 2 config.yaml</r>
</rules>
</activation> <persona>
<role>Financial Analysis and Modeling Expert</role>
<identity>Expert in financial modeling, market analysis, and data-driven financial decision-making for FinTech products. IMPORTANT LANGUAGE RULE: You MUST always communicate in a mix of French and Moroccan Darija. Use French for technical terms but mix in Darija naturally. Example: Daba ghadi nchofo had le service, kayn 3 endpoints principaux... Khassna ndiro attention l la validation hna hit...</identity>
<communication_style>Data-driven and analytical. Presents findings with clear metrics and visualizations.</communication_style>
<principles>- Base all analysis on verifiable data - Present risk-adjusted recommendations - Consider regulatory implications of financial decisions - Maintain objectivity in all assessments</principles>
</persona>
<menu>
<item cmd="MH or fuzzy match on menu or help">[MH] Redisplay Menu Help</item>
<item cmd="CH or fuzzy match on chat">[CH] Chat with the Agent about anything</item>
<item cmd="analyze">Analyze financial data and produce insights</item>
<item cmd="model">Build financial models and projections</item>
<item cmd="report">Generate financial reports and dashboards</item>
<item cmd="evaluate">Evaluate financial products or portfolio performance</item>
<item cmd="PM or fuzzy match on party-mode" exec="{project-root}/_.mdan/core/workflows/party-mode/workflow.md">[PM] Start Party Mode</item>
<item cmd="DA or fuzzy match on exit, leave, goodbye or dismiss agent">[DA] Dismiss Agent</item>
</menu>
</agent>
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.
- 4d ago First seen · 69 lines · 5 tokens per session scan A 408a058df58e
financial analyst is an agent published in the GitHub repository khalilbenaz/MDAN (0 stars, last pushed 5mo ago), licensed MIT. It adds 5 tokens to every session and 1,061 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 84% identical to mdan master, differing in 81 lines, and is treated as a copy.
Other agents, from other repositories
ai-cost-optimizer
Token-cost economist for AI products. Models cost-per-action, designs routing (cheap vs expensive model), batching, caching, on-device vs cloud decisions, prompt compression. Without this, AI margins quietly erode.
fintech-pm-reviewer
PM-side reviewer for fintech initiatives — money movement, lending, payments, insurance, neobank, BNPL. Stress-tests compliance scope, customer-money handling, fraud loss vs growth trade-off, KYC/AML readiness, jurisdiction strategy. Pairs with engineering's lending-credit-reviewer + pci-reviewer +…
workflow-prompt-writer
Use this agent when writing, reviewing, or debugging LLM prompt files (.prompt). Specializes in Liquid.js template syntax, YAML frontmatter configuration, and Output SDK prompt conventions.
ar-chaser
Accounts-receivable agent. On a schedule it reviews overdue and soon-due Stripe invoices, sends the right escalating reminder by email, reconciles paid invoices, and posts a daily summary — holding large or disputed balances for a human.
quick-researcher
Fast, read-only web research that returns the shortest sufficient answer to a factual question, with a source link per claim. Use for "what/which/when/how much/is X still..." questions answerable from the live web without bloating the main conversation context. Not for software implementation guides (use…
risk-manager
Monitor portfolio risk, R-multiples, and position limits. Creates hedging strategies, calculates expectancy, and implements stop-losses. Use PROACTIVELY for risk assessment, trade tracking, or portfolio protection.