Borrowing it
Nothing to install: this file belongs to chenxiachan/thoughtdag. 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/chenxiachan/thoughtdag/main/AGENTS.mdgit clone --depth 1 https://github.com/chenxiachan/thoughtdagWrote 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/chenxiachan/thoughtdag/agents-md)<a href="https://agentmods.dev/instructions/chenxiachan/thoughtdag/agents-md"><img src="https://agentmods.dev/badge/instructions/chenxiachan/thoughtdag/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/chenxiachan/thoughtdag/agents-md"><img src="https://agentmods.dev/badge/instructions/chenxiachan/thoughtdag/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.00585 | $0.00585 |
| Opus 5.5 | $0.00234 | $0.00234 |
| Sonnet 5.5 | $0.00117 | $0.00117 |
| Haiku 4.5 | $0.00059 | $0.00059 |
Grade A, and why
thoughtdag AGENTS.md 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 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.
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
AGENTS.md
ThoughtDAG:把 LLM 对话变成无限画布上可编辑的思维 DAG(节点=一轮问答,边=上下文流)。React 19 + Vite + TypeScript 前端,Express 代理后端。状态:活跃开发中的开放原型(github.com/chenxiachan/thoughtdag)。
常用命令
npm run dev # Vite 前端 (默认 5173)
npm run server # LLM 代理 server.mjs (端口 3001,前端默认指向它)
npm run build # tsc -b && vite build
npm run smoke # scripts/smoke.mjs 冒烟测试
npm run lint
需要 .env(见 .env.example):至少一把 LLM key(ZHIPU_API_KEY 免费档 glm-4.5-flash,或 DASHSCOPE_API_KEY 付费)。
架构
server.mjs— 唯一后端文件:Express 代理,用 Vercel AI SDK(ai+@ai-sdk/openai-compatible+zhipu-ai-provider)调 LLM;含 agentic 网页搜索 + 行内引用(搜索后保证有综合回答)。src/store/— zustand 全局状态;持久化用 idb-keyval(IndexedDB)。src/components/— 画布基于@xyflow/react(React Flow):ThoughtNode、ThoughtEdgeView、SelectionToolbar(圈选对齐,对齐前有确认提示)、focus-panel/。src/lib/api.ts— 前端到 server.mjs 的调用层。src/i18n/— 中英双语。- Markdown 渲染:react-markdown + KaTeX + highlight.js;PDF 附件用 pdfjs-dist。
约定
- 布局必须遵守箭头(上下文流)顺序,同一对话链节点竖向对齐——这是用户明确要求过的行为,改布局逻辑时不要破坏。
- 与用户交流用中文;代码标识符和注释保持英文。
- UI 文案(i18n、tooltip、toast、placeholder)不出现第三方品牌名。功能性标识除外:环境变量名、导入格式的身份(如 ChatGPT 导出文件)、实际数据源(arXiv、Semantic Scholar)。举例、推荐、宣传式的品牌提及一律用通称("外部 OCR 工具""其他助手")或扩展名(.docx)替代。
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 · 31 lines · 585 tokens per session scan A f55f6eb0bbf4
thoughtdag AGENTS.md is an instructions file published in the GitHub repository chenxiachan/thoughtdag (742 stars, last pushed 5d ago), licensed MIT. It adds 585 tokens to every session, about $0.0023 per session on Opus 5.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.
thoughtdag AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| thoughtdag AGENTS.mdchenxiachan/thoughtdag | Instructions file | 742 | 5d ago | MIT | A | 585 | 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 | today | 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 |