在纯净的衬线体阅读视图中审阅论文,将所有批注、人类追评与 AI 多版本候选(v1a / v1b / v1c)存放在侧车目录
.dx-writing/——讨论阶段对 .tex 原稿零侵入。支持悬停无痕预览、多选线程批量 Copy to AI、多处选句复制与按需
Redline 对照。
Read raw LaTeX as calm editorial prose while storing comments, human feedback, and multi-version AI rewrites
(v1a / v1b / v1c) in a sidecar .dx-writing/ directory—zero
mutation to .tex files until you click Apply. Built with live hover preview, multi-select
Copy to AI, and dual Stdio + HTTP MCP.
pip install git+https://github.com/soul667/dx-writing.git
dx-writing serve --workspace . --port 5926
所有评论栈、多版本候选与初始基线均独立保存在 <workspace>/.dx-writing/。在反复推敲措辞期间,.tex 原稿一字未改,绝不弄脏 git diff 或干扰 latexmk 编译。
Threads, candidate stacks, and baseline snapshots live in <workspace>/.dx-writing/. Your .tex files stay 100% untouched during review—keeping git diff and latexmk pristine.
自动消隐 \cite{}、\textbf{}、行内公式与自定义 \newcommand 宏,并将 tabular 渲染为标准学术三线表;同时每个字符精确映射回源文件偏移,划词即锚定原句。
Projects \cite{}, \textbf{}, inline math, zero-arg \newcommand macros, and booktabs tabular blocks into clean serif prose while mapping mouse selections back to exact source offsets.
既可勾选多条批注线程一键 Copy Selected to AI,也可让 Claude Code、Codex 或 Antigravity 通过 dx-writing MCP 直接拉取反馈并在原锚点上叠楼回复 v2a / v2b。
Batch-check multiple threads for one-click Copy Selected to AI, or connect Claude Code, Codex, and Antigravity directly via Stdio / Streamable HTTP MCP to stack v2a / v2b rewrites in place.
| Tool Name | Key Parameters | 功能说明Description |
|---|---|---|
dx_list_documents |
— |
列出工作区内所有 .tex / .md / .txt 文稿、开放线程数与待 AI 回复计数
List workspace manuscripts with open thread counts and pending_human_feedback counts
|
dx_read_document |
doc_path, start_line?, end_line? |
读取带行号的源文稿及锚定在其上的开放 CommentThread
Read line-numbered source text alongside all anchored CommentThreads
|
dx_list_threads |
doc_path?, only_pending_feedback? |
精准拉取作者刚追评、等待 AI 续写多版本的线程(only_pending_feedback=true)
Query open/resolved threads or filter strictly to human feedback awaiting AI reply
|
dx_add_comment |
doc_path, anchor_quote, body, candidates[] |
在精确子串上新建叠评线程并挂载 v1a / v1b / v1c 多版本候选,不改动原稿
Anchor a new stackable thread onto anchor_quote with v1a / v1b / v1c candidates
|
dx_reply_comment |
thread_id, body, candidates[] |
针对人类反馈在同一 thread_id 下继续叠楼回复 AI · v2 候选
Stack revised AI · v2 candidates onto an existing thread_id
|
dx_apply_candidate |
thread_id, candidate_ref |
将选定版本(如 v2a)写入源文件(自动转义 LaTeX %),保留锚点可继续叠评
Commit a chosen candidate into the file while keeping the thread anchored & revertible
|
dx_manage_thread |
thread_id, action |
执行 resolve(结项)、reopen、revert(回退至初始原句)或 delete
Execute resolve, reopen, revert (restore baseline quote), or delete
|
dx_get_redline_diff |
doc_path |
输出当前文稿相对初始基线快照的 Unified Redline 差异 Inspect unified Redline diff comparing working manuscript against baseline snapshot |
git clone https://github.com/soul667/dx-writing.git pip install -e dx-writing # Starts Web UI + http://127.0.0.1:5926/mcp dx-writing serve --workspace /path/to/paper --port 5926
# Claude Code (Streamable HTTP) claude mcp add --transport http dx-writing \ http://127.0.0.1:5926/mcp # Codex CLI (Stdio) codex mcp add dx-writing -- \ dx-writing mcp --workspace /path/to/paper
{
"mcpServers": {
"dx-writing": {
"serverUrl": "http://127.0.0.1:5926/mcp"
}
}
}
{
"mcpServers": {
"dx-writing": {
"command": "dx-writing",
"args": ["mcp", "--workspace", "/path/to/paper"]
}
}
}