bkd
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBKD
BKD
Operate BKD by sending HTTP requests to , which must point at the BKD
API root such as .
$BKD_URLhttp://host:port/apiKeep this entry file small. Load only the references needed for the current turn.
通过向发送HTTP请求来操作BKD,该变量必须指向BKD API根地址,例如。
$BKD_URLhttp://host:port/api保持该入口文件简洁,仅加载当前轮次所需的引用。
Always-On Rules
常驻规则
- Confirm before making any request. If it is missing, ask for it.
$BKD_URL - Prefer piped to
curl -sso results are easy to inspect.jq - Use the safe issue execution flow: create in -> follow-up -> move to
todo.working - Check before starting any execution.
/processes/capacity - Move finished work to , not
review. Usedoneonly after human confirmation.done - Use follow-up for all inter-issue communication.
- Treat project and issue deletions as soft-delete unless the API says otherwise.
- Expect all responses to use or
{ success, data }.{ success, error } - Never use to wait for subtasks or long-running operations. Create a cron job (
sleep) to callback the coordinator issue on a schedule, then let the current turn end.issue-follow-up
- 发起任何请求前先确认,如果缺失请询问用户。
$BKD_URL - 优先使用管道传输给
curl -s,方便查看结果。jq - 使用安全的issue执行流程:在状态下创建 -> 跟进 -> 移动到
todo状态。working - 启动任何执行前先检查接口。
/processes/capacity - 将已完成的工作移动到状态,而非
review。仅在人工确认后才使用done状态。done - 所有issue间的沟通都使用跟进功能。
- 除非API另有说明,否则将项目和issue删除视为软删除。
- 所有响应格式均为或
{ success, data }。{ success, error } - 永远不要使用等待子任务或长时间运行的操作。创建定时任务(
sleep)按计划回调协调issue,然后结束当前轮次。issue-follow-up
Core Workflow
核心工作流
Single Issue Execution
单个issue执行
bash
undefinedbash
undefined1. Create issue
1. Create issue
ISSUE=$(curl -s -X POST "$BKD_URL/projects/{projectId}/issues"
-H 'Content-Type: application/json'
-d '{"title":"short title","statusId":"todo"}') ISSUE_ID=$(echo "$ISSUE" | jq -r '.data.id')
-H 'Content-Type: application/json'
-d '{"title":"short title","statusId":"todo"}') ISSUE_ID=$(echo "$ISSUE" | jq -r '.data.id')
ISSUE=$(curl -s -X POST "$BKD_URL/projects/{projectId}/issues"
-H 'Content-Type: application/json'
-d '{"title":"short title","statusId":"todo"}') ISSUE_ID=$(echo "$ISSUE" | jq -r '.data.id')
-H 'Content-Type: application/json'
-d '{"title":"short title","statusId":"todo"}') ISSUE_ID=$(echo "$ISSUE" | jq -r '.data.id')
2. Send details
2. Send details
curl -s -X POST "$BKD_URL/projects/{projectId}/issues/$ISSUE_ID/follow-up"
-H 'Content-Type: application/json'
-d '{"prompt":"full implementation details"}' | jq
-H 'Content-Type: application/json'
-d '{"prompt":"full implementation details"}' | jq
curl -s -X POST "$BKD_URL/projects/{projectId}/issues/$ISSUE_ID/follow-up"
-H 'Content-Type: application/json'
-d '{"prompt":"full implementation details"}' | jq
-H 'Content-Type: application/json'
-d '{"prompt":"full implementation details"}' | jq
3. Start execution
3. Start execution
curl -s -X PATCH "$BKD_URL/projects/{projectId}/issues/$ISSUE_ID"
-H 'Content-Type: application/json'
-d '{"statusId":"working"}' | jq
-H 'Content-Type: application/json'
-d '{"statusId":"working"}' | jq
undefinedcurl -s -X PATCH "$BKD_URL/projects/{projectId}/issues/$ISSUE_ID"
-H 'Content-Type: application/json'
-d '{"statusId":"working"}' | jq
-H 'Content-Type: application/json'
-d '{"statusId":"working"}' | jq
undefinedQuick Operations
快速操作
bash
undefinedbash
undefinedHealth check
Health check
curl -s "$BKD_URL/health" | jq
curl -s "$BKD_URL/health" | jq
Execution capacity
Execution capacity
curl -s "$BKD_URL/processes/capacity" | jq
curl -s "$BKD_URL/processes/capacity" | jq
Monitor logs (last 3 turns, assistant messages only)
Monitor logs (last 3 turns, assistant messages only)
curl -s "$BKD_URL/projects/{projectId}/issues/{issueId}/logs/filter/types/assistant-message/turn/last3" | jq
curl -s "$BKD_URL/projects/{projectId}/issues/{issueId}/logs/filter/types/assistant-message/turn/last3" | jq
Cron jobs
Cron jobs
curl -s "$BKD_URL/cron/actions" | jq
curl -s "$BKD_URL/cron" | jq
undefinedcurl -s "$BKD_URL/cron/actions" | jq
curl -s "$BKD_URL/cron" | jq
undefinedReference Packs
引用包
Load only what the current task needs:
- Use for exact BKD routes, payload shapes, query params, and field lists.
references/rest-api.md - Use for multi-subtask dispatch workflows, mode selection (worktree vs simple), subtask creation and monitoring, and follow-up communication patterns.
references/orchestration.md - Use for subtask self-review responsibilities, coordinator logs filter assessment, and signal classification.
references/quality-review.md - Use for worktree branch merging, conflict resolution, post-merge verification, and cleanup after subtasks complete in worktree mode.
references/merge-strategy.md
仅加载当前任务所需的内容:
- 用于查询准确的BKD路由、负载结构、查询参数和字段列表。
references/rest-api.md - 用于多子任务调度工作流、模式选择(worktree vs simple)、子任务创建与监控,以及跟进沟通模式。
references/orchestration.md - 用于子任务自审职责、协调日志过滤评估和信号分类。
references/quality-review.md - 用于worktree模式下子任务完成后的worktree分支合并、冲突解决、合并后验证和清理。
references/merge-strategy.md
Quick Routing
快速路由
Choose references by intent:
- Single issue CRUD, cron jobs, or API details: load .
references/rest-api.md - Multi-subtask dispatch or orchestration: load .
references/orchestration.md - Subtask quality assessment or code review: load .
references/quality-review.md - Branch merging after worktree subtasks: load .
references/merge-strategy.md - Full orchestration pipeline: load , then
references/orchestration.md, thenreferences/quality-review.mdas each phase is reached.references/merge-strategy.md
根据意图选择引用:
- 单个issue CRUD、定时任务或API详情:加载。
references/rest-api.md - 多子任务调度或编排:加载。
references/orchestration.md - 子任务质量评估或代码审查:加载。
references/quality-review.md - worktree子任务完成后的分支合并:加载。
references/merge-strategy.md - 完整编排流水线:依次加载、
references/orchestration.md、references/quality-review.md,到达对应阶段时加载对应文档。references/merge-strategy.md