pylon
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePylon
Pylon
Pylon is an AI-to-human review bridge. AI agents push proposed plans and code diffs via MCP; humans review, comment, and approve via a rich web editor.
Pylon是一个AI-人工评审桥接工具。AI Agent通过MCP推送拟定的计划和代码差异;人工则通过功能丰富的网页编辑器进行评审、评论和批准。
MCP Tools
MCP工具
| Tool | Purpose |
|---|---|
| Push a plan for human review. Auto-creates doc + project + version. |
| Pull reviewed content with decisions and feedback. |
| Push file diffs for side-by-side code review. |
| Pull line-specific review comments grouped by file. |
| List documents, filter by title or project. |
| List version snapshots for a document. |
| Switch session's current document context. |
| Update project description or rename. |
| Release session lock on a document. |
See , , and for full parameter docs.
references/tools-plan.mdreferences/tools-code-review.mdreferences/tools-management.md| 工具 | 用途 |
|---|---|
| 推送计划以供人工评审。自动创建文档+项目+版本。 |
| 拉取包含决策和反馈的已评审内容。 |
| 推送文件差异以进行并排代码评审。 |
| 拉取按文件分组的行级评审评论。 |
| 列出文档,可按标题或项目筛选。 |
| 列出某一文档的版本快照。 |
| 切换会话的当前文档上下文。 |
| 更新项目描述或重命名项目。 |
| 释放会话对某一文档的锁定。 |
有关完整的参数文档,请查看、和。
references/tools-plan.mdreferences/tools-code-review.mdreferences/tools-management.mdSetup
设置
Add Pylon's MCP server to your agent config. See for per-agent instructions.
references/setup.mdClaude Code ():
.mcp.jsonjson
{
"mcpServers": {
"pylon": {
"type": "streamable-http",
"url": "https://your-pylon-instance.com/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Generate a token at Settings > Auth Tokens in the Pylon web UI.
将Pylon的MCP服务器添加到你的Agent配置中。有关各Agent的设置说明,请查看。
references/setup.mdClaude Code():
.mcp.jsonjson
{
"mcpServers": {
"pylon": {
"type": "streamable-http",
"url": "https://your-pylon-instance.com/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}在Pylon网页UI的Settings > Auth Tokens中生成令牌。
Golden Rule
黄金准则
New user request = new project. Always omit on the first push. The server auto-creates a fresh document every time you call without . Never look up or reuse document IDs from previous conversations or tasks.
document_idpush_plandocument_id新用户请求 = 新项目。首次推送时务必省略。 每当你调用不带的时,服务器会自动创建一个全新的文档。切勿查找或复用来自之前对话或任务的文档ID。
document_iddocument_idpush_planKey Principles
核心原则
- Push any plan the user asks for. Pylon is a general-purpose plan review tool, not limited to code. Business plans, budgets, project plans, roadmaps, architecture docs — if the user asks you to plan something, draft it and push it to Pylon. Never refuse a plan request because it's "not a software engineering task."
- Native MCP calls only. Never write scripts or temp files to interact with Pylon.
- Always set . Identify yourself (e.g. "claude-code", "backend-dev") so the human knows which agent produced each document.
source - must be informative on every push. Summarize the user's goal, relevant decisions, and why this change matters. The web UI's AI uses this to make better suggestions — make it useful and insightful, not mechanical. Never describe the MCP action itself (e.g. "re-pushing to update") — always describe the intent behind the work.
context - New task = omit .
document_idwithoutpush_planalways creates a new document. Only passdocument_idwhen re-pushing to the same document within the same task after receiving feedback.document_id - Always pass explicitly on
document_id,pull_plan(updates), andpush_plan. Do not rely on the session remembering your current document — sessions can be lost.pull_code_feedback
- 推送用户要求的任何计划。 Pylon是通用的计划评审工具,不限于代码。商业计划、预算、项目计划、路线图、架构文档——只要用户要求你制定计划,就起草并推送到Pylon。绝不要因为“不是软件工程任务”而拒绝计划请求。
- 仅使用原生MCP调用。 切勿编写脚本或临时文件来与Pylon交互。
- 始终设置。 标识你自己(例如"claude-code"、"backend-dev"),以便人工知道每个文档是由哪个Agent生成的。
source - 每次推送时的必须具备信息量。 总结用户的目标、相关决策以及此变更的重要性。网页UI中的AI会利用这些信息给出更好的建议——请确保内容有用且有洞察力,不要机械性描述。绝不要描述MCP操作本身(例如“重新推送以更新”)——始终描述工作背后的意图。
context - 新任务 = 省略。 不带
document_id的document_id始终会创建新文档。仅在同一任务中收到反馈后,重新推送到同一文档时才传递push_plan。document_id - 在、
pull_plan(更新)和push_plan中始终显式传递pull_code_feedback。 不要依赖会话记住当前文档——会话可能会丢失。document_id
Quick Workflow
快速工作流
1. push_plan(plan="...", source="claude-code", group="my-project", context="...")
→ Creates NEW document + project, returns document_id + URL
→ NEVER pass document_id here — let the server create a fresh document
2. Share the document URL with the user and STOP.
→ Do NOT poll, wait, loop, or use extended thinking while waiting.
→ Do NOT "stand by" for review — just tell the user the URL and finish your turn.
→ The user will come back and ask you to pull when they are ready.
3. pull_plan(document_id="<id-from-step-1>") (only when the user asks)
→ Always pass document_id explicitly — don't rely on session memory
→ Returns markdown (readable plan), decisions (resolved threads), feedback (open threads to address)
4. Address any feedback, then proceed with the approved plan
5. If human requests changes:
push_plan(document_id="<id-from-step-1>", plan="...", context="Updated based on feedback...")
→ Always pass document_id to update the SAME document1. push_plan(plan="...", source="claude-code", group="my-project", context="...")
→ 创建新文档+项目,返回document_id+URL
→ 此处绝不要传递document_id——让服务器创建新文档
2. 将文档URL分享给用户,然后停止操作。
→ 等待期间不要轮询、等待、循环或进行扩展思考。
→ 不要“待命”等待评审——只需告知用户URL并结束当前步骤。
→ 用户准备就绪后会回来要求你拉取反馈。
3. pull_plan(document_id="<id-from-step-1>") (仅在用户要求时执行)
→ 始终显式传递document_id——不要依赖会话记忆
→ 返回markdown格式的可读计划、决策(已解决的讨论线程)、反馈(需要处理的未解决线程)
4. 处理所有反馈,然后按照批准的计划进行操作
5. 如果人工要求修改:
push_plan(document_id="<id-from-step-1>", plan="...", context="根据反馈更新...")
→ 始终传递document_id以更新同一文档Code Review Workflow
代码评审工作流
1. push_code_review(files=[...], source="claude-code", group="my-project",
plan_document_id="<plan-doc-id>")
→ Always pass plan_document_id if this code review is associated with a plan
→ Links the code review to the plan in the UI for traceability
→ Returns code_review_id + URL
2. Share the URL with the user and STOP (same rules as push_plan).
3. pull_code_feedback(code_review_id="<id-from-step-1>")
→ Always pass code_review_id explicitly
→ Returns threads grouped by file_path with line ranges and comments
4. Address feedback, re-push with code_review_id to update the same review.See for re-push, versioning, and advanced patterns.
See for the code review lifecycle.
See for team/swarm coordination.
references/plan-workflow.mdreferences/code-review-workflow.mdreferences/multi-agent-teams.md1. push_code_review(files=[...], source="claude-code", group="my-project",
plan_document_id="<plan-doc-id>")
→ 如果此代码评审与某一计划相关,务必传递plan_document_id
→ 在UI中将代码评审与计划关联以实现可追溯性
→ 返回code_review_id+URL
2. 将URL分享给用户,然后停止操作(与push_plan规则相同)。
3. pull_code_feedback(code_review_id="<id-from-step-1>")
→ 始终显式传递code_review_id
→ 返回按file_path分组的讨论线程,包含行范围和评论
4. 处理反馈,传递code_review_id重新推送以更新同一评审。有关重新推送、版本控制和高级模式,请查看。
有关代码评审生命周期,请查看。
有关团队/集群协作,请查看。
references/plan-workflow.mdreferences/code-review-workflow.mdreferences/multi-agent-teams.mdCore Concepts
核心概念
- Projects group related documents via the param. Auto-created, session-sticky. See
group.references/projects-and-sessions.md - Session locking prevents terminal session conflicts (30-min TTL). See .
references/projects-and-sessions.md - Web editing guard blocks terminal pushes while a human is editing (5-min TTL). Human is never locked out.
- Code reviews use side-by-side Monaco diffs with line-specific threaded comments. See .
references/code-review-workflow.md
- 项目通过参数对相关文档进行分组。自动创建,与会话绑定。请查看
group。references/projects-and-sessions.md - 会话锁定防止终端会话冲突(30分钟超时)。请查看。
references/projects-and-sessions.md - 网页编辑防护在人工编辑期间阻止终端推送(5分钟超时)。人工永远不会被锁定在外。
- 代码评审使用并排Monaco差异对比工具,支持行级线程化评论。请查看。
references/code-review-workflow.md
Session Recovery
会话恢复
MCP sessions are in-memory — lost after , , dev server restart, or deploy. The server auto-recovers expired sessions transparently, but convenience state (, ) resets to null.
/clear/compactcurrentDocumentIdsessionGroupAlways pass IDs explicitly — on / updates, on , and on every push. This makes your calls fully resilient to session loss with zero recovery steps needed.
document_idpull_planpush_plancode_review_idpull_code_feedbackgroupMCP会话存储在内存中——执行、、开发服务器重启或部署后会丢失。服务器会透明地自动恢复过期会话,但便捷状态(、)会重置为null。
/clear/compactcurrentDocumentIdsessionGroup始终显式传递ID——在/更新时传递,在时传递,在每次推送时传递。这会让你的调用完全不受会话丢失影响,无需任何恢复步骤。
pull_planpush_plandocument_idpull_code_feedbackcode_review_idgroup