Borrowing it
Nothing to install: this file belongs to linxule/deepthonk. 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/linxule/deepthonk/main/AGENTS.mdgit clone --depth 1 https://github.com/linxule/deepthonkWrote 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/instructions/linxule/deepthonk/agents-md)<a href="https://agentmods.dev/instructions/linxule/deepthonk/agents-md"><img src="https://agentmods.dev/badge/instructions/linxule/deepthonk/agents-md/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/instructions/linxule/deepthonk/agents-md"><img src="https://agentmods.dev/badge/instructions/linxule/deepthonk/agents-md.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.00769 | $0.00769 |
| Opus 5.5 | $0.00308 | $0.00308 |
| Sonnet 5.5 | $0.00154 | $0.00154 |
| Haiku 4.5 | $0.00077 | $0.00077 |
Grade C, and why
deepthonk AGENTS.md scanned grade C 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 2mo 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf runs/test-quick What it actually says
DeepThonk Build Instructions
DeepThonk is a provider-neutral, OpenDeepThink-style reasoning optimizer exposed as a TypeScript CLI and MCP server.
The algorithm is from Zhou et al. 2026 (OpenDeepThink: Parallel Reasoning via Bradley–Terry Aggregation, arXiv:2605.15177); the authors' Python reference implementation is at https://github.com/ZhouShang0817/open-deep-think (MIT). DeepThonk is an independent TypeScript reimplementation — not a fork, no code vendored from the reference.
Tagline: thonk harder, not richer.
Build and maintain the project around one shared execution engine in packages/core. The CLI and MCP server are wrappers over that engine; do not duplicate algorithm logic in those packages.
Design principle: agent-composable surface. Every algorithm dimension — population shape (n, k, t, m), regularization (lambda), temperatures, prompt style, and per-phase prompt templates — must be reachable inline through MCP tool arguments and CLI flags, not only through YAML files. Inspection of every intermediate artifact must remain available as MCP resources. See docs/customization.md for the variable contract.
Core requirements:
- Implement population-based candidate generation, randomized pairwise comparison, Bradley-Terry aggregation, elite preservation, critique-guided mutation, bottom-quartile discard, and final dense ranking.
- Keep all model access behind the provider-neutral
ModelDrivercontract inpackages/providers. - Support
fake,openai-compatible, anddeepseekproviders. - Do not request hidden chain-of-thought. Ask models for final artifacts, concise rationales, critiques, and strict JSON where needed.
- Never log API keys or env var values. Do not write prompts or raw model output unless explicitly configured.
- MCP is a protocol wrapper over core execution, not a separate execution engine.
- The Streamable HTTP transport must keep DNS rebinding protection on and validate
Hostagainst the loopback bind (CVE-2025-66414 class). Do not remove that guard when extending the transport. - Background MCP jobs (
deepthonk.start) must wrap both their success and failure handlers so a filesystem error cannot escape as an unhandled rejection. - Use
pnpm, TypeScript, Vitest, Zod 4, Commander, YAML, and the stable official MCP TypeScript SDK package@modelcontextprotocol/sdk. Do not addp-limit: it was removed in v0.3.0 because nothing imported it —phaseRunner.tsimplements its own worker pool. zodis part of@deepthonk/core's published API (index.tsre-exportsschemas.ts). A Zod major bump is a breaking release, not a dependency chore.- Anything
test/imports must be declared in the rootpackage.json.test/sits at the workspace root, so a package reaching it only transitively resolves locally and then fails CI withERR_MODULE_NOT_FOUND. This has bittenyaml,@modelcontextprotocol/sdk, andzod.
Acceptance checks:
pnpm install
pnpm run build
pnpm test
pnpm --silent --filter deepthonk deepthonk plan --profile paper
rm -rf runs/test-quick
pnpm --silent --filter deepthonk deepthonk run --provider fake --profile quick --task examples/tasks/toy-math.txt --out runs/test-quick
pnpm --silent --filter deepthonk deepthonk inspect runs/test-quick
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.
- 2mo ago First seen · 38 lines · 769 tokens per session scan C 0fc8c2d7f0f3
deepthonk AGENTS.md is an instructions file published in the GitHub repository linxule/deepthonk (0 stars, last pushed 16d ago), licensed MIT. It adds 769 tokens to every session, about $0.0031 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
deepthonk AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| deepthonk AGENTS.mdlinxule/deepthonk | Instructions file | 0 | 16d ago | MIT | C | 769 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |