BKD
Operate BKD by sending HTTP requests to $BKD_URL, which must point at the BKD API root such as http://host:port/api.
Keep this entry file small. Load only the references needed for the current turn.
Always-On Rules
- Confirm
$BKD_URLbefore making any request. If it is missing, ask for it. - Prefer
curl -spiped tojqso results are easy to inspect. - Use the safe issue execution flow: create in
todo-> follow-up -> move toworking. - Check
/processes/capacitybefore starting any execution. - Move finished work to
review, notdone. Usedoneonly after human confirmation. - 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
{success, data}or{success, error}. - Never use
sleepto wait for subtasks or long-running operations. Create a cron job (issue-follow-up) to callback the coordinator issue on a schedule, then let the current turn end.
Core Workflow
Single Issue Execution
# 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')
# 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
# 3. Start execution
curl -s -X PATCH "$BKD_URL/projects/{projectId}/issues/$ISSUE_ID" \
-H 'Content-Type: application/json' \
-d '{"statusId":"working"}' | jqQuick Operations
# Health check
curl -s "$BKD_URL/health" | jq
# Execution capacity
curl -s "$BKD_URL/processes/capacity" | jq
# Monitor logs (last 3 turns, assistant messages only)
curl -s "$BKD_URL/projects/{projectId}/issues/{issueId}/logs/filter/types/assistant-message/turn/last3" | jq
# Cron jobs
curl -s "$BKD_URL/cron/actions" | jq
curl -s "$BKD_URL/cron" | jqReference Packs
Load only what the current task needs:
references/rest-api.mdUse for exact BKD routes, payload shapes, query params, and field lists.references/orchestration.mdUse for multi-subtask dispatch workflows, mode selection (worktree vs simple), subtask creation and monitoring, and follow-up communication patterns.references/quality-review.mdUse for subtask self-review responsibilities, coordinator logs filter assessment, and signal classification.references/merge-strategy.mdUse for worktree branch merging, conflict resolution, post-merge verification, and cleanup after subtasks complete in worktree mode.
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
references/orchestration.md, thenreferences/quality-review.md, thenreferences/merge-strategy.mdas each phase is reached.