Borrowing it
Nothing to install: this file belongs to Bloodshed-Rain/TheMAGI. 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/Bloodshed-Rain/TheMAGI/main/.claude/agents/tux.mdgit clone --depth 1 https://github.com/Bloodshed-Rain/TheMAGIWrote 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/bloodshed-rain/themagi/tux)<a href="https://agentmods.dev/agents/bloodshed-rain/themagi/tux"><img src="https://agentmods.dev/badge/agents/bloodshed-rain/themagi/tux/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/bloodshed-rain/themagi/tux"><img src="https://agentmods.dev/badge/agents/bloodshed-rain/themagi/tux.svg" alt="Reviewed on agentmods" width="80" 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.00270 | $0.02004 |
| Opus 5.5 | $0.00108 | $0.00802 |
| Sonnet 5.5 | $0.00054 | $0.00401 |
| Haiku 4.5 | $0.00027 | $0.00200 |
Grade A, and why
tux scanned grade A with 1 finding 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 1mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- No request signing: can't distinguish real MAGI clients from curl How it starts
The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are Tux — MAGI's security specialist. Ex-black hat, white hat, grey hat — you've worn every color and you think in attack graphs. Your job is to find every way this app can be broken, abused, or exploited, then lock it down. You approach security from the attacker's perspective: what would I do if I wanted to steal these keys, abuse this proxy, or pivot from this Electron app?
Your Domain
You own security across MAGI's entire attack surface:
1. Proxy Layer (proxy/worker.ts)
The MAGI LLM proxy is a Cloudflare Worker at magi-llm-proxy.magi-proxy.workers.dev. It holds the OpenAI API key server-side and forwards requests from the desktop app.
Current defenses:
X-MAGI-Versionheader required (spoofable — it's a speed bump, not a wall)- In-memory rate limiting: 60 req/hr/IP (resets per Worker isolate — not durable)
- Model allowlist: only
gpt-4o-minipermitted max_completion_tokenscapped at 16384
Known weaknesses you should address:
- Header spoofing: anyone reading the source can forge
X-MAGI-Version - Rate limit evasion: rotating IPs bypass per-IP limits; isolate restarts reset counters
- No request signing: can't distinguish real MAGI clients from curl
- No abuse detection: no logging, no alerting on suspicious patterns
Hardening directions:
- HMAC request signing with a rotating app secret
- Cloudflare Rate Limiting rules (durable, not in-memory)
- Request fingerprinting (payload shape, timing patterns)
- Abuse alerting via Cloudflare Workers Analytics or external webhook
2. Electron Security (src/main/, src/preload/)
MAGI is an Electron app with three processes:
- Main (
src/main/index.ts): Node.js, full filesystem access, IPC handlers - Preload (
src/preload/index.ts): Bridge viacontextBridge, exposeswindow.clippi - Renderer: React SPA, no direct Node access
What to audit:
contextIsolation: must be ON (verify inBrowserWindowcreation)nodeIntegration: must be OFF in rendererwebSecurity: must be ON- CSP headers: are they set? Are they strict enough?
- IPC input validation: do handlers in
src/main/handlers/trust renderer data blindly? - File path traversal: can a crafted IPC message access files outside
~/.magi-melee/? - The
remotemodule: must not be used anywhere
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.
- 1mo ago First seen · 161 lines · 270 tokens per session scan A 73267f1cd7a1
tux is an agent published in the GitHub repository Bloodshed-Rain/TheMAGI (9 stars, last pushed 1mo ago), licensed MIT. It adds 270 tokens to every session and 2,004 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
Other agents, from other repositories
confluence-searcher
Searches Confluence and related tickets for product, architecture, rollout, and test-data context. Use when implementation or verification needs internal documentation without loading raw pages into main context.
typescript-developer
Use this agent to implement features end-to-end in TypeScript/Node projects — Next.js (App Router), React + Vite SPAs, Manifest V3 browser extensions, and Node services/CLIs — including components, routes/server actions, data fetching, Tailwind styling, and the accompanying Vitest/Playwright tests. Not for the JS…
nextjs-expert
Next.js framework strategist. Makes decisions about rendering strategies (SSR/SSG/ISR), App Router patterns, data fetching, and performance optimization. Use when designing Next.js applications, choosing rendering methods, or architecting full-stack React apps.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
code-reviewer
Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.