ask
免费Send a request to a CCB agent with `ask`.
中文简介正在准备中。当前显示原文说明。
Diagnose a named CCB agent by combining authoritative runtime and job lineage with deep read-only pane inspection, apply bounded recovery when evidence supports it, verify the result, and request authorization before submitting a redacted GitHub issue. Use for `$ccb_diagnose agentname`, `$ccb-diagnose agentname`, or reports that a CCB agent is stuck, disconnected, not continuing, not replying, or showing provider errors.
中文简介正在准备中。当前显示原文说明。
安装前可以查看交给 AI 代理的指令内容。
Use this as the single user-facing CCB maintenance workflow. The user-facing
alias is ccb_diagnose <agentname>; the packaged skill name is ccb-diagnose
to match the existing ccb-clear packaging convention.
This skill is for the active work-environment CCB using the installed ccb
release. For source validation, use /home/bfly/yunwei/ccb_source/ccb_test
from /home/bfly/yunwei/test_ccb2, not the installed command.
Do not infer an all target from a missing or ambiguous agent name. Ask for a
specific current agent instead.
Run the installed CCB diagnostics once:
command ccb ping ccbd
command ccb ping "$AGENT"
command ccb ps
command ccb queue --detail "$AGENT"
command ccb pend --inbox --detail "$AGENT"
Use command ccb doctor logs "$AGENT" when provider/API evidence is relevant.
Use command ccb trace <job_id|message_id|attempt_id|reply_id> when the
snapshot exposes a current or head lineage id. Read a full artifact-backed
reply before acting; previews are not authority.
The target must be a current mounted daemon-graph agent. Disk config, stale
.ccb/agents directories, arbitrary tmux listings, old provider sessions, and
pane residue are evidence only.
When a current pane is available, pane inspection is mandatory for a named
agent. Use the CCB-owned read-only pane evidence interface when available,
preferably ccb_pane_capture_text or the equivalent CCB diagnostic tool. Do
not mutate panes or send keys.
If no structured pane tool is available, use a read-only tmux fallback only
after ccb ps supplied and ownership checks confirmed the exact pane id and
socket path:
command tmux -S "$TMUX_SOCKET_PATH" display-message -p -t "$PANE_ID" \
'#{pane_id} #{pane_dead} #{pane_current_command} #{pane_title}'
command tmux -S "$TMUX_SOCKET_PATH" capture-pane -p -t "$PANE_ID" -S -120
For a progress comparison, repeat only the bounded capture-pane read after a
short interval. Do not list or capture unrelated sessions/panes. If the
runtime does not expose a usable CCB-owned socket and pane id, report
pane_evidence_unavailable instead of guessing a target.
Capture in this order:
Classify visible state as one of:
working: provider output or activity is advancing;waiting_input: trust, login, confirmation, update, permission, or other
user prompt is visible;stale_prompt: the provider is idle at a prompt after the current request
was accepted, or the visible request does not match the current anchor;provider_update: provider update/install/restart screen is blocking work;provider_error: auth, quota, rate-limit, endpoint, model, network, or
terminal error is visible;dead_or_blank: pane is dead, blank, or its command exited;misframed: pane/layout/focus makes the provider state unobservable;unknown: evidence is insufficient.Pane text is evidence, not lifecycle, runtime, mailbox, or job authority. If text is blank or cannot classify a visual/layout failure, use a bounded CCB-owned screenshot fallback only. Never capture arbitrary desktop panes.
Return a concise result using this shape:
Status: ok|warn|error
Agent: <name>
Pane: working|waiting_input|stale_prompt|provider_update|provider_error|dead_or_blank|misframed|unknown
Suspected domain: daemon|pane|provider|job-chain|mailbox|config|storage
Authority: ...
Evidence: ...
Confidence: high|medium|low
Next action: ...
Blocked by: ...
Interpretation rules:
busy is healthy when the active job and pane show current progress.health=healthy|restored is insufficient if pane evidence shows a stale,
dead, or provider-error state.The user's explicit diagnose-and-fix request permits read-only inspection and low-risk supported repairs. Choose the least disruptive action and preserve the original target and lineage.
command ccb repair ack ... only when trace proves the reply is accepted.command ccb repair retry ... only when the original lineage remains valid.command ccb repair resubmit ... only after the old path is terminal or
cancelled and the user has separately confirmed possible business effects.command ccb restart "$AGENT" only for that
current graph agent.command ccb clear "$AGENT" only when context clearing is the diagnosed
fix and no active, queued, pending-reply, or callback work would be lost.Never restart all agents, run project shutdown, mutate tmux directly, write authority files, read secrets, or automatically duplicate a business task. When a gate blocks an action, report the blocker and stop.
After a repair, run the smallest relevant checks again:
command ccb trace <old_or_new_lineage_id>
command ccb queue --detail "$AGENT"
command ccb pend --inbox --detail "$AGENT"
command ccb ping "$AGENT"
Capture the target pane again when the repair concerns provider execution. Success requires the intended lineage/runtime state, no unexpected duplicate head, and pane evidence consistent with the result. A completed diagnostic is not the same as a recovered agent.
Create a local CCB-owned, redacted incident bundle containing the diagnosis, command outcomes, pane fingerprints/classification, relevant ids, and a stable failure fingerprint. Do not include API keys, tokens, full prompts, complete pane dumps, provider auth contents, or private absolute paths.
Show the proposed GitHub issue title and body to the user. Ask for a fresh, explicit confirmation of that exact redacted content. Only after confirmation may you use the repository's approved GitHub issue mechanism, for example:
gh issue create --repo SeemSeam/claude_codex_bridge \
--title "$ISSUE_TITLE" --body-file "$REDACTED_BODY_FILE"
If GitHub access or authorization is unavailable, retain the local bundle and report that no issue was submitted.
tmux send-keys, kill-pane, respawn-pane, or manual pane
creation.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Send a request to a CCB agent with `ask`.
中文简介正在准备中。当前显示原文说明。
Send a request to another CCB agent with `ask`.
中文简介正在准备中。当前显示原文说明。
Delegate work or request information from another CCB-managed agent using ask. Use when the user asks Grok to ask, delegate to, hand off to, consult, or send work to a named CCB agent, or when project memory requires CCB collaboration.
中文简介正在准备中。当前显示原文说明。
Submit one node result to the assigned Reviewer and finish only after a bounded pass/rework chain.
中文简介正在准备中。当前显示原文说明。
Execute one scoped implementation or investigation item and return evidence without changing workflow authority.
中文简介正在准备中。当前显示原文说明。
Execute one bounded CCB work item and report evidence without changing workflow authority.
中文简介正在准备中。当前显示原文说明。