在将编辑应用到本地文件系统之前,审核生成的代码、审查实施建议、附加行级反馈注释并验证视觉媒体资产。
协同合作与共同引导
产物(Artifact) 是由 Agent 创建的结构化交付成果,用于完成其任务并向您传达其进度和想法。产物包括丰富的 Markdown 大纲(例如实施计划)、代码差异、架构图和视觉媒体文件。
随着 Agent 在较长时间内以更高的自主权工作,产物可以实现异步协作。您不需要同步仔细监控每个单独的工具执行。相反,您会在关键里程碑处审查高级可交付成果。
由于自主 Agent 偶尔会偏离路线或产生幻觉解决方案,因此产物工作流可作为关键的交互式协同引导机制。根据您的配置,Agent 会在中间里程碑处暂停,支持您检查建议的计划或代码编辑、提供行内注释,并在任何更改物理写入本地文件系统之前重定向 Agent。
TUI 将这些资产划分为两个交互层:
- 产物选择器覆盖:高级清单菜单,包含审阅状态标记、快速预览切换和可折叠文件夹。
- 产物细节查看器:全屏代码审核界面,支持行内注释、语法突出显示和图表缩放。
/artifact 概览
当 Agent 生成或修改文件时,TUI 状态栏中的通知会随之更新(/artifact to review)。在提示词输入框中按 Ctrl + R 即可打开全屏产物选择器(Artifact Picker)面板。
10 artifacts · /artifact to review
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
>
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Action required (10 left)
› [ ] new release_notes.md open approve reject
utils.py
[ ] new performance_report.md
api_client.py
config_manager.py
[ ] new user_guide.md
run_tests.py
data_processor.py
[ ] new system_architecture.md
[ ] new project_overview.md
Keyboard: ↑/↓ Navigate y/n Approve/reject shift+a Approve all p Preview esc Done
交互快捷键绑定
使用以下专用面板控件审核文件清单:
| 键 | 途易命令 | 动作行为 |
|---|---|---|
| ↑ / ↓ | navigation.up / navigation.down | 在条目列表中上下滚动突出显示的选择。 |
| h / l | navigation.left / navigation.right | 在行内按钮之间聚焦并切换:open、approve 和 reject(也可以使用 ← / →)。 |
| p | — | 切换 快速行内文件预览。这将在所选行的正下方打开一个 12 行截断和缩进的代码块预览。 |
| y | confirm.yes | 立即批准突出显示的文件。状态标记更新为绿色复选标记 (✓ approved)。 |
| n | confirm.no | 立即拒绝突出显示的文件。状态标记更新为红叉 (✗ rejected)。 |
| Shift + A | — | 一次性批量批准所有待处理的可操作文件。 |
| Shift + R | — | 一次批量拒绝所有待处理的可操作文件。 |
| Enter | cli.enter | 执行活动的聚焦按钮。如果 open 按钮获得焦点,则会启动全屏详细信息查看器。 |
| Esc | cli.escape | 保存您的活动审核状态,将批准/拒绝提交回 Agent 线程,并将焦点返回到提示框。 |
代码文件与视觉媒体
为了组织工作区资产,选择器按格式类型分隔文件:
- 可操作的代码文件:需要明确批准的标准编程代码、配置文件和计划 Markdown 文件。
- Collapsible media drawer: Visual asset files (such as PNG, JPG, WebP, SVG, MP4, or WebM media) are grouped into a dedicated Media drawer header. Use the following actions to interact with media items:
- 选中 Media 标题行并按 Enter 即可展开或收起抽屉列表。
- 选中特定媒体项并按 Enter,即可在操作系统的原生媒体查看器中打开该文件。
查看产物
如需深入审查文件的代码结构或提议的逻辑,请选择 open(或直接在高亮显示的代码行上按 Enter)以打开产物详情查看器(Artifact Detail Viewer)。
implementation_plan.md
> 1 Implementation Plan: Alpha-Centauri Telemetry Scaling Engine
2
3 This document provides a highly detailed, step-by-step engineering implementation plan to upgrade the Alpha-Centauri
4 telemetry ingestion pipeline. It outlines current gaps, proposed architecture improvements, execution timelines, risks,
5 and verification procedures.
6 ──────
7 ## 1. Executive Summary
8
9 As sensor deployments scale from 100 to 10,000 active nodes, the existing synchronous Python-based ingestion system (
10 data_processor.py ) faces critical CPU and write latency bottlenecks.
11
12 This implementation plan details the migration to an asynchronous, remote-buffered pipeline utilizing distributed
13 message
14 queues, multi-threaded worker pools, and an optimized column-oriented storage layer.
15 ──────
16 ## 2. Current Architecture vs. Target Architecture
17
18 ### Gap Analysis
19
20 Feature | Existing (v1.2) | Target (v2.0) | Gap to Resolve
21 ------------|-------------------|-------------------|---------------------------
22 Concurrency| Sync, 1-thread | Async, concurrent | Cannot scale peak bursts
23 Buffer | None (direct API) | Message Queue | Outage data loss
24 Storage | Flat JSON | Columnar CNS | Slow queries, high consumption
25 Config | Load on launch | Dynamic polling | Requires restarts to update
26
27 ### Architectural Schema
28
29 Ingestion Layer │ Buffering Layer │ Processing Layer │ Storage Layer
30
31 ┌────────────┐ ┌────────────┐
32 │ "Sensor 1" │ │ "Sensor 2" │
33 └────────────┘ └────────────┘
34 │ HTTP POST │ HTTP POST
35 ▼ ▼
36 ┌─────────────────┐
37 │ "Load Balancer" │
38 └─────────────────┘
39 │
40 ▼
41 ┌───────────────────────┐ ┌───────────────────────┐
42 │ "Ingestion Gateway A" │ │ "Ingestion Gateway B" │
43 └───────────────────────┘ └───────────────────────┘
44 │ Publish │ Publish
45 ▼ ▼
46 ┌─────────────────────────────┐
47 │ "Distributed Message Queue" │
48 └─────────────────────────────┘
49 │ Stream Consume
50 ▼
51 ┌────────────────────┐ ┌────────────────────┐
52 │ "Worker Process 1" │ │ "Worker Process 2" │
53 └────────────────────┘ └────────────────────┘
54 │ Read Config │ Read Config
55 ▼ ▼
56 ┌──────────────────────────┐ ┌──────────────────────────┐
57 │ "Dynamic Config Service" │ │ "Columnar Storage (CNS)" │
[0% L1 1-57/135]
↑/↓ scroll · pgup/pgdown page · shift+g bottom · g top · c comment · m raw mermaid · ctrl+=/ctrl+- zoom 100%
l hide lines · esc close
审查与导航
使用以下键盘快捷键在详情查看器中导航:
- 滚动:使用
j/k(或标准箭头键)逐页或逐行滚动。 - 首尾跳转:按
g跳转到文件顶部,按 Shift + G 直接跳转到文件底部。 - 切换装订线:按
l可打开和关闭行号装订线,以更清晰地呈现原始代码。
细粒度逐行评论
如果特定代码块需要更正,请按照下列步骤操作:
- 导航并将光标定位在目标行上。
- 按
c打开直接附加到该行的行内多行文本编辑器缓冲区。 - 编写详细反馈,然后按 Esc 保存并提交评论。该行随后会更新并显示评论图标指示符(
💬)。 - 要删除活动反馈,请将光标放在注释行上,然后按
d。
自定义 Mermaid 图表渲染
如果活动文档包含结构化系统流程图、数据库关系或体系结构布局,请使用以下控件:
- Cycle render modes (
m): Pressmto cycle through the following visual rendering modes:- Kitty 图形协议图像:在兼容 Kitty 的终端仿真器中将图表原生渲染为行内图形。
- ASCII 框艺术(默认):将图表渲染为与所有 shell 兼容的干净、高性能的文本艺术。
- 原始代码:显示原始 Markdown 代码块围栏。
- 缩放图像:启用 Kitty 图形图像模式时,按 Ctrl + = 可放大图像,按 Ctrl + - 可缩小图像。
按 Esc 关闭详情查看器并返回主选择器列表。
下一步
配置设置首选项并查看 Agent 自治参数: