Skip to content
Agentmart
Submit a tool

AGENTS.md · chenxiachan/thoughtdag

AGENTS.md from chenxiachan/thoughtdag: 31 lines covering 常用命令, 架构, 约定.

Template by chenxiachan

IndexedMIT★ 694
Write a review

Chalk Labs

Need help deploying AGENTS.md · chenxiachan/thoughtdag?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/chenxiachan/thoughtdag/main/AGENTS.md -o AGENTS.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The AGENTS.md file that chenxiachan/thoughtdag (693 stars) keeps for coding agents. It has 31 lines in 3 sections: 常用命令; 架构; 约定. Use it as a model for your own project's instructions.

Use cases: prompt-engineering

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.

For
Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
Length
31 lines
File
AGENTS.md

Sections

  1. 常用命令
  2. 架构
  3. 约定

First lines (shown under the repo's MIT license)

# AGENTS.md

ThoughtDAG:把 LLM 对话变成无限画布上可编辑的思维 DAG(节点=一轮问答,边=上下文流)。React 19 + Vite + TypeScript 前端,Express 代理后端。状态:活跃开发中的开放原型(github.com/chenxiachan/thoughtdag)。

## 常用命令

```bash
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)替代。

Signals

Stars
694
Forks
68
Open issues
2
Contributors
12
Last commit (this folder)
Aug 2, 2026 (2 months ago)
Last release
Oct 24, 2026 (6 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from chenxiachan

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get AGENTS.md · chenxiachan/thoughtdag running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying AGENTS.md · chenxiachan/thoughtdag?

CallGet help
Cite this page

AGENTS.md · chenxiachan/thoughtdag. Agent Mart. https://agentmart.dev/templates/chenxiachan-thoughtdag-agents-md (last updated 2026-10-24)