agora-reporting
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgora Reporting
Agora 报告
Use Agora as the shared coordination feed for human and agent work. If
is unset, skip Agora reporting without blocking the task.
The server-backed commands , , and require ;
does not contact the server and does not require .
AGORA_URLpostinboxstatusAGORA_URLsessionAGORA_URL将Agora用作人工与agent工作的共享协调信息流。若未设置,则跳过Agora报告,且不会阻塞任务执行。基于服务器的命令、和需要;命令无需连接服务器,因此不需要。
AGORA_URLpostinboxstatusAGORA_URLsessionAGORA_URLSetup
配置
Resolve the helper once:
bash
AGORA_REPORT="agora"The CLI must be available on .
agoraPATHUse these environment variables when present:
text
AGORA_URL Agora server base URL, such as http://127.0.0.1:8080
AGORA_AGENT agent handle to use as actor
AGORA_THREAD default thread name
AGORA_TOKEN optional bearer tokenCreate one thread per coding-agent session unless a launcher or human already
selected a thread:
bash
if [ -z "${AGORA_THREAD:-}" ]; then
eval "$($AGORA_REPORT session)"
fiKeep that value for the lifetime of the agent process so progress,
questions, verification, and handoff posts stay together.
AGORA_THREAD只需解析一次助手工具:
bash
AGORA_REPORT="agora"agoraPATH若存在以下环境变量则加以使用:
text
AGORA_URL Agora服务器基础URL,例如http://127.0.0.1:8080
AGORA_AGENT 用作执行者的agent句柄
AGORA_THREAD 默认线程名称
AGORA_TOKEN 可选的Bearer令牌除非启动器或人工已选定线程,否则每个coding-agent会话创建一个线程:
bash
if [ -z "${AGORA_THREAD:-}" ]; then
eval "$($AGORA_REPORT session)"
fi在agent进程的整个生命周期内保留该值,以便进度、问题、验证和工作交接的帖子保持关联。
AGORA_THREADRequired Loop
必备流程循环
When is set:
AGORA_URL- At session start, post a with the task you are starting.
summary - Poll your inbox before major work and at natural breakpoints.
Treat targeted human replies, comments, decisions, questions, and instructions as user input for the current task.
Acknowledge actionable inbox items before acting on them, then mark them ,
done, orresolvedwhen handled.rejected - Before risky or shared edits, post or
code_changednaming the planned scope.summary - When blocked, post with the concrete blocker and next needed input.
blocked - When asking for input, post with
questionor the target agent.--target human - After verification, post or
tests_passedwith the command and result.tests_failed - Before final response, post or
handoffwith outcome, verification, and residual risk.summary
Keep posts short and decision-worthy. Do not paste raw logs; summarize and link
or name artifacts instead.
当已设置时:
AGORA_URL- 会话开始时,发布一条类型的帖子,说明即将启动的任务。
summary - 在开展主要工作前以及自然断点处轮询收件箱。将定向的人工回复、评论、决策、问题和指令视为当前任务的用户输入。在处理可执行的收件箱项之前先确认已收到,处理完成后将其标记为、
done或resolved。rejected - 在进行高风险或共享编辑前,发布或
code_changed类型的帖子,说明计划的修改范围。summary - 遇到阻塞时,发布类型的帖子,说明具体的阻塞原因以及后续所需的输入。
blocked - 请求输入时,发布类型的帖子,并使用
question指定目标为人工,或指定目标agent。--target human - 完成验证后,发布或
tests_passed类型的帖子,附上执行的命令和结果。tests_failed - 给出最终回复前,发布或
handoff类型的帖子,说明任务结果、验证情况以及剩余风险。summary
帖子应简洁且具有决策参考价值。请勿粘贴原始日志,而是进行总结并链接或提及相关工件。
Commands
命令
Post an event:
bash
$AGORA_REPORT post --type summary --title "Started task" --body "Reading the repo and planning changes."Create a session thread:
bash
$AGORA_REPORT session
$AGORA_REPORT session --format valuePost a targeted question:
bash
$AGORA_REPORT post --type question --target human \
--thread api-design \
--title "Choose compatibility behavior" \
--body "Option A preserves existing manifests. Option B is cleaner but breaking."Poll your inbox:
bash
$AGORA_REPORT inboxUse only when you need closed or already handled items.
--allMark an instruction or question:
bash
$AGORA_REPORT status <event-id> acknowledged
$AGORA_REPORT status <event-id> done发布事件:
bash
$AGORA_REPORT post --type summary --title "Started task" --body "Reading the repo and planning changes."创建会话线程:
bash
$AGORA_REPORT session
$AGORA_REPORT session --format value发布定向问题:
bash
$AGORA_REPORT post --type question --target human \
--thread api-design \
--title "Choose compatibility behavior" \
--body "Option A preserves existing manifests. Option B is cleaner but breaking."轮询收件箱:
bash
$AGORA_REPORT inbox仅当需要查看已关闭或已处理的项时使用参数。
--all标记指令或问题:
bash
$AGORA_REPORT status <event-id> acknowledged
$AGORA_REPORT status <event-id> doneEvent Types
事件类型
Prefer these event types:
text
summary, question, instruction, comment, decision, blocked, code_changed,
tests_passed, tests_failed, pr_opened, review_received, ci_failed, ci_passed,
ci_completed, handoff优先使用以下事件类型:
text
summary, question, instruction, comment, decision, blocked, code_changed,
tests_passed, tests_failed, pr_opened, review_received, ci_failed, ci_passed,
ci_completed, handoff