分支到新聊天:对话分开
适合查资料、讨论另一种推导。
若沿用同一项目目录,文件仍然共享;
各聊天约定自己的输出位置。
从工具使用到可复现的研究工作流
王一 · 香港科技大学
From tools to reproducible research workflows
Yi Wang · HKUST
结合各自的研究与教学,交流哪些做法值得尝试。
Discuss approaches worth trying in our own research and teaching.
模型怎样工作,会影响我们怎样使用它。
How the model works
shapes how we use it.
一 · 原理
语言模型将文字分成 token,经神经网络计算,逐步生成后续内容。
多层带参数的加权运算与非线性变换处理输入。
给出前文,预测后续 token。用大量文本、代码等反复训练,降低预测误差。
在预训练模型上继续训练:用示范回答做监督微调,
或利用偏好与奖励优化指令遵循、推理和工具使用。
实际使用时,通常保持模型参数不变,根据当前输入生成输出。
I · Principles
A language model turns text into tokens and uses a neural network to generate continuations.
Layers of weighted operations and nonlinear transformations process inputs.
Predict the next token from preceding text.
Train on large text and code datasets to reduce prediction error.
Continue training a pretrained model: supervised fine-tuning uses example answers; preference and reward methods improve behavior and skills.
During use, parameters usually stay fixed while the model generates from the current input.
一 · 原理 / 1. 大语言模型
每个 token 的表示经过训练得到的变换,产生 Q(Query)、K(Key)、V(Value)向量。
用 Q 与各个 K 匹配,得到权重,再按权重混合 V 中的信息。
“望远镜对准木星,拍下了它……”
一个注意力头的示意:仅画三个位置;权重为示意值。
标准全注意力中,n 个 token 的匹配计算量约随 n2 增长。
输入长度翻倍,这部分计算量约为四倍。
KV 缓存复用已有计算;每个新 token 仍需访问历史。
保存的状态和每步注意力计算量约随 n 增长。
I · Principles / 1. Language models
Learned transformations turn each token representation into Q (Query), K (Key) and V (Value).
Match Q against the keys K, then use those weights to mix the information in V.
“The telescope pointed at Jupiter and photographed it…”
One attention head, showing three positions. Weights are illustrative.
With full attention, matching n tokens scales roughly as n2.
Twice the input means about four times this computation.
A KV cache reuses work; each new token still reads history.
Stored state and attention work per step grow roughly as n.
一 · 原理
输入框收集 user 消息,上方显示 assistant 回复。下一页展开送给模型的内容。
I · Principles
The input box collects the user message; replies appear above. The next slide reveals what is sent to the model.
一 · 原理 / 2. 输入输出格式
<|user|>
Write a brief letter declining a dinner invitation.
<|end|>
<|assistant|>标记用户刚刚写下的任务。
告诉模型:接下来从助手的位置继续写。
这些是 Talkie 的真实角色标记。原聊天脚本没有插入 system 消息。
I · Principles / 2. Input and output formats
<|user|>
Write a brief letter declining a dinner invitation.
<|end|>
<|assistant|>Marks the task the user just entered.
Tells the model where to continue as the assistant.
These are Talkie’s actual role markers. The original chat scripts add no system message.
一 · 原理 / 2. 输入输出格式
<|user|>Write a brief letter declining a dinner invitation.<|end|>
<|assistant|>[第一轮回复 / first reply]<|end|>
<|user|>Make it shorter.<|end|>
<|assistant|>因为输入里有第一轮问题和回复,模型可以接着修改。
聊天程序保留这串 token,下一轮在后面接上新问题。
New chat 清空这段历史,模型就收不到刚才那封信。
I · Principles / 2. Input and output formats
<|user|>Write a brief letter declining a dinner invitation.<|end|>
<|assistant|>[first reply]<|end|>
<|user|>Make it shorter.<|end|>
<|assistant|>The first question and reply are in the input, so the model can revise the letter.
The chat program retains these tokens and appends the next question.
New chat clears this history; the earlier letter is no longer in the input.
一 · 原理 / 2. 输入输出格式
历史对话会重复出现在后续输入中。前缀缓存复用相同部分的计算。
新增加或没有命中缓存的内容,需要处理。
相同前缀命中缓存,复用已有计算,
通常按更低的输入价格计费。
这一轮新生成的回复,按输出计费。
第2轮:user [写信] → assistant [信件]
→ user [简短些]
第3轮:[完整保留第2轮输入]
→ assistant [简短版] → user [亲切些]相同前缀包括 assistant 之前写出的信件。
缓存减少重复计算;历史内容仍然占用上下文。
I · Principles / 2. Input and output formats
Conversation history repeats across requests. Prefix caching reuses its computation.
New input, or input without a cache hit,
needs processing.
A matching prefix reuses earlier computation, usually at a lower input price.
The new reply is billed as output.
Turn 2: user [write] → assistant [letter]
→ user [shorten]
Turn 3: [entire turn-2 input]
→ assistant [shorter] → user [warmer]The repeated prefix includes an assistant reply.
Caching saves computation. The history still occupies context.
一 · 原理 / 2. 输入输出格式
<|system|>
You are a courteous letter-writing adviser. Keep replies brief.
<|end|>
<|user|>Write a brief letter declining a dinner invitation.<|end|>
<|assistant|>希望助手怎样工作,例如回答风格、工作规则和工具使用方法。
仍然是“写一封婉拒晚宴的信”。
这是给原程序增加 system 的示意例子。有些接口还单列 developer,承载应用开发者的指令。
I · Principles / 2. Input and output formats
<|system|>
You are a courteous letter-writing adviser. Keep replies brief.
<|end|>
<|user|>Write a brief letter declining a dinner invitation.<|end|>
<|assistant|>How the assistant should work: style, rules and tool-use instructions.
The immediate task is still to write a letter declining dinner.
An illustrative extension to the original program. Some APIs also use a developer role for application instructions.
一 · 原理 / 2. 输入输出格式
I · Principles / 2. Input and output formats
一 · 原理 / 2. 输入输出格式
工具调用让模型使用外部程序;工具消息把程序的实际输出带回上下文。
请用 Python 算 2πexp(−89)。
from math import sqrt, pi, exp
print(sqrt(pi / 2) * exp(-9 / 8))
0.40689152705457865
结果约为 0.4068915。
模型提出调用;程序运行 Python;结果作为下一步的输入。
示意,省略调用 ID 等接口字段。工具也可以返回错误,模型据此修改。
I · Principles / 2. Input and output formats
A tool call uses an external program. A tool message returns its actual output to the context.
Use Python to calculate 2πexp(−89).
from math import sqrt, pi, exp
print(sqrt(pi / 2) * exp(-9 / 8))
0.40689152705457865
The result is approximately 0.4068915.
The model requests a call. The program runs Python and returns its output.
Illustrative example with call IDs omitted. A tool can also return an error for the model to act on.
一 · 原理 / 2. 输入输出格式
调用仍由 assistant 产生,说明用哪个工具、传哪些参数。
早期 function_call / function,后来 tool_calls / tool;
Responses 使用独立调用项和结果项。
Claude 的 tool_use 在 assistant 中,tool_result 放在下一条 user 消息的内容块中。
共同点是保留来源:哪段是模型生成的,哪段是工具返回的。
I · Principles / 2. Input and output formats
The assistant specifies a tool and its arguments.
function_call / function, then tool_calls / tool.
Responses uses separate call and result items.
Claude places tool_use in assistant content
and tool_result in the next user message.
All distinguish what the model generated from what a tool returned.
一 · 原理
把需要长期保存的信息写进文件,工作时再读进上下文。
I · Principles
Save durable information in files and read it into context when needed.
Material the model uses
for this generation
← Read into context
Save progress to files →
Material, conventions and progress
kept across conversations
一 · 原理 / 3. 记忆
上下文是模型这一次生成能使用的输入材料。运行框架把前面讲的指令、
保留的对话、工具说明与工具结果组织在一起,供模型继续生成。
像工作桌一样,短期记忆只容纳当前要用的材料;其余材料需要时再读入。
H1、L1 是两台探测器。现在要把它们的曲线画在同一张图上。
绘图文件、H1/L1 数据字段、时间与振幅约定。
给出文件路径,让它先定位绘图逻辑,再读有关代码和数据样例。
若进一步修改滤波,再读取处理脚本和滤波参数。
文件经工具读取,返回的内容才进入当前上下文。
I · Principles / 3. Memory
Context is the input available for this generation. The harness brings together instructions,
retained conversation, tool definitions and tool results for the model to continue.
Like a working desk,
context holds material for the current task.
Read more into it when needed.
H1 and L1 are two detectors. Put their curves in the same plot.
Plotting code, H1/L1 fields and time/amplitude conventions.
Give paths. Ask it to read the plotting code and a data sample.
Read processing code and settings if the task expands to filtering.
Reading a file returns its content through a tool, making it available in context.
一 · 原理 / 3. 记忆
200K+ 还是 1M token?按任务与预算选择。
修改一个绘图函数:读有关代码、数据字段与约定。
减少无关内容的干扰;实际输入更少,通常也更省。
同时核查多章书稿,或分析跨模块依赖,
让需要相互比较的材料一起出现。
费用取决于实际输入量、缓存与计费档位;窗口上限大,不等于每次用满。
把目标、约定、已完成工作和下一步
整理成更短的状态,留出继续工作的空间。
压缩可能省略细节,原始文件仍要保留。
把大量材料留在文件中,需要时搜索相关片段。
OpenAI 的工具搜索也采用按需载入:
先找工具,再把所需工具说明放进上下文。
OpenAI 当前同时提供上下文压缩和工具搜索,两者可以配合使用。
I · Principles / 3. Memory
200K+ or 1M tokens? Choose for the task and budget.
For a plotting change, select code, fields and conventions.
Less irrelevant material means less distraction.
Fewer input tokens usually cost less.
For a book-wide check or dependencies across modules,
keep the material that must be compared together.
Cost follows actual input, caching and pricing tiers. A large window need not be filled.
Carry goals, constraints, completed work and next steps
forward in a shorter state to make room.
Keep original files for details that compaction may omit.
Keep large collections in files; retrieve relevant excerpts.
OpenAI tool search similarly loads definitions on demand:
find the tool, then add its definition to context.
OpenAI currently supports both compaction and tool search; they can work together.
一 · 原理 / 3. 记忆
长期记忆可以保存在文件里。文件被读取后,其中的文字作为工具结果进入上下文,
成为下一次生成的输入;项目约定也可以由运行框架自动载入。
已完成:H1 / L1 单独显示
数据:resources/data/gw150914.json
绘图:resources/gw_explorer.html
约定:保留原时间,不平移波形
下一步:增加叠加显示
检查:切换探测器后横轴范围一致结束前,把已经完成的工作和约定写进文件。
“先读 progress.md,再继续下一步。”
工具返回左边这些文字;
运行框架把结果接入当前上下文。
知道要增加叠加显示,并保留原始时间。
需要代码细节时,再读取绘图文件。
另一种入口:Codex 会自动载入适用的 AGENTS.md,将项目约定加入对话。
I · Principles / 3. Memory
Files can hold long-term memory. Reading returns their text as tool output into context,
making it input for the next generation. The harness can also load project instructions automatically.
Done: separate H1 / L1 views
Data: resources/data/gw150914.json
Plot: resources/gw_explorer.html
Convention: keep original timestamps
Next: add an overlay
Check: detector switch keeps x rangeSave completed work and conventions before ending.
“Read progress.md, then continue with the next step.”
The tool returns the text shown on the left.
The harness adds that result to the current context.
Add the overlay and preserve original timestamps.
Read the plotting file when code details are needed.
Another route: Codex automatically loads applicable AGENTS.md instructions into the conversation.


一 · 原理 / 3. 记忆
Fork 从已有对话分出新聊天,保留起点处的历史;之后各自继续探索。
论文、假设与已有推导
继续推导,检查极限
计算与作图,对照解析结果
适合查资料、讨论另一种推导。
若沿用同一项目目录,文件仍然共享;
各聊天约定自己的输出位置。
适合并行尝试不同代码实现。
Git 历史共享,各工作树有自己的文件副本;
完成后比较差异、选择并合入。
要精简上下文,可整理目标、约定与进度摘要,把摘要和必要文件交给全新聊天。
工作树的软件与依赖也需要准备。 执行环境 ↗
I · Principles / 3. Memory
Fork creates a new chat from an existing conversation, retaining its history up to the starting point.
Paper, assumptions and existing derivation
Continue the derivation; check limits
Calculate, plot and compare with the analytic result
For literature searches or alternative derivations.
If chats use the same project directory, they share files.
Agree on separate output locations.
Try different code implementations in parallel.
Shared Git history, separate file checkouts.
Compare changes, select and integrate them.
For a smaller context, give a fresh chat a summary of goals, conventions and progress, plus the necessary files.
A worktree also needs its software and dependencies. Execution environment ↗
一 · 原理
推理阶段可以先尝试、检查和修正,再生成给用户的最终回答。
开头已经说“并不完全相同”,
后面又改口说“完全一样”。
同一条回答留下了矛盾的结论。
把检查和修正放在推理阶段,
再根据修正后的结论组织回答。
控制投入推理的计算量,
让模型有更多机会尝试不同路线、
交叉检查并修正错误。
同一条回答中的三个片段



I · Principles
A reasoning phase allows attempts, checks and revisions before the final answer is presented.
The opening says “not identical”;
later, it changes to “exactly the same”.
Both conclusions remain in the answer.
Check and revise during reasoning,
then write the answer from
the corrected conclusion.
Sets the reasoning compute budget:
more room to try, check and revise.
Three excerpts from the same response



一 · 原理 / 4. 推理与思考强度
模型增加计算、人补充验证方法、智能体分工,可以配合使用。
OpenAI 用同一代码审查模型,改变推理预算,检查已确认的错误。
思考 token:约 7,900 → 30,300;检出率:47% → 68%。
GPT-5.1-Codex;审查 Codex 生成的代码。测量的是检出率。
把科研经验写进任务:换一种推导、检查极限、用数值结果核对。
宇宙弦案例中,研究者要求探索其他方法,并用 Python 交叉验证。
人扩展检查的角度与依据,模型继续推导、计算和修正。
有些产品把主动分工也放进强度选择:
例如 ChatGPT Work 的 Ultra 结合最大推理投入与主动调用子智能体。
计算预算与分工策略是两项设置;界面可以将它们组合起来。
I · Principles / 4. Reasoning and thinking effort
More model computation, human-directed checks and agent delegation can work together.
OpenAI varied one code reviewer’s reasoning budget to recover confirmed bugs.
Thinking tokens: about 7,900 → 30,300; recall: 47% → 68%.
GPT-5.1-Codex reviewing Codex-generated code. The measure is recall.
Specify another derivation, limiting cases or a numerical cross-check.
In the cosmic-string study, researchers requested other methods
and used Python for verification.
People choose the checks and evidence; the model derives, tests and revises.
Some products include proactive delegation in their effort selector.
ChatGPT Work’s Ultra combines maximum reasoning with proactive subagents.
Compute budget and delegation policy are distinct settings that a UI can combine.
一 · 原理
智能体围绕目标反复使用模型和工具,根据结果决定继续、修改或结束。
结合目标与当前上下文,提出回答或工具调用。
连接模型和工具,
组织调用、返回结果与任务状态。
结果或错误回到上下文,模型据此调整下一步。
计算全实轴积分 ∫−∞∞e−ax2cos(bx)dx,a>0,b 为实数。
SymPy 返回 aπexp(−4ab2)。
用 Wolfram Language 核对,
再代入 a=2、b=3,得到约 0.4068915。
比较结果与假设,保存脚本和结论;有差异就继续查。
下一步取决于工具返回的结果。
I · Principles
An agent repeatedly uses a model and tools to pursue a goal, using results to continue, revise or finish.
Use the goal and current context
to answer or request a tool call.
Connect model and tools;
manage calls, results and task state.
Returned results or errors
inform the model’s next decision.
Integrate e−ax2cos(bx) over the real line, for a>0 and real b.
SymPy returns aπexp(−4ab2).
Cross-check with Wolfram Language.
At a=2, b=3, the value is about 0.4068915.
Compare results and assumptions,
then save code and conclusions. Investigate discrepancies.
The next step depends on the tool result.
一 · 原理 / 5. 智能体与工具循环
分清三层职责,才能知道该选模型、配置工具,还是检查运行环境。
| 层面 | 一般职责 | 放回刚才的积分例子 |
|---|---|---|
| 模型 | 理解问题,推理,决定下一步。 | 写出积分表达式,选择工具,解释差异。 |
| 运行框架 | 组织上下文、调用、权限和反馈。 | 把表达式交给工具,再把返回值送给模型。 |
| 工具与环境 | 执行计算,读写文件,保存产物。 | Python / Mathematica 完成运算,文件系统保存脚本。 |
装了桌面客户端后,还要确认 Mathematica 装在哪里、MCP 连到哪里、结果保存在哪里。
I · Principles / 5. Agents and the tool loop
The distinction tells you whether to choose a model, configure a tool or inspect the runtime.
| Layer | General role | In the integral example |
|---|---|---|
| Model | Interpret the task, reason and choose the next step. | Form the integral, select tools and explain discrepancies. |
| Harness | Manage context, calls, permissions and feedback. | Send expressions to tools and return results to the model. |
| Tools and runtime | Execute computations and read or write files. | Python / Mathematica computes; files retain the code. |
Check where Mathematica runs, which MCP server connects to it and where results are saved.
把模型接到文件、软件和工作流程中。
Connect the model to files, software
and working processes.
二 · 框架与智能体
网页对话
搜索与计算 → 文件与工具
代码补全 → 编辑器协作 → 编程智能体
Copilot → Cursor / Windsurf / Zed
→ Claude Code / Codex / OpenCode
使用文件与工具
保存进展 · 接续任务
单次操作 → 消息与日程 → 持续任务OpenClaw 等
II · Harnesses and agents
Conversation
Search and computation → files and tools
Completion → editor collaboration → agents
Copilot → Cursor / Windsurf / Zed
→ Claude Code / Codex / OpenCode
Using files and tools
Save progress · resume tasks
One-off actions → messages and schedules → ongoing tasksOpenClaw and others
二 · 框架与智能体
要解决什么问题,材料在哪里。
哪些约定已确定,最后要拿到什么。
看到什么结果,做哪些检查。
II · Harnesses and agents
What question are we answering, and where is the material?
Which conventions are fixed, and what should be delivered?
What result and checks will show that the task is done?
二 · 框架与智能体 / 2. 工作方式
工作流程把自然语言要求变成文件和程序;每一步都要能找到对应的材料与结果。
让智能体知道在哪个目录工作,材料在哪里。
给出目标、输入、约定和交付。
查看读了什么、运行了什么、改了什么。
试用结果,查看差异,保存可回退的版本。
“先读 resources/gw_explorer.html 和数据格式。
增加 H1 / L1 叠加开关,
保留原时间和振幅约定。”
是否找到绘图代码?是否保留数据约定?是否真的运行并查看结果?
原始/滤波、缩放、重置仍可用;代码差异中没有意外改变数据处理。
提出任务以后,继续观察执行过程并检查产物。
II · Harnesses and agents / 2. Working with an agent
A workflow turns a request into files and software, with inputs and results you can inspect at each step.
Establish the working directory
and input locations.
Specify the goal, inputs,
conventions and deliverables.
See what it reads, runs and changes.
Try the result, review the diff
and retain a version you can return to.
“Read resources/gw_explorer.html and the data format.
Add an H1 / L1 overlay,
preserving timestamps and amplitude conventions.”
Did it find the plotting code,
preserve conventions and actually inspect the result?
Raw/filtered, zoom and reset still work.
The diff contains no unintended processing changes.
After giving the task, observe the work and inspect its output.
二 · 框架与智能体 / 2. 工作方式
直接执行,尽快看到第一份结果。
先让 AI 看项目、解释现状,再讨论计划。
用独立工作目录或 worktree,比较结果后再合并。
保存中间结果、进度和重跑入口。
II · Harnesses and agents / 2. Working with an agent
Execute directly and inspect the first result quickly.
Explore the project, explain its structure, then discuss a plan.
Use separate directories or worktrees and compare before integrating.
Save intermediate results, progress and a rerun entry point.
二 · 框架与智能体 / 2. 工作方式
终端或桌面入口;选择模型,使用 Build / Plan,连接工具。
处理文件和办公任务,例如整理资料、生成报告。
从文档、表格、演示等工作任务开始,观察产物怎样保存。
II · Harnesses and agents / 2. Working with an agent
Terminal or desktop; select a model, use Build / Plan and connect tools.
Start from files and office tasks such as organizing material or drafting reports.
Start from documents, tables and presentations; inspect how outputs are saved.
二 · 框架与智能体
以 Codex 为例:个人约定跨项目复用,项目约定随工程一起保存。
| 所有项目 | 当前项目 | |
|---|---|---|
| 项目规则 AGENTS.md | ~/.codex/AGENTS.md例:汇报习惯、文件操作约定。 | 项目目录/AGENTS.md例:本幻灯片的配色、双语与公式规范。 |
| 智能体技能 Skill | ~/.agents/skills/name/SKILL.md例:各个研究项目都使用的论文下载流程。 | 项目目录/.agents/skills/name/SKILL.md例:只用于本项目的数据处理与出图流程。 |
规则:启动任务时读取;项目内可沿目录逐层补充,更具体的约定优先。
Skill:先提供名称与描述,任务需要时再读取完整步骤和配套脚本。
MCP:连接外部工具的协议。例如,让 Codex 调用 Wolfram Language 执行计算。
~ 表示用户主目录;以上为默认文件位置,name 为技能文件夹名称。
II · Harnesses and agents
In Codex, personal conventions span projects; project conventions live with the work.
| All projects | Current project | |
|---|---|---|
| Project rules AGENTS.md | ~/.codex/AGENTS.mdReporting preferences and file handling. | project/AGENTS.mdThis deck’s colors, languages and math style. |
| Agent skills Skill | ~/.agents/skills/name/SKILL.mdA paper-download workflow used across projects. | project/.agents/skills/name/SKILL.mdA workflow for this project’s data and figures. |
Rules: loaded at task startup; nested project guidance adds detail and takes precedence.
Skills: names and descriptions first; full instructions and scripts when needed.
MCP: a protocol for connecting tools, such as Wolfram Language for computation.
~ is your home directory; these are default locations. name is the skill folder.
二 · 框架与智能体 / 3. 项目规则、Skill 与 MCP
arxiv-reading/
SKILL.md
scripts/
fetch.py
extract_eqs.py
extract_sections.py收到 arXiv ID 时,先查已有缓存;
需要时调用下载、公式和章节提取脚本。
原始 HTML、公式 JSON、分节内容,
以及能继续阅读的 memory.md。
自然语言说明“何时、怎么用”,脚本完成下载和解析。
II · Harnesses and agents / 3. Project rules, skills and MCP
arxiv-reading/
SKILL.md
scripts/
fetch.py
extract_eqs.py
extract_sections.pyWhen given an arXiv ID, check the cache,
then call download, equation
and section scripts as needed.
Raw HTML, equation JSON, section text
and a memory.md for continued reading.
Instructions explain when and how. Scripts perform the download and parsing.
二 · 框架与智能体 / 3. 项目规则、Skill 与 MCP
技能的名字,方便识别和指定使用。
说清什么任务适合它:读论文、提取公式、交叉查阅。
II · Harnesses and agents / 3. Project rules, skills and MCP
A name to recognize the skill or request it explicitly.
Tasks it supports: reading papers, extracting equations and cross-referencing.
二 · 框架与智能体 / 3. 项目规则、Skill 与 MCP
MCP 把工具名称、参数和返回结果连接起来;真正的计算由 Wolfram 内核执行。
II · Harnesses and agents / 3. Project rules, skills and MCP
MCP connects tool names, arguments and results; the Wolfram kernel performs the calculation.
二 · 框架与智能体
智能体需要能使用的软件、能读取的文件,以及明确的操作范围,才能实际完成任务。
项目目录、输入文件和输出位置。
讨论分支共用目录;并行改代码时
可 另建工作树 ↗。
Python、Mathematica、依赖包和 MCP 连接。
可修改的范围,以及上传、发布或付费操作。
中间结果、进度和失败后继续的入口。
先列出可用工具,检查 Wolfram MCP 是否连接。
先算 1 + 1,保存完整错误,再查安装或连接。
输出当前工作目录,确认文件存在和路径正确。
环境正常后,再把计算表达式缩小,定位计算本身的问题。
先判断问题在哪一层,再给智能体完整错误和最小复现。
Windows 下先确认智能体使用的 PowerShell 版本:5.1 不支持 && / ||,7 才支持。技术讨论 ↗
II · Harnesses and agents
Execution needs usable software, readable files and a clear scope for actions.
Inputs and outputs in a shared directory.
For parallel edits, use a worktree ↗.
Python, Mathematica,
dependencies and MCP connections.
The scope for edits, uploads,
publishing and paid actions.
Saved results, progress and restart points.
List available tools and check the Wolfram MCP connection.
Try 1 + 1. Preserve the full error
and inspect installation or connectivity.
Print the working directory and check the file and its path.
Once tools work, simplify the expression to isolate the error.
Locate the failing layer, then give the agent the full error and a minimal reproduction.
On Windows, check the agent’s PowerShell version: 5.1 rejects && / ||; 7 supports them. Discussion ↗
二 · 框架与智能体
主智能体把任务交给子智能体。子智能体用各自的上下文工作,交回结果;
主智能体保留研究目标、已确认的结论与最终判断。
分别查理论、观测与数值方法
研究继续推进;另一位整理已确认结果
把推导、假设与代码交给另一位检查
独立任务同时推进
每位只读相关材料
按任务选模型与工具
检查者重新判断
单独重做失败任务
II · Harnesses and agents
The main agent delegates tasks. Subagents work in their own contexts and return results.
The main agent retains the research goal, accepted findings and final decisions.
Split theory, observations and numerical methods
Research continues; another worker uses accepted findings
Give another worker the derivation, assumptions and code
Parallel tasks
Relevant inputs
Models for each task
Independent review
Retry one task
二 · 框架与智能体 / 5. 子智能体编排
用 OpenAI 的 Responses/Chat Completions API,仅发送任务与文本。
适合总结、翻译等输入输出明确的工作;省去工具循环和多轮工作记录的额外开销。
异步队列可设置如 100 个在途请求;本机无需为每项任务启动完整智能体进程。
实际并发按请求/token 限额、文本大小与预算设置。
II · Harnesses and agents / 5. Subagent orchestration
Use OpenAI’s Responses / Chat Completions API with just the task and text.
For summaries or translations, this avoids extra tool loops and accumulated work histories.
An async queue can allow, for example, 100 in-flight requests, without a full agent process per task.
Set concurrency from request / token limits, input size and budget.
二 · 框架与智能体 / 5. 子智能体编排
分工带来并行,也增加启动、重复阅读、等待与汇总。任务之间依赖越多,协调越重。
每讲结束后复盘,让下一讲做得更好、更快。
局部修法写进通用规范。
每段反复包装、交接,等待主智能体批准。
44.03:已过审代码仍因目录前缀而重新包装。
后来取消重复准入和逐段批准,
继续验片与物理审核。
交给每位必要材料,返回结论、证据和位置。
拆开可独立完成的任务;程序处理机械步骤。
约定材料版本、输出格式,以及每个文件的写者。
把人的判断留给研究目标、分歧与关键结果。
启动前问:这项任务独立吗?交回什么?由谁接手判断?
II · Harnesses and agents / 5. Subagent orchestration
Delegation adds startup, repeated reading, waiting and integration. More dependencies mean more coordination.
Review each lecture so the next one is better and faster.
Local fixes became general rules;
each segment repeated handoffs and approvals.
44.03 passed code checks; a directory prefix
still triggered repackaging and approval.
Repeated approvals ended; reviews continued.
Return findings with evidence and locations.
Separate independent tasks; automate routine steps.
Agree on versions, formats and one writer per file.
Decide goals, disagreements and key findings.
Before delegating: is it independent? What will it return? Who will assess it?
二 · 框架与智能体
选一件本周本来就要做的小事,写成四句话。
一幅图、一个计算、一张表,或一个能运行的小工具。
文件、论文、数据或已有工程。
单位、符号、语言、目录或软件版本。
一个已知结果、一种极限,或一次实际操作。
II · Harnesses and agents
Choose one small task you already need to do this week. Describe it in four sentences.
A plot, calculation, table or working tool.
Files, a paper, data or an existing project.
Units, notation, language, locations or software versions.
A known result, a limiting case or an actual interaction.
从“一句话做出来”,
走向可以持续修改的工程。
From a one-sentence prototype
to a project you can keep changing.
三 · 用智能体编程
第一轮先玩起来,第二轮再提出一个具体改动。
III · Coding with agents
Play the first version, then request one concrete change.
三 · 用智能体编程 / 1. 开发实例
来自我的 PHYS1002 Introduction 课件。
III · Coding with agents / 1. Development examples
From my PHYS1002 Introduction course materials.
三 · 用智能体编程 / 1. 开发实例
III · Coding with agents / 1. Development examples
三 · 用智能体编程 / 1. 开发实例
频段怎样选?
换一个频段,结构是否还在?
是否平移了曲线?
振幅的单位和缩放是什么?
观察到 chirp;要讨论显著性,
还需要怎样的背景估计?
科研经验体现在知道应该追问哪些选择。
III · Coding with agents / 1. Development examples
Why this band?
Does the structure persist under a different choice?
Were curves shifted?
What are the units
and amplitude scaling?
We see a chirp.
What background estimate would establish significance?
Scientific experience tells you which choices to ask about.
三 · 用智能体编程 / 1. 开发实例
Codex 统筹与控制流程:运行脚本、检查输出、接续任务;各模型通过 OpenRouter 调用。
分节原文、统一术语表;Gemini 3.6 Flash 生成章节摘要,提供翻译背景。
DeepSeek V4 Pro · Qwen3.7 Plus · Grok 4.3
使用相同的原文、术语表和章节背景,分别生成译稿。
上述三种模型与 Claude Sonnet 5、Gemini 3.6 Flash 参与评价。
对照原文为试译章节打分、指出问题,再选定主稿和参考稿。
Claude Sonnet 5 润色 DeepSeek 主稿,参考 Qwen 和 Grok 译稿。
结合原文吸收各稿的长处,输出供人继续修改的翻译底稿。
III · Coding with agents / 1. Development examples
Codex orchestrates the workflow: runs scripts, checks outputs and resumes work.
Model calls go through OpenRouter.
Source sections and a shared glossary; Gemini 3.6 Flash creates chapter summaries
to give each passage its context.
DeepSeek V4 Pro · Qwen3.7 Plus · Grok 4.3
Each translates the same source with the same glossary and chapter context.
These three models, Claude Sonnet 5 and Gemini 3.6 Flash review anonymized samples.
Scores and specific criticisms inform the choice of main and reference drafts.
Claude Sonnet 5 polishes the DeepSeek draft against the source,
drawing on Qwen and Grok translations. The result is ready for human editing.
三 · 用智能体编程 / 1. 开发实例
对照原文修改译文 · 补充译者注 · 保留修改版本

III · Coding with agents / 1. Development examples
Edit alongside the source · Add translator’s notes · Retain revisions

三 · 用智能体编程
写代码只是软件开发的一部分。用途、模块边界和验收标准决定软件怎样服务实际工作。
给谁用?
解决哪一步的困难?
做到什么程度有价值?
哪些部分独立变化?通过什么数据和接口连接?
完成功能,检查结果,再根据使用反馈修改。
读者是物理本科生还是普通读者?术语首次出现要不要带英文?
术语表、模型调用和排版分别组织,换模型时能单独重跑翻译。
抽查段落、检查术语一致性,再试译下一节。
让 AI 写代码时,也要把这些产品和架构判断说清楚。
III · Coding with agents
Software development also involves deciding its purpose, module boundaries and acceptance criteria.
Who uses it? Which difficulty does it solve? What would make it useful?
Which parts change independently?
Which data and interfaces connect them?
Build, inspect the result
and revise through use.
Physics undergraduates or general readers?
Include English at first use of a technical term?
Separate glossary, model calls and layout
so translation can rerun when the model changes.
Inspect passages and terminology, then try the next section.
When asking AI to code, articulate these product and architecture decisions too.
三 · 用智能体编程 / 2. 软件架构与设计模式
软件工程提供组织软件开发的方法:明确需求、安排结构、验证结果,并支持后续修改。
怎样把一个需求做成可持续使用的软件?
需求、实现、测试、版本管理与维护共同组成开发过程。
软件分成哪些部分,各部分怎样协作?
例如将术语表、模型调用和排版分开,用约定的接口连接。
反复遇到的代码组织问题,有哪些可复用的解法?
通过分配职责和安排接口,让一处变化少牵动其他代码。
下面两个例子:生成器与迭代器模式组织逐项处理;工厂模式组织对象创建。
III · Coding with agents / 2. Architecture and design patterns
Software engineering organizes development: define requirements, structure the software,
verify results and support later changes.
How does a requirement become software we can keep using?
Requirements, implementation, tests, version control and maintenance form the process.
What are the parts, and how do they work together?
For example, separate the glossary, model calls and layout behind agreed interfaces.
Which reusable solutions address recurring code-organization problems?
Assign responsibilities and interfaces so a change affects fewer other parts.
Two examples follow: generators and the Iterator pattern for iteration;
the Factory pattern for object creation.
三 · 用智能体编程 / 2. 软件架构与设计模式
Generator(生成器)是 Python 实现迭代器模式(Iterator Pattern)的一种方式。
逐项提供数据,让循环与数据的产生方式分开。
例子:逐篇读取、分析论文,给长循环加上进度和剩余时间。
papers = (read_paper(path) for path in paths)for paper in papers:
analyse(paper)from tqdm import tqdm
for paper in tqdm(papers, total=len(paths)):
analyse(paper)tqdm 包装同一个可迭代对象,附加进度显示;分析论文的代码不变。
III · Coding with agents / 2. Architecture and design patterns
A generator is one way to implement the Iterator pattern in Python.
It supplies items one at a time, separating the loop from how data is produced.
Example: read and analyze papers one by one, with progress and time remaining.
papers = (read_paper(path) for path in paths)for paper in papers:
analyse(paper)from tqdm import tqdm
for paper in tqdm(papers, total=len(paths)):
analyse(paper)tqdm wraps the same iterable and adds progress reporting.
The paper-analysis code stays the same.
三 · 用智能体编程 / 2. 软件架构与设计模式
工厂模式(Factory Pattern)把对象的创建集中起来。
调用方使用统一接口,具体选哪个模型、怎样连接,由工厂负责。
例子:更换翻译模型,不必重写逐章翻译和保存的流程。
# Illustrative example
translator = make_translator(config)
for section in book:
result = translator.translate(section)
save(result)读取模型配置,建立对应的翻译器。
调用 translate,再保存结果。
把“怎样创建”与“怎样使用”分开:更换实现,保留调用方式。
III · Coding with agents / 2. Architecture and design patterns
The Factory pattern centralizes object creation.
Callers use a common interface; the factory selects and connects the model.
Example: switch translation models while keeping the chapter-by-chapter workflow.
# Illustrative example
translator = make_translator(config)
for section in book:
result = translator.translate(section)
save(result)Read the model configuration
and construct its translator.
Call translate and save the result.
Separate creation from use: change the implementation, keep the calling interface.
三 · 用智能体编程 / 2. 软件架构与设计模式
下载论文、调用模型、排版文档,各自在哪里?
换模型、加输出格式,会牵动哪些地方?
调用方只需知道输入、输出和失败如何表示。
替换内部实现后,调用方期待的行为能否保持?
III · Coding with agents / 2. Architecture and design patterns
Where do downloading, model calls and document rendering belong?
What changes when we switch models or add an output format?
Callers need inputs, outputs and a clear representation of failure.
Does a replacement preserve the behavior callers rely on?
三 · 用智能体编程
AI 改变了代码生成与修改的成本,也改变了自然语言与程序代码的分工。
III · Coding with agents
AI changes the cost of producing and revising code,
and the division of work between natural language and programs.
三 · 用智能体编程 / 3. AI 时代的软件组织
我的实践参考
AI 生成、修改这段代码的成本很低,
一个完整任务可以留在更大的函数或模块里。
边界要适合 AI 读取和修改代码的方式。
把一起变化的代码放在一起
AI 可以整体生成或替换
III · Coding with agents / 3. Organizing software for AI
A reference from my own practice
AI can generate or revise this code at very low cost.
One complete task can stay in a larger function or module.
Choose boundaries for how AI reads and edits code.
Keep code that changes together in one place.
AI can generate or replace it as a whole.
三 · 用智能体编程 / 3. AI 时代的软件组织
把确定性的重复工作写进程序,把任务选择留在自然语言里。
III · Coding with agents / 3. Organizing software for AI
Put repeatable mechanics in code; express task choices in natural language.
三 · 用智能体编程 / 3. AI 时代的软件组织
Frederick P. Brooks, Jr.《人月神话》:建议读包含《没有银弹》的纪念版。
来自问题本身:物理假设、术语的含义、读者需要怎样的解释。
例如翻译软件要同时照顾准确性、可读性和术语一致性。
来自当前的实现方式:重复的模型调用、混在一起的解析与排版、
不同模块间反复转换的数据格式。“偶然”指实现带来的复杂度。
概念完整性、模块分工、沟通成本,仍然影响软件怎样被组织。
AI 降低改写成本后,我们更有机会主动消除实现上的纠缠。
讨论:AI 降低了哪些复杂度?哪些判断仍需要研究者明确提出?
III · Coding with agents / 3. Organizing software for AI
Frederick P. Brooks, Jr. — read the Anniversary Edition,
which includes “No Silver Bullet”.
Comes from the problem: physical assumptions, terminology and readers’ needs.
A translation must reconcile accuracy, readability and consistent terminology.
Comes from the implementation: duplicated model calls, tangled parsing and layout,
or repeated format conversions. “Accidental” refers to implementation choices.
Conceptual integrity, division of work and communication costs shape software.
Cheaper rewriting gives us more chances to remove tangled implementation details.
Discuss: which complexity does AI reduce, and which judgments must researchers specify?
三 · 用智能体编程
AI 大幅降低逐文件改写的成本:换语言、重新实现、拆分架构,都更容易尝试。
更换实现或编程语言。
例如:Mathematica → Python;Zig、C → Rust。
保持外部行为,整理内部结构。
例如:拆分模块、抽取公共能力、统一模型接口。
从运行行为、汇编和反编译结果理解机制,再写出高层语言实现。
REA 把分析工具接给智能体,协助这一过程。
设计模式和软件工程术语,帮助我们把“要怎样改”说准确。
III · Coding with agents
AI lowers the effort of file-by-file changes: language ports, new implementations
and architectural restructuring become easier to attempt.
Replace an implementation or programming language.
Examples: Mathematica → Python; Zig or C → Rust.
Improve internal structure while preserving observable behavior.
Split modules, extract shared capabilities or unify model interfaces.
Infer behavior from execution, assembly and decompiled code,
then implement it in a high-level language. REA connects the analysis tools.
Design patterns and engineering concepts help us specify the change we want.
三 · 用智能体编程 / 4. 重写与重构

原有 Mathematica 工程成为新实现的规格与参考。
III · Coding with agents / 4. Rewriting and refactoring

The existing Mathematica project supplies the specification and reference.
三 · 用智能体编程 / 4. 重写与重构
旧代码提供行为参照,智能体承担大量阅读、翻译和逐文件改写。
2026 年 7 月公布:百万行级迁移,主要代码生成不到两周。
团队报告按 API 标价约 16.5 万美元,重写开始成为可尝试的工程选择。
以 FFmpeg 为参照重写媒体组件,仓库明确记录由 Claude Code 生成。
已实现的编解码能力逐项列出,并与 FFmpeg 输出对照。
从 Claude Code 的 Rust 重写实验起步,随后发展成独立运行框架。
保留工具、会话、权限等机制,再调整成自己的产品。
III · Coding with agents / 4. Rewriting and refactoring
The old code provides a behavioral reference; agents do much of the reading,
translation and file-by-file rewriting.
July 2026: a million-line migration, with the main generation under two weeks.
The team reports roughly US$165k at API list prices.
Media components rebuilt from FFmpeg; the repository attributes the code to Claude Code.
Implemented codecs are listed individually and compared against FFmpeg outputs.
Started as a Rust rewrite experiment of Claude Code, then became an independent harness.
Tools, sessions and permissions provide the starting point for a different product.
三 · 用智能体编程 / 4. 重写与重构
REA = Reverse Engineer Anything。通过 MCP,让智能体使用逆向分析工具。
Ghidra、Hopper 或 IDA 提取本机程序的汇编和反编译信息;
REA 组织分析结果,智能体据此理解并编写新实现。
分析 Notes 应用怎样搜索笔记,追踪相关函数与数据流,
再为自己的项目写出相同用途的搜索功能。
重建的是算法与行为;高层语言中的命名、结构和接口可以重新设计。
III · Coding with agents / 4. Rewriting and refactoring
REA = Reverse Engineer Anything. It connects reverse-engineering tools
to an agent through MCP.
Ghidra, Hopper or IDA extracts native assembly and decompiled code.
REA organizes the findings; the agent uses them to understand and reimplement behavior.
Investigate search in the Notes app and trace the relevant functions and data flow.
Then build a search feature for your own project.
Recover the algorithm and behavior; redesign names, structure and interfaces.
三 · 用智能体编程 / 4. 重写与重构
AI 可以很快完成移动代码、改接口和更新调用方。软件工程知识帮助我们指定合理的边界。
进一步说明:哪些职责一起变化,哪些职责应独立?
例如:文档解析与科研策略分开;共享能力进入 AC Foundation。
用工厂集中模型创建;用适配器衔接不同后端。
工作流依赖统一接口,让后端变化留在实现内部。
“降低耦合”“抽取职责”“保持行为”,比笼统地说“优化代码”更具体。
III · Coding with agents / 4. Rewriting and refactoring
AI can move code, change interfaces and update callers quickly.
Engineering knowledge helps us choose the boundaries.
Say which responsibilities change together and which should vary independently.
Separate document parsing from research policy; extract shared work into AC Foundation.
A factory centralizes model creation; an adapter bridges different backends.
The workflow uses one interface, keeping backend differences inside implementations.
“Reduce coupling”, “extract a responsibility” and “preserve behavior” specify useful changes.
三 · 用智能体编程 / 4. 重写与重构
文献、研究领域
与科研工作流
翻译、阅读辅助
与学术文档
任务运行 · 模型调用 · 文档处理 · proposer / reviewer 编排
科研与翻译分别演化,共同依赖通用基础能力。
III · Coding with agents / 4. Rewriting and refactoring
Papers, research domains
and research workflows
Translation, reading support
and academic documents
Jobs · model calls · documents · proposer / reviewer orchestration
Research and translation evolve separately on a shared foundation.
三 · 用智能体编程 / 4. 重写与重构
旧 ARC 同时负责科研、翻译、阅读发布和底层运行。
翻译普通文档也要用到论文模块里的文档能力,复用关系开始绕路。
科研 + 翻译与阅读
+ 通用基础能力
arc-paper · arc-domain
翻译 · Companion · OCR 校对 · 发布
文档结构与缓存 · 任务运行 · 模型调用 · 提案/评审编排
8/20:抽取 arc-document。
学习功能读取文档,不再依赖
arc-paper 的论文业务。
8/21:通用包改为 ac-*;
翻译与阅读进入 ALC;
ARC 保留论文与研究领域。
ARC 和 ALC 各自调用 AC。
删除旧的内部转发入口,
用测试检查包与依赖关系。
结果:ALC 可独立处理书稿;通用文档能力在 AC 维护,科研能力在 ARC 演化。
III · Coding with agents / 4. Rewriting and refactoring
Old ARC combined research, translation, readers and infrastructure.
Reading a general document still went through the paper module: reuse crossed the wrong boundary.
Research + learning
+ shared infrastructure
arc-paper · arc-domain
Translation · Companion · OCR · publishing
Documents and caches · jobs · model calls · proposer/reviewer orchestration
20 Aug: extract arc-document.
Learning packages can read documents
without depending on arc-paper.
21 Aug: shared packages become ac-*.
Learning and publishing move to ALC.
Papers and research domains stay in ARC.
ARC and ALC each call AC.
Remove old private forwarding modules.
Test package and dependency boundaries.
ALC handles books independently; AC maintains shared documents, while ARC develops research features.
三 · 用智能体编程
测试把“软件应该怎样工作”写成可以反复运行的检查。
以购物车为例:准备输入,执行操作,再断言结果。
商品单价 30 元,数量为 2,预期小计为 60 元。
再检查数量为 0、优惠券等边界和分支。
把订单写入测试数据库,再读回。
检查商品、数量和金额是否完整保存。
在浏览器中选商品、加入购物车、提交订单。
检查确认页和订单记录,覆盖整条购买流程。
先快速确认程序能启动、核心流程能跑通。
例如:启动文献工具,读取一条记录,生成一个可打开的结果文件。
修复一个错误后,留下能重现它的测试,防止以后再次出现。
III · Coding with agents
Tests make expected behavior repeatable.
For a shopping cart: arrange inputs, perform an action, then assert the result.
A unit price of 30 and quantity of 2 should give a subtotal of 60.
Also cover zero quantity and discount rules.
Save an order to a test database, then read it back.
Check that its items, quantities and amounts survive.
In a browser, select a product, add it to the cart and place an order.
Check the confirmation page and the order record.
Quickly check that the program starts and its core path works.
For a literature tool: read one record and produce a file that opens.
Keep a test that reproduces each fixed bug, so future changes cannot silently bring it back.
三 · 用智能体编程 / 5. 测试与测试驱动开发
先写出期望行为的测试,再实现功能,最后整理代码。
例:会议室预约不能重叠,但上一场结束后,下一场可以立即开始。
| 新预约 | 预期结果 |
|---|---|
| 10:30–11:30 | 拒绝:时间重叠 |
| 11:00–12:00 | 允许:首尾相接 |
| 09:30–10:30 | 拒绝:也有重叠 |
先完成第一行,再逐项补上后两种情形。
新测试失败时补上实现,重构后运行全部测试。
11:00 可以开始下一场吗?这里约定可以。
把约定写进测试,AI 改写后仍能自动检查。
III · Coding with agents / 5. Testing and test-driven development
Test the expected behavior, implement it, then improve the structure.
Example: room bookings cannot overlap; one may start exactly when another ends.
| New booking | Expected result |
|---|---|
| 10:30–11:30 | Reject: overlaps |
| 11:00–12:00 | Allow: back-to-back |
| 09:30–10:30 | Reject: also overlaps |
Complete the first case, then add the other two.
If a new test fails, implement the missing behavior.
Refactor and run all existing tests.
May a meeting start at 11:00? We decide it may.
A test preserves that rule when AI edits the code.
三 · 用智能体编程 / 5. 测试与测试驱动开发
接口、约定、输入输出和重要选择。
最容易改变后续路线的那一步。
先跑一个章节的翻译,再决定整本书的流程。
III · Coding with agents / 5. Testing and test-driven development
Interfaces, conventions,
inputs, outputs and consequential choices.
The step most likely to change the route ahead.
Translate one section before committing to the whole-book workflow.
从聊天中的计算,走向可以反复读取和使用的研究材料。
From calculations in chat to research material we can read and reuse.
四 · 科研
用 GPT-Pro 查找初稿错误,逐项复核问题与修改建议。
IV · Research
Use GPT-Pro to find draft errors; assess each issue and proposed change.
四 · 科研 / 1. 在聊天窗口中的科研

IV · Research / 1. Research in a chat window

四 · 科研 / 1. 在聊天窗口中的科研
我委托领域调研;Dot 自主选择方向,持续推进并写出稿件。
给出 PDF 与具体问题,由 Dot 推导、计算,形成质量与波形分类。
新结果启发新想法;我判断重要性,选择继续研究的方向。
研究进展不断改变下一步;问题的物理意义决定优先级。
IV · Research / 1. Research in a chat window
I commission a field survey; Dot chooses directions and develops manuscripts.
I supply PDFs and questions; Dot derives and computes mass and waveform classifications.
Results inspire new ideas; I judge their importance and select directions to pursue.
Results reshape the next step; physical significance sets the priorities.
四 · 科研 / 1. 在聊天窗口中的科研
每周五 arXiv 批次发布两小时后开始收集,阅读与判断完成后交付中文简报。
hep-th、gr-qc、astro-ph.CO;补搜跨类 QSF/宇宙对撞机。
AI 新闻优先看官方发布、论文、技术报告和代码。
筛选基础物理的月度级亮点、宇宙学 Top 3,
跟进 QSF/宇宙对撞机进展与重要修订。
读正文、关键公式和前作,区分作者声称与核查结果。
联系全部关注方向,提出新想法与最小检验。
说明相比旧思路的优势、风险;更新研究想法库。
449 篇去重后新稿/新跨列 · 7 项重点修订
449 是完整清单数量;重点全文阅读另行筛选。
10 页中文 PDF、可编辑 Word、可筛选 Excel 清单。
保留公告批次、版本、覆盖清单与原始来源;
把文献触发的新问题写成可执行的研究检验。
IV · Research / 1. Research in a chat window
Start two hours after Friday’s arXiv release; deliver a Chinese brief after reading and assessment.
hep-th, gr-qc, astro-ph.CO; cross-category QSF / collider.
AI: official releases, papers, technical reports and code.
Physics highlights of monthly significance; cosmology Top 3.
QSF / collider advances and key revisions.
Read formulas and prior work; separate claims from checks.
Propose ideas across all my interests, with minimal tests.
Assess advantages and risks; update the idea bank.
449 unique papers · 7 key revisions
New / cross-listed inventory; full-text reading is selective.
10-page Chinese PDF; editable Word; filterable Excel.
Boosted Odds → can momentum composites recover
clock information hidden by projection
in the density four-point?
Minimal test: compare two parameter null spaces;
then add source and observational nuisances.
Keep batches, versions, inventory and sources.
四 · 科研
选择输入格式,是在决定 AI 能直接得到哪些信息。
原始目标包括跨设备显示、交换和打印,重点是页面看起来一致。
读论文时还要恢复段落、公式与阅读顺序;适合核对原图、页码和印刷编号。
文字和数学表达可直接读取。
宏需要展开;自动公式编号与交叉引用需要经过排版才能确定。
arXiv 的 HTML 从 LaTeX 转换,提供章节、公式信息与引用链接。
让 AI 按章节阅读、按编号找公式,再连同前后文取出。
IV · Research
The input format determines which information AI receives directly.
Designed for reliable display, exchange and printing across systems.
Reading still requires recovering order and structure; use it to check figures, pages and printed labels.
Text and mathematical expressions are directly available.
Macros need expansion; automatic equation numbers and references need typesetting to be resolved.
arXiv converts LaTeX to HTML with headings, equation information and reference links.
Read sections, locate equations by label, and retrieve surrounding context.
四 · 科研 / 2. 如何让 AI 读文章
0911.3380v4 · Quasi-Single Field Inflation and Non-Gaussianities
作者的 LaTeX 源码与 arXiv 转换后的 HTML 源码。
IV · Research / 2. How to help AI read papers
0911.3380v4 · Quasi-Single Field Inflation and Non-Gaussianities
The author’s LaTeX source and the HTML source generated by arXiv.
四 · 科研 / 2. 如何让 AI 读文章
把论文整理成有结构的资料,保留正文、公式和来源,供后续读取。
提取正文,排除网页导航等外壳。
从 MathML 中读取 TeX 公式,
保留编号、章节层级与前后文。
保存源文件指纹与解析结果,
再次读取时复用,避免重复下载和解析。
按章节或关键词取出所需内容。
IV · Research / 2. How to help AI read papers
Keep the paper’s structure, equations and source information for later reading.
Extract the article, excluding site navigation.
Read TeX equations carried by MathML.
Keep labels, section hierarchy and context.
Store source digests and parsed content.
Reuse them instead of downloading and parsing again.
Retrieve the sections or passages needed.
四 · 科研 / 2. 如何让 AI 读文章
有了“获取 → 清洗 → 保存”的思路,就可以让智能体实现自己的小工具。
同一份清洗结果,也可以导出不同形式。
人和模型都容易检查正文。
数学用 LaTeX;编号、引用和图片路径需要约定。
章节、公式、标签、来源分字段保存。
工具按需取出,再组织成模型的输入。
把 XHTML、公式、图片和目录打包。
给模型时,再解包并取出需要的内容。
IV · Research / 2. How to help AI read papers
Once acquisition, parsing and storage are clear, an agent can build your own tool.
The same parsed content can be exported in several forms.
Easy for people and models to inspect.
Use LaTeX for math; define conventions for labels, links and image paths.
Store sections, equations, labels and sources as fields.
A tool selects fields and assembles the model input.
Package XHTML, math, images and navigation.
Unpack and retrieve relevant content for the model.
四 · 科研 / 2. 如何让 AI 读文章
ARC 为 AI 构造搜索与读取工具。
先在缓存中定位,再读取相关章节、公式和前后文,放入模型上下文。
找命中段落与所在章节
arc-paper search-full-text \
--term "isocurvaton" --context-lines 1 --limit 5得到章节标题与章节 ID
arc-paper get-table-of-contents \
--reference 0911.3380 --source-format html只取出所选章节的全文
arc-paper get-section \
--reference 0911.3380 --source-format html \
"8 Conclusion and discussion"返回公式与附近文字
arc-paper search-equations \
--reference 0911.3380 --source-format html \
--term "1.2" --context-lines 8第一条不指定论文,搜索已缓存的全文;其余命令以 0911.3380 为例。
IV · Research / 2. How to help AI read papers
ARC gives AI tools to search and read papers selectively.
Use the cache to locate a passage, then bring the relevant content into context.
Find passages and sections
arc-paper search-full-text \
--term "isocurvaton" --context-lines 1 --limit 5Get titles and section IDs
arc-paper get-table-of-contents \
--reference 0911.3380 --source-format htmlRead the complete section
arc-paper get-section \
--reference 0911.3380 --source-format html \
"8 Conclusion and discussion"Get math and nearby text
arc-paper search-equations \
--reference 0911.3380 --source-format html \
--term "1.2" --context-lines 8No paper ID in the first command: search the cached corpus. The other commands target 0911.3380.
四 · 科研
论文是节点,引用是有方向的边。从一篇起点论文,沿前序与后续工作展开。
取得两侧文献 → 用 DOI/arXiv ID 合并重复记录
逐层扩展,并保存每条引用边的来源。
沿网络找基础工作、研究分支与新进展,再读正文判断关联。
接入时适配论文标识与接口;按领域覆盖范围和引用关系的完整程度选择数据源。
IV · Research
Papers are nodes; citations are directed edges. Expand backward and forward from a seed.
Retrieve both sides → merge records using DOI / arXiv ID.
Expand in steps; preserve the source of each citation edge.
Find foundations, branches and new work.
Read papers to assess relevance.
Adapt identifiers and API calls; choose by field coverage and completeness of citation links.
四 · 科研 / 3. 通过引文网络拓展文献
92 篇论文 · 752 条引用边 · 选择节点或论文行查看详情
IV · Research / 3. Expanding literature through citation networks
92 papers · 752 citation edges · Select a node or row for details
四 · 科研 / 3. 通过引文网络拓展文献
固定起点论文与时间范围,先取得文献,再按研究问题组织进展。
按研究方向概述进展,列出各方向的相关论文。
核对每篇的标题、作者与 arXiv 编号;
生成 HTML 报告。
研究全形状搜索中的 CMB、LSS 与估计量系统误差。
逐篇阅读,列出各形状的约束数值;
使用原论文图表并注明来源。
IV · Research / 3. Expanding literature through citation networks
Fix the seed and date range; collect papers, then organize progress by research question.
Group the papers into research directions; summarize each and list its papers.
Check titles, authors and arXiv IDs; produce an HTML report.
Study full-shape searches combining CMB, LSS and estimator systematics.
Read each paper, give numerical bounds, and cite its original figures.
四 · 科研 / 3. 通过引文网络拓展文献
2024 年初—2026 年 6 月 · 从引用 0911.3380 的论文中整理研究方向
IV · Research / 3. Expanding literature through citation networks
January 2024–June 2026 · Directions synthesized from papers citing 0911.3380
四 · 科研 / 3. 通过引文网络拓展文献
从综述中的全形状搜索继续深入:读 9 篇论文,整理数值约束与 39 张原始图。
IV · Research / 3. Expanding literature through citation networks
Deepen the full-shape direction: 9 papers, numerical bounds and 39 original figures.
四 · 科研 / 3. 通过引文网络拓展文献
起点 0911.3380 · 2024 年以来的后续文献 · 2026 年 6 月原始报告
IV · Research / 3. Expanding literature through citation networks
Seed 0911.3380 · Citing work since 2024 · Original reports from June 2026
四 · 科研
前面的文献调研,给提出想法提供已有结果、可用方法和待解决的问题。
use arc, for research field arXiv:0911.3380, recommend idea: tree-level calculations of scalar correlation function, with the internal propagating field a massive scalar
限定领域与计算对象;
再说明什么问题值得做、希望得到什么结果。
研究经验可以写进任务:重要性、研究边界、可行路径和停止条件。
IV · Research
The literature survey supplies known results, available methods and open questions.
use arc, for research field arXiv:0911.3380, recommend idea: tree-level calculations of scalar correlation function, with the internal propagating field a massive scalar
Specify the field and calculation target.
Then explain the significance and desired result.
Put research judgment into the task: significance, scope, route and stopping criteria.
四 · 科研 / 4. 让 AI 提科研想法
并行尝试不同候选。每条线集中改进一个具体研究问题。
↶ 反馈后修改,再评审
↶ 反馈后修改,再评审
↶ 反馈后修改,再评审
定义对象、假设和预期结果;
给出首个计算、核查办法与风险。
查已有工作,检查意义、定义与可行性;
指出哪里需要修正,以及怎样修正。
保留各轮方案和反馈;每条线选取评分最高的已完成版本。
IV · Research / 4. Generating research ideas with AI
Explore candidates in parallel. Each loop develops one concrete research question.
↶ Revise from feedback; review again
↶ Revise from feedback; review again
↶ Revise from feedback; review again
Specify the object, assumptions and result.
Give a first calculation, checks and risks.
Check prior work, significance and feasibility.
Identify what needs repair and how.
Keep proposals and feedback; select each loop’s highest-scoring completed version.
四 · 科研 / 4. 让 AI 提科研想法
“还没有人做过”与“做出来值得关注”,需要分别说明依据。
查最近邻论文、后续引文与更广的文献。
比较研究对象、假设、可观测量与核心结论;
指出具体差别。
解决哪一个物理问题?
改变哪一种理解或计算能力?
结论能覆盖哪些有意义的情形?
一个修改色散的重场方案,原先要比较三/四点函数的相位。
评审找到已有的基准计算,要求研究新增色散项带来的变化,
并先复现已有结果。
具体到“哪一部分是新贡献”,再判断这项贡献是否重要。
IV · Research / 4. Generating research ideas with AI
“Not yet done” and “worth doing” require different evidence.
Read closest papers, citers and broader literature.
Compare objects, assumptions and observables;
identify the specific new conclusion.
Which physical problem does it resolve?
What understanding or calculation does it enable?
Which meaningful cases does it cover?
A proposal for a massive field with modified dispersion compared three- and four-point phases.
The reviewer found a known baseline, narrowed the new claim to the added dispersion term,
and required reproduction of the baseline.
Identify the new contribution precisely, then assess its significance.
四 · 科研 / 4. 让 AI 提科研想法
2026 年 6 月 3 日测试记录 · 打开原始方案,检查研究问题是否具体。
IV · Research / 4. Generating research ideas with AI
Test run of 3 June 2026 · Inspect the original question and calculation plan.
四 · 科研 / 4. 让 AI 提科研想法
每加一项方法或延伸,都问:去掉它,核心问题是否仍明确、可检验、有价值?
计算四点函数,与三点函数组合;
扫描完整形状,比较不同传播机制。
先检查因子化是否已经固定三/四点关系。
若关系普适,给出证明;若有新信息,再继续算。
是否值得投入?
首步能否给出决定性结果?
什么结果会使我们停止或改变方向?
讨论:评分上升,意味着问题改善了,
还是方案更会回应评审要求?
IV · Research / 4. Generating research ideas with AI
For each added method or extension: does the core question still work without it?
Combine three- and four-point functions;
scan full shapes and compare mechanisms.
First ask whether factorization fixes the relation.
Prove universality, or identify new information
before extending the calculation.
Is it worth pursuing?
Can the first calculation decide something?
What would make us stop or change direction?
Discuss: does a rising score mean a better problem,
or a better response to the reviewer?
四 · 科研
一个研究方向,怎样经过讨论、计算、验算和修改,形成论文?
基于 0911.3380 提研究想法
问大家:强混合方向是否可行?
精确线性解帮助后续计算
推导三点函数,生成数值图与代码
独立核查,写下计算笔记
让 AI 解释中间过程,再继续检查
提供推导、数值结果与笔记
检查结论、推导与图像
IV · Research
How did an idea develop through discussion, calculation and revision into a paper?
Propose ideas around 0911.3380
Is the strong-mixing direction feasible?
Exact linear solutions enable further work
Derive the bispectrum; produce plots and code
Verify independently and write notes
Request intermediate explanations; check again
Supply derivations, results and notes
Check claims, derivations and figures
四 · 科研 / 5. 实际科研例一

AI 推荐研究无质量场与有质量场的强混合。
我把方向发到群里:传播子能否解析求解,
或者数值算出后,用在后续关联函数计算中?
Pushing the Primordial Frontier:
Exact Linear Solutions in Multifield Inflation
Huenupi、Muñoz、Palma、Sypsas · 2606.18248
论文给出两场系统的精确线性解,
可处理任意质量与混合强度。
这为进一步计算非高斯性提供了输入。
把这篇论文交给 GPT-Pro,补全推导细节,
再用解析模函数推进三点函数计算。
IV · Research / 5. Research case I

AI suggested strong mixing of massless and massive fields.
I asked the group whether we could solve the propagator,
analytically or numerically, and use it in correlators.
Pushing the Primordial Frontier:
Exact Linear Solutions in Multifield Inflation
Huenupi, Muñoz, Palma, Sypsas · 2606.18248
The paper gives exact linear two-field solutions
for arbitrary masses and mixing strength.
These supply input for non-Gaussianity calculations.
Give the paper to GPT-Pro, expand the derivation,
then use the analytic modes to calculate the bispectrum.
四 · 科研 / 5. 实际科研例一
提供模型与解析解,继续计算三点函数,并取得绘图代码。
IV · Research / 5. Research case I
Supply the model and solution; calculate the three-point function and obtain plotting code.
四 · 科研 / 5. 实际科研例一
人整理计算笔记,再用 ARC 复核笔记;看不懂的中间步骤,继续向 AI 问清楚。
让 AI 解释:用了什么恒等式?省略了哪些步骤?在哪些条件下成立?
IV · Research / 5. Research case I
Researchers organize calculation notes; ARC checks those notes. Ask AI about unclear steps.
Ask which identity was used, which steps were omitted, and when the result applies.
四 · 科研 / 5. 实际科研例一
从 GPT 的计算继续推进:检查人的笔记,补全解析积分,并复核结论。
| 后续工作 | GPT 计算与人的笔记 | 最终论文 · arXiv v2 |
|---|---|---|
| 复核人的笔记 | GPT 已给出传播子与软模系数; 人的笔记需修正归一化、符号和前因子。 | 修正自由模归一化与外腿定义; 软模系数前因子由 −λ 改为 −1/λ(§2–3)。 |
| 完成解析积分 | 硬模积分已化为二维积分; 一般情形的解析求和仍未完成。 | 得到绝对收敛的单重级数; 推导尾项加速与稳定求和方法(§4.2、附录 D)。 |
| 重做大质量展开 | 已追问幅度、相位与大质量极限; 人的笔记中的鞍点推导需重做。 | 识别主导贡献来自端点,完成 JWKB 展开; 给出下一阶修正;固定 λ,要求 λ2/ρ≪1(§5、附录 E)。 |
| 加强独立验证 | 已有耦合模方程的数值作图, 以及软模系数的数值核对。 | 解析级数、独立二维积分与 JWKB 三方比较; 四张图检验硬模积分及信号的幅度、相位(图 1–4)。 |
论文聚焦挤压极限的三点函数;聊天中提出的四点函数、化学势与质量分布留待后续。
IV · Research / 5. Research case I
Build on GPT’s calculation: check the researchers’ notes, complete the integrals, and verify the result.
| Further work | GPT calculation and human notes | Final paper · arXiv v2 |
|---|---|---|
| Human notes | GPT: propagators and soft coefficients. Notes: fix normalization, signs, prefactors. | Correct mode normalization and external legs; change the soft prefactor from −λ to −1/λ (§2–3). |
| Hard integral | Reduced to an exact 2D hard integral; analytic summation was still unfinished. | Find an absolutely convergent single series; accelerate its tail and stabilize sums (§4.2, App. D). |
| Mass limit | GPT: requests for phase and mass limits; human notes: revise the saddle derivation. | Identify the leading endpoint and derive JWKB; Next correction: fixed λ, λ2/ρ≪1 (§5, App. E). |
| Validation | Coupled-mode plots already existed; soft coefficients had numerical checks. | Compare series, independent 2D integration and JWKB; test integral and signal amplitude / phase (Figs. 1–4). |
Focus: the squeezed bispectrum. Trispectra, chemical potentials and mass distributions remain future work.
四 · 科研 / 5. 实际科研例一

IV · Research / 5. Research case I

四 · 科研
标量化学势课题的人机协作
明确问题与机制
固定约定与近似
审阅推导与精度
提炼机制与讨论
确定主线与审阅
AI检索与整理文献
推导设定与复现
计算、化简与核查
整理证据与反馈
写稿、作图与修订
讨论与反馈返回计算、审阅
研究者核对图谱、判断近似,逐段读懂并检查后再推进。
仅用 AI 计算的尝试:曾遗漏费曼图,部分关键近似未能自行完成。
IV · Research
Human–AI collaboration on scalar chemical potential
Define questions
and mechanisms
Fix conventions
and approximations
Review derivations
and accuracy
Discuss the
mechanisms
Set the narrative
and review
Find and organize
literature
Derive the setup;
reproduce results
Calculate, simplify
and check
Organize evidence
and feedback
Draft, plot
and revise
Discussion and feedback return to calculation and review
Researchers check diagrams and approximations, then understand and check each passage before proceeding.
An AI-only calculation attempt omitted Feynman diagrams
and could not complete some key approximations independently.
四 · 科研 / 6. 实际科研例二
IV · Research / 6. Research case II
四 · 科研 / 6. 实际科研例二
IV · Research / 6. Research case II
四 · 科研 / 6. 实际科研例二
IV · Research / 6. Research case II
提供材料与方法,
整合成文档、课件和申请书。
Supply materials and methods to create documents, teaching resources and applications.
五 · 报告、教学与其他工作
这份报告从研究者提供的内容纲要开始。
智能体查资料、组织页面、实现交互;人逐页判断内容与讲述是否合适。
受众、主题、自己的工程,
以及已有报告的设计。
把原理与实例放在一起;
加入源码、截图与交互。
改论点、例子、语气与版式;
把反复出现的要求写成规则。
从源文件生成 HTML;
检查双语、排版与操作。
统计截至本节加入前:从首次要求制作开始计用户消息;外部链接按正文来源栏去重。
好的内容、具体的反馈和可保存的规则,共同决定报告的质量。
V · Reports, teaching and other work
This report began with a researcher’s outline.
The agent gathered evidence and built the pages; the author judged the content and narrative.
Audience, topics, personal projects
and an existing visual reference.
Connect concepts and examples;
add code, images and interaction.
Revise claims, examples, tone and layout;
preserve recurring decisions as rules.
Generate HTML from source;
check both languages and controls.
Before this section: user messages since the first creation request; distinct URLs in slide source fields.
Good content, specific feedback and persistent rules shape the result.
五 · 报告、教学与其他工作 / 1. 用 AI 准备 HTML 报告
先初始化项目规则,再给出内容纲要并开始制作,随后根据实际页面修改。
例如:补回原理,再讲实例;删掉不服务于讲述的内容;让标题、目录和页眉一致。
V · Reports, teaching and other work / 1. Preparing HTML reports with AI
Initialize project rules, supply the outline, then build and revise the rendered pages.
Examples: restore the concepts, remove irrelevant content, and unify headings and navigation.
五 · 报告、教学与其他工作 / 1. 用 AI 准备 HTML 报告
参考报告提供暖白画布、橘色强调、双语切换、导航与证据窗口。
这些做法落实到本项目的文件中,下次继续修改时仍能找到。
记录设计色值、同行语气、名称统一、公式排版和备注约定。
同时记录参考目录与资源地图,供智能体按需查阅。
保存实际使用的截图、视频、源码、原始提示词与来源核对记录。
字体与 KaTeX 也保存在本地;页面引用相对路径。
内容按主题拆成 Python 模块;CSS 管版式,JavaScript 管交互。
build_training.py 生成网页,verify_training.cjs 检查真实浏览器中的效果。
人看页面,智能体改源文件;保留材料与构建方法,报告就能持续演化。
V · Reports, teaching and other work / 1. Preparing HTML reports with AI
The reference report supplied a paper canvas, orange accents, language switching and evidence windows.
Those choices now live in this project’s files and remain available for later edits.
Colors, tone, consistent naming, mathematical typesetting and notes policy.
A resource map also tells the agent where to find reference material.
The images, videos, code, original prompts and source audits actually used.
Fonts and KaTeX are local; pages use relative asset paths.
Topic modules hold content; CSS handles layout and JavaScript interaction.
build_training.py generates HTML; verify_training.cjs checks the rendered browser result.
The author reviews pages; the agent edits source. Preserve the materials and the build process.
五 · 报告、教学与其他工作 / 1. 用 AI 准备 HTML 报告
先从自己的工程、计算记录和教学材料找实例,再查原始论文、数据与工具文档。
用来源说明机制,用原始产物展示做法;能复现的交互则直接嵌入页面。
V · Reports, teaching and other work / 1. Preparing HTML reports with AI
Start with personal projects, calculation records and teaching material; then consult primary sources.
Documents explain mechanisms, original artifacts show practice, and reproducible demos run in the page.
五 · 报告、教学与其他工作
Slidev 用 Markdown 组织页面,也能插入 HTML 与 Vue 组件。
PHYS1002:文字和公式直接写,火星逆行则用真实轨道数据做成可拖动的图。
六个章节各有 Markdown 源文件;共享组件、样式和翻译字典可以复用。
V · Reports, teaching and other work
Slidev organizes pages in Markdown and accepts HTML and Vue components.
PHYS1002: write prose and equations directly; use real ephemerides for an interactive retrograde-motion plot.
Six chapters have separate Markdown sources; components, styles and translation catalogs are shared.
五 · 报告、教学与其他工作 / 2. 用 AI 准备 Slidev 报告
课堂实录:MSDM5051。PHYS1002 使用同一套语言组件。
V · Reports, teaching and other work / 2. Preparing Slidev reports with AI
Classroom recording: MSDM5051. PHYS1002 uses the same language component.
五 · 报告、教学与其他工作 / 2. 用 AI 准备 Slidev 报告
V · Reports, teaching and other work / 2. Preparing Slidev reports with AI
五 · 报告、教学与其他工作 / 2. 用 AI 准备 Slidev 报告
我的做法:用网页技术承载可编辑内容与交互,把生成图像用于插图和视觉探索。
| 方式 | 适合做什么 | 优势 | 需要付出的代价 |
|---|---|---|---|
| PPTX | 常规汇报、与同事协作 | 熟悉的编辑与演讲流程; 便于交换、批注和手工微调。 | 复杂交互往往另做; AI 自动生成的版式仍要细调。 |
| Slidev | 连续教学、代码与公式 | Markdown 写内容;演讲者视图、 同步翻页与组件可以复用。 | 需要维护 Node 项目与组件; 双语、Python 按需接扩展。 |
| HTML | 定制报告、数据与长文档 | 能精确控制版式和交互; 滚动窗口、搜索、小游戏都可嵌入。 | 导航、备注、同步等功能, 需要自己实现与检查。 |
| 直接生图 | 插图、漫画、视觉草稿 | 很快探索画面与视觉风格。 | 文字和公式不易精确修改; 不能直接承担交互。 |
先确定要展示什么、要怎样讲,再选择文件格式。
V · Reports, teaching and other work / 2. Preparing Slidev reports with AI
My approach: web technologies for editable content and interaction; generated images for visuals.
| Format | Best suited to | Strengths | Work required |
|---|---|---|---|
| PPTX | Talks and collaboration | Familiar editing and presenting; easy review and manual adjustment. | Extra tools for interaction; layouts need refinement. |
| Slidev | Teaching, code and equations | Markdown, presenter view, synchronized navigation and reusable components. | Maintain Node and components; add languages and Python as needed. |
| HTML | Custom reports and data | Precise layout and interaction; embed scrolling, search and games. | Build and test navigation, notes and synchronization. |
| Generated images | Illustrations and visual drafts | Explore compositions and styles quickly. | Text and formulas are harder to edit; interaction needs code. |
Choose the content and presentation behavior first, then the format.
五 · 报告、教学与其他工作
过去给学生一整段一个多小时的录像;现在按主题提供片段、摘要和双语转写。
PHYS1002 · 10 月 7 日:12 个主题,学生可以先找内容,再展开文字阅读。
V · Reports, teaching and other work
A recording longer than an hour becomes topic clips, summaries and bilingual transcripts.
PHYS1002 · 7 October: 12 topics; students find the relevant content and expand its transcript.
五 · 报告、教学与其他工作 / 3. 课程录像的处理
让 AI 先转写,保存每句话的时间,再围绕文本决定怎样剪、怎样展示。
PHYS1002 的实际流程:faster-whisper large-v3 → 科学术语校对 → 按完整论点分段。
一句话说了什么 · 在原录像的什么时间
依论点选择起止时间,
FFmpeg 剪辑、拼接与叠加。
同一段文本生成标题、摘要,
翻译后对齐到片段时间。
目录、关键词、转写句子,
都能接到相应时间点。
AI 判断内容:选择主题、改术语、写摘要。
脚本执行:按清单生成视频、字幕与网页。
检查时间映射:剪掉休息或拼接片段后,
原录像时间与新片段时间必须重新对应。
V · Reports, teaching and other work / 3. Processing lecture recordings
Transcribe first, preserve sentence timings, then use the text to plan editing and presentation.
PHYS1002: faster-whisper large-v3 → scientific proofreading → coherent topic boundaries.
What was said · where it occurs in the original recording
Choose ranges by argument;
FFmpeg cuts, joins and overlays.
Generate titles and summaries;
align translations to clip time.
Contents, keywords and sentences
link back to time positions.
AI handles content: topics, terms and summaries.
Scripts execute: videos, subtitles and HTML.
Check time mapping: after cuts and joins,
source time must map to the new clip timeline.
五 · 报告、教学与其他工作 / 3. 课程录像的处理
同一方法用于温伯格量子场论、Srednicki 量子场论和温伯格广义相对论。
下面可搜索温伯格量子场论全部 23 章的转写;试搜“重整化”,结果带原文与视频时间链接。
V · Reports, teaching and other work / 3. Processing lecture recordings
The approach also serves Weinberg QFT, Srednicki QFT and Weinberg general relativity.
Search the transcript of all 23 Weinberg QFT chapters below; try “重整化” for passages and timed links.
五 · 报告、教学与其他工作
原声讲解仍有价值,黑板却难以读清。
结合转写、教材与笔记重建公式,把讲到的部分同步突出。


目标是恢复学生理解推导所需的信息:清晰公式、讲解文本与时间对应。
V · Reports, teaching and other work
The original explanation remains valuable, but the board is hard to read.
Reconstruct equations from the transcript, textbook and notes; highlight the part being discussed.


Restore what students need to follow the derivation: readable equations, text and timing.
五 · 报告、教学与其他工作 / 4. 修复 Coleman 视频
V · Reports, teaching and other work / 4. Restoring Coleman’s lectures
五 · 报告、教学与其他工作
PHYS1002:把课程材料与教师判断交给智能体,逐题命题,再平衡组卷。
英文五选一;参照概念题与估算题的尺度。
课件给出模型;转写界定实际讲授范围。
模型迁移、科学判断与有意义的数量级估算。
第二次先读上次“好/可/不要”,再按此出题。
边解边改;保存双语题面、答案与考点。
快速判断物理内容,附上具体修改意见。
好题优先,兼顾覆盖与难度;复查答案与翻译。
确认题面、选项、答案及整卷分配,再定稿。
80 道候选 → 20 好+42 可+18 不要
主卷:20 好+5 可 备用卷:25 可
V · Reports, teaching and other work
PHYS1002: supply course evidence and teacher judgment, draft questions, then assemble balanced papers.
Calibrate five-option concepts and estimation tasks.
Slides supply models; transcripts define taught scope.
Model transfer and meaningful estimation.
Use earlier “good / usable / reject” feedback for exam 2.
Solve and refine; save bilingual questions and answers.
Screen the Chinese copy and add specific comments.
Balance coverage and difficulty; check each answer.
Check every question and answer, then finalize.
80 candidates → 20 good + 42 usable + 18 rejected
Main: 20 good + 5 usable · Backup: 25 usable
五 · 报告、教学与其他工作
带着自己的研究问题去开会,把听到的内容接回可继续使用的研究材料。
整理议程、时区、摘要和公开材料。
对照自己的研究方向,准备要听的报告和问题。
记下原问题,以及对应报告、页码或时间戳。
让智能体追到论文全文,比较假设和可区分的观测量。
整理主题模块与计算步骤,保留来源和未解决问题。
下一次阅读、推导或计算时,从这些入口继续。
V · Reports, teaching and other work
Bring your research questions to the meeting; connect what you hear to material you can use again.
Collect the schedule, timezone, abstracts and public materials.
Choose talks and questions relevant to your research.
Record the question and its talk, page or timestamp.
Follow up in full papers; compare assumptions and observables.
Curate topic modules and calculation steps with source links.
Keep open questions as entry points for the next calculation.
五 · 报告、教学与其他工作 / 6. 用 AI 辅助听报告和开会
Quantum Crossroads · 2026 年 8 月 3–7 日 · Kavli IPMU
逐项读取报告题目、讲者、摘要、时间与时区。
保存公开幻灯片/录像链接,并记录材料是否已经提供。
把报告内容与自己的问题、论文和计算笔记比较。
列出相关论文、匹配理由,以及希望向讲者确认的问题。
按日期与报告保存入口,保留原网址和采集日期。
会前再核对议程变更;现场延迟时手动确认当前报告。
例:Fukuda · Quantum Metrology for High-Energy Physics
2026-08-05 10:00–11:00 · Asia/Tokyo · contribution 9096
V · Reports, teaching and other work / 6. AI support for talks and conferences
Quantum Crossroads · August 3–7, 2026 · Kavli IPMU
Read talk titles, speakers, abstracts, times and timezone.
Save public slide / video links and whether materials are available.
Compare the talks with your questions, papers and calculation notes.
List relevant papers, reasons for the match and questions for speakers.
Organize by date and talk; retain URLs and collection dates.
Recheck schedule changes; confirm the current talk if sessions run late.
Example: Fukuda · Quantum Metrology for High-Energy Physics
2026-08-05 10:00–11:00 · Asia/Tokyo · contribution 9096
五 · 报告、教学与其他工作 / 6. 用 AI 辅助听报告和开会
Fukuda 报告后的疑问:波状暗物质是什么量子态,实验测到了什么?
V · Reports, teaching and other work / 6. AI support for talks and conferences
After Fukuda’s talk: which quantum state describes wave dark matter, and what do experiments measure?
五 · 报告、教学与其他工作 / 6. 用 AI 辅助听报告和开会
六页手写讲义、两段录音与一段视频,整理为主题模块、计算步骤和错误簿。
V · Reports, teaching and other work / 6. AI support for talks and conferences
Six handwritten pages, two audio recordings and a video become modules, calculation recipes and an error book.
五 · 报告、教学与其他工作 / 6. 用 AI 辅助听报告和开会
xingkaizhang77-sketch/multimodal-lecture-notes
视频、录音、板书照片、PDF、手写笔记与参考论文。
清点每份材料,记录已使用、重复、无法读取或暂缓的状态。
转写、OCR 与公式候选识别,再按来源对齐内容。
为每个主题保存证据,检查是否遗漏材料。
公式候选经过验证;补写推导与图像单独标明。
区分原始讲述、整理者补充,以及仍未确认的内容。
分节写作,组装中文 LaTeX 讲义,再渲染与检查 PDF。
保留来源、写作审计和最终检查记录。
按 README 配置并启用 ASR/OCR/公式识别工具;识别结果继续与原材料核对。
V · Reports, teaching and other work / 6. AI support for talks and conferences
xingkaizhang77-sketch/multimodal-lecture-notes
Video, audio, board photos, PDFs, handwriting and papers.
Record each source as used, duplicate, unreadable or deferred.
Transcribe, OCR and identify formula candidates; align sources.
Keep evidence per topic and check coverage.
Verify formula candidates; label added derivations and figures.
Distinguish source statements, supplements and unresolved points.
Draft sections, assemble Chinese LaTeX notes and check the PDF.
Retain source records, writing audits and final checks.
Configure and enable ASR / OCR / formula tools as documented; check their output against the sources.
五 · 报告、教学与其他工作 / 6. 用 AI 辅助听报告和开会
先明确要补上哪一步,再选择开源工具。
| 处理阶段 | 项目 | 可承担的工作 |
|---|---|---|
| 会议信息 | Indico | 读取议程、摘要与公开附件;保存时区和来源。 |
| 录音转写 | WhisperX | 转写与词级时间对齐;需要时加入说话人分离。 |
| PDF 结构 | Docling | 提取正文、图表与结构,保留布局和来源字段。 |
| 多模态检索 | RAG-Anything | 关联文字、图表和公式,用于跨材料检索。 |
先用 Markdown 目录、关键词搜索与来源链接。
材料增加、跨文档问题变多时,再加入检索层;公式和关键结论仍回到原材料核对。
V · Reports, teaching and other work / 6. AI support for talks and conferences
Identify the missing step, then choose an open-source tool.
| Stage | Project | Role in the workflow |
|---|---|---|
| Conference data | Indico | Read schedules, abstracts and public files; retain timezone and source. |
| Audio transcription | WhisperX | Transcribe and align words to audio; add diarization when needed. |
| PDF structure | Docling | Extract text, figures, tables and structure; retain layout and provenance. |
| Multimodal retrieval | RAG-Anything | Connect text, figures, tables and equations for retrieval across materials. |
Start with a Markdown index, keyword search and source links.
Add retrieval as the corpus and cross-document questions grow; check key claims against sources.
五 · 报告、教学与其他工作 / 6. 用 AI 辅助听报告和开会
把自己的问题、现有材料和希望留下的研究产物写进任务。
请辅助我参加这次会议:[会议网址]。 我的研究问题是:[问题];已有材料在:[论文、计算笔记与项目路径]。 会前读取议程、时区、摘要与公开附件,按报告建立资料入口。 对照我的研究,说明值得听哪些报告,并给出相关论文与提问理由。 我说“Note:”时保留原问题,记录对应报告、页码或时间戳。 需要追问时阅读论文全文,写明假设、依据与仍未解决的问题。 会后把讲义、录音和笔记整理为主题模块与可复用的计算步骤。 每条重要结论链接到原材料;补写推导另行标明,未确认内容留在错误簿。 先完成一个报告,供我核对后再扩展;把确认过的结果写回原笔记。
V · Reports, teaching and other work / 6. AI support for talks and conferences
State your question, available sources and the research material you want to preserve.
Help me attend this meeting: [conference URL]. My research question is [question]; sources are in [papers, notes and project paths]. Beforehand, read the schedule, timezone, abstracts and public files; organize by talk. Match talks to my research; explain relevant papers and questions to ask. When I say “Note:”, preserve my question and its talk, page or timestamp. For follow-ups, read full papers; record assumptions, evidence and open questions. Afterward, curate notes and audio into topic modules and reusable calculation steps. Link important claims to sources; label added derivations and keep unresolved points. Complete one talk for my review before expanding; write confirmed results back to the note.
五 · 报告、教学与其他工作 / 6. 用 AI 辅助听报告和开会
一次系统调研,建立资料与方法索引;随后接入周报,每周补充新进展。
明确主题与范围 · 请检索最近三个月“AI,特别是 LLM 智能体在物理研究与教学中的应用”相关会议、工作坊和专题报告。
逐一核对官网与议程,记录主题、日期、讲者和来源,未来活动单列。
筛选值得学习的方法 · 重点寻找利用现有 ChatGPT/Codex 订阅和普通计算资源就能实践的做法。
说明哪些需要额外 API、商业软件或大量训练算力,选择信息量大、创新且实用的报告深入阅读。
读取报告背后的材料 · 寻找幻灯片、论文、代码和视频。优先读取平台已有转写;没有文字时,下载音频并转写,
必要的视频用 480p。重要但无法取得的材料保留链接。需要时,让已授权的本机智能体读取资料并直接汇报分析。
综合成可实践的知识 · 按用途分类,回答:做了什么?怎样实现?有什么证据?与我的工作有什么关系?我可以先做什么小实验?
用适合各类内容的图解、比较和案例呈现,输出带来源链接的中文 HTML,公式使用 KaTeX。
加入每周固定跟踪 · 把这项工作加入现有周报。每周检查新会议、新报告,以及已有会议新公开的讲义、代码和录像;
去重、保留历史,突出新增内容和最值得尝试的方法。周报统一使用中文 HTML。
40 项活动索引(含 4 项未来活动)、21 组案例与证据、2 场完整及 1 场部分视频转写分析,
以及可持续更新的中文 HTML 周报。
复现时,只需替换第 1 步的研究主题,并告诉 dot 你已有的工具和资源。
V · Reports, teaching and other work / 6. AI support for talks and conferences
Build a source and methods index through a systematic survey; add new developments to the weekly report.
Define the scope · Last 3 months: conferences, workshops and talks on AI, especially LLM agents in physics research and teaching. Verify official sites and agendas; log topics, dates, speakers and sources. Separate future events.
Select useful methods · Prioritize methods using existing ChatGPT/Codex subscriptions and ordinary compute. Flag extra APIs, commercial software or heavy training compute; study informative, innovative and practical talks in depth.
Read materials · Find slides, papers, code and videos. Use platform transcripts or download and transcribe audio; video at 480p as needed. Link important missing sources. An authorized local agent can read and report directly if needed.
Turn findings into practice · Group by use: what was done, how, what evidence, relevance to my work, and a first small experiment. Use suitable diagrams, comparisons and cases; deliver Chinese HTML with source links and KaTeX formulas.
Track weekly updates · Add to the existing weekly report. Check new events, talks, and new slides, code and video from earlier events. Deduplicate, keep history; highlight additions and methods worth trying. Use Chinese HTML.
An index of 40 events (4 upcoming), 21 sets of cases and evidence, analysis of 2 complete and 1 partial video transcript, and an ongoing Chinese HTML weekly report.
To reuse the task, replace the topic in step 1 and tell dot which tools and resources you have.
五 · 报告、教学与其他工作
已有的 CCC 私有仓库内容丰富,提供了具体的研究基础与方法依据。
结合研究构想与历年材料,整合成申请书。
特殊函数与数值计算实现
C++20 核心、C ABI 与 Python 接口
已有验证方法与网页展示
让智能体先读代码,理解已经具备的能力,
再写研究基础、方法和需要继续发展的目标。
2025、2023、2022 年的 Word、CV 与网申 PDF。
了解体例、研究经历、文风与所需附件。
从 collider 扩展到 correlator。
给出六项目标、开源计划与原型披露尺度。
ARC、教学、科普与人才培养材料。
用于说明相关经验、教育计划与影响路径。
分项初稿:摘要、目标、研究方法、时间表、Impact、Education、预算与附件。
每项保存为 Markdown,便于逐项阅读、修改和导出。
V · Reports, teaching and other work
The substantial private CCC repo supplied the research basis and methods.
Combine it with research plans and previous materials to draft the application.
Special functions and numerical code
C++20 core, C ABI and Python interfaces
Validation methods and web visualizations
Read the code and map its capabilities;
draft the research basis, methods and goals.
2025, 2023 and 2022 Word documents, CVs and online PDFs.
Application structure, research record, style and attachments.
Extend collider to correlator.
Six objectives, open-source plans and prototype disclosure.
ARC, teaching, outreach and student training records.
Evidence for experience, education plans and impact.
Draft sections: summary, objectives, methods, timeline, impact, education, budget and attachments.
One Markdown file per item, ready for reading, revision and export.
五 · 报告、教学与其他工作 / 7. 经费申请
把已有实现、研究目标与交付要求写进任务,让智能体据此调研和起草。
V · Reports, teaching and other work / 7. Grant applications
Specify the existing implementation, research goals and deliverables to guide the survey and drafting.
五 · 报告、教学与其他工作 / 7. 经费申请
初稿之后:21 条修改/制作指令,分布在 13 个执行回合。
研究者提出具体判断,智能体把修改同步到相关文档,再继续检查。
V · Reports, teaching and other work / 7. Grant applications
After the initial draft: 21 revision/production requests across 13 working turns.
The researcher makes specific decisions; the agent updates related documents and continues checking.
六 · 人与 AI 共同进化
编程 · 数学计算 · 资料收集 · 论文写作 · 翻译 · 绘图 · 排版
目前,人不可替代的作用:
VI · Humans and AI evolving together
Coding · Calculation · Source gathering · Paper writing · Translation · Plots · Typesetting
Where humans remain irreplaceable:
六 · 人与 AI 共同进化
通过考试、面试和黑板讲解来检验:
能否把知识和推导讲清楚。
和 AI 协作,做出以前课堂难以达到的成果,
或完成以前个人无法做出的科研。
预测 AI 的近未来,不用外推远未来。
做我们能做的,但行好事,无需内耗。
VI · Humans and AI evolving together
Use exams, interviews and blackboard explanations
to check understanding:
can students explain the ideas and derivations clearly?
Work with AI to create results beyond what
classroom work could previously achieve,
or pursue research once beyond one person’s reach.
Anticipate AI’s near future; no need to extrapolate to the distant future.
Do what we can, do good work, and let go of needless inner conflict.
网页模型;先选你能判断对错的问题。
质量为 m 的两个相同振子,各由弹簧 k 连到固定端,并由弹簧 kc 互相连接。推导正常模频率和模态;检查 kc→0 的极限。写出假设和可检查的推导。
得到两种模态,并能解释耦合如何改变频率。
没有账号时,提交一个无保密要求的题目,由讲者演示。
提前准备 Mathematica 14.3 或 15.0;按对应版本的官方文档连接 Wolfram MCP。
检查当前 Wolfram MCP 是否可调用。对 a>0、b 为实数,用 Wolfram Language 与 SymPy 分别计算 ∫−∞∞e−ax2cos(bx)dx(全实轴)。比较两式之差,并在 a=2、b=3 时数值积分核对。保存脚本和结果。
两套表达式、化简后的差和一组数值。
先让 AI 读取 MCP 连接状态和具体错误;安装较久可先完成 SymPy 部分。
MathGR-Py 工程或已安装的 MCP。
阅读 MathGR-Py README,运行一个 Kronecker delta 收缩示例,再运行一个对称张量示例。保存可重跑脚本。最后给示例添加 LaTeX 导出,确认计算结果保持一致。
两个小计算、一份脚本、一份公式输出。
先跑 README 中原样的最小例子,再增加功能。
本机 Python;一段自己准备的中英文文字。
写一个 Python 小工具:我手动运行时读取剪贴板文字,输出 PDF。支持中文、段落换行和多页;同时提供从 UTF-8 文本文件读取的选项。用三段文字测试:短文、长文、带中文与符号的文字。
可以重复使用的脚本和三份可读 PDF。
剪贴板接口卡住时,先走文本文件输入;中文方框先检查字体。
选择一篇提供 HTML 的 arXiv 论文;参考我的 arxiv-reading。
先为一篇论文完成下载和清理:保留标题、作者、章节、公式编号、参考文献与原始 URL;原始 HTML 和清理结果分别保存。做通以后,将步骤整理成 Skill,再换一篇论文试一次。
一个 Skill,以及两篇论文的原始文件和清理结果。
没有 HTML 时明确记录可用格式,换一篇有 HTML 的论文继续练习。
INSPIRE-HEP 可访问;选择高能或宇宙学论文。
通过 INSPIRE API 查找 arXiv:0911.3380 的记录,获取引用它的论文。按年份列出标题、arXiv ID 和链接,保存查询日期与原始 JSON。处理分页和重复记录。将流程整理为 Skill,再筛选其中与原初黑洞相关的论文。
可重用的检索流程,以及可以点开核对的结果表。
先只取第一页;检查查到的是“引用它”,还是“它引用的文献”。
按 ARC README 安装插件;首次依赖安装适合会前完成。
使用 ARC 的 arc-paper 获取 arXiv:0911.3380,列出章节和主要公式。选一个公式,给出它所在的上下文、符号含义和适用条件;把原文位置与说明一起保存。
一份围绕具体公式、能返回原文的阅读记录。
先查元数据和章节列表,再缩小到一个公式。
随幻灯片附带的 GW150914 JSON 和交互网页。
阅读这份 GW150914 数据的字段与处理说明。画出 H1 和 L1 的滤波信号,保持原始时间关系,并添加放大事件附近区间的控件。注明归一化方式和数据来源。
新增一个可操作视图,保留数据和处理说明。
先画一个探测器的一条曲线,再增加叠图和控件。
自己的一小段原文、译文,以及 5–10 条术语。
写一个术语检查工具:输入原文、译文和术语表,列出需要人工查看的段落,给出原句、译句和相关术语。只生成报告,原文另存保留。用一个故意改错术语的样本验证工具能发现它。
一份定位到具体段落的检查报告。
先支持一对术语,再扩展到表格;把无法自动判断的匹配显示出来。
引力波演示,或你自己的课堂网页。
先读懂现有网页,然后加一个“先预测,再揭示”的问题。以引力波为例:先显示波形,请学生预测高频段出现的位置,再显示时频图。保留原有控件,增加重新开始。
一个可直接试教的交互问题。
先只加显示/隐藏按钮,确认教学顺序后再美化。
一个已有的小脚本;可用上面的 MathGR 或 PDF 练习。
阅读这个脚本,说明输入输出和当前职责。保留一组已知结果,把核心处理与命令行入口分开;使同一功能既能从 Python 调用,也能从命令行调用。比较修改前后的结果。
两个入口调用同一份核心代码,已知结果保持一致。
让 AI 先说明准备改动的边界;一次只移动一种职责。
悬停或点击任务,查看提示词和具体做法。
致谢:感谢 HK RGC,特别是 RFS2425-6S02 项目的支持。
A web model and a problem you can check.
Two identical masses m are each attached to a fixed wall by a spring k and coupled by a spring kc. Derive the normal-mode frequencies and modes, and check kc→0. State assumptions and show the derivation.
Two modes and an explanation of the coupling effect.
Without an account, submit a nonconfidential problem for the instructor to demonstrate.
Prepare Mathematica 14.3 or 15.0; connect Wolfram MCP using the documentation for that version.
Check that Wolfram MCP is available. For a>0 and real b, integrate e−ax2cos(bx) over the real line in Wolfram Language and SymPy. Compare the symbolic results and check numerical integration at a=2, b=3. Save scripts and results.
Two expressions, their simplified difference and one numerical check.
Inspect MCP connection status and the exact error. If setup takes time, start with SymPy.
The MathGR-Py repository or an installed MCP server.
Read the MathGR-Py README. Run a Kronecker-delta contraction and a symmetric-tensor example. Save a rerunnable script. Add LaTeX export and check that the mathematical result stays unchanged.
Two calculations, one script and formula output.
Run the smallest README example unchanged before adding a feature.
Local Python and a short bilingual sample you prepare.
Write a Python tool that reads clipboard text when I manually run it and saves a PDF. Support Chinese, paragraphs and multiple pages; also accept a UTF-8 text file. Test a short text, a long text and text with Chinese and symbols.
A reusable script and three readable PDFs.
Use a text-file input if clipboard integration stalls; inspect fonts if Chinese glyphs are missing.
Choose an arXiv paper with HTML; use my arxiv-reading as a reference.
Fetch and clean one paper. Preserve title, authors, sections, equation numbers, references and source URL. Save raw HTML separately. Once it works, package the steps as a skill and try a second paper.
A skill plus raw and cleaned files for two papers.
If HTML is unavailable, record the available formats and practice with another paper.
Access to INSPIRE-HEP and a relevant paper.
Find arXiv:0911.3380 in the INSPIRE API and retrieve papers citing it. List title, arXiv ID and link by year. Save the query date and raw JSON, handle pagination and duplicates, then package the workflow as a skill. Filter for primordial-black-hole topics.
A reusable query workflow and a table with verifiable links.
Start with one page and check the citation direction.
Install the plugin using the ARC README; complete first-time setup before the session.
Use ARC arc-paper to fetch arXiv:0911.3380 and list sections and main equations. Choose one equation and explain its context, notation and assumptions. Save the source location with the explanation.
A focused reading note linked to the source equation.
Start with metadata and sections, then narrow to one equation.
The supplied GW150914 JSON and interactive page.
Read the GW150914 fields and processing notes. Plot H1 and L1 filtered signals on their original time coordinates. Add a control to zoom around the event and label normalization and source.
One additional interactive view with data and processing notes.
Plot one curve from one detector before adding overlays and controls.
A short source text, its translation and 5–10 glossary entries.
Build a terminology checker for a source text, translation and glossary. Report paragraphs to inspect, with source sentence, translated sentence and term. Keep the originals. Test with an intentionally inconsistent term.
A report pointing to specific paragraphs.
Start with one term pair, then expand to a table and show ambiguous matches.
The GW demonstration or your own teaching page.
Read the existing page and add a predict-then-reveal question. For the GW example, show the waveform first, ask students where high frequencies occur, then reveal the spectrogram. Preserve controls and add restart.
One classroom-ready interactive question.
Start with a show/hide button; refine appearance after the teaching sequence works.
An existing script, such as your MathGR or PDF exercise.
Read this script and explain its inputs, outputs and responsibilities. Preserve a known result, then separate core processing from the CLI entry point. Expose the same functionality to Python and the command line. Compare results before and after.
Two interfaces using one core implementation with unchanged known results.
Ask the agent to explain the boundary first; move one responsibility at a time.
Hover over or click a task to see its prompt and instructions.
Acknowledgements: Supported by HK RGC, particularly project RFS2425-6S02.