Skip to content

Commit 94c4d7b

Browse files
SeemSeamclaude
andcommitted
Update CLAUDE.md prompt injection to use unified commands
- Replace old commands (cask/gask/oask, cping/gping/oping, cpend/gpend/opend) with unified commands (ask <provider>, ping <provider>, pend <provider>) - Add Droid to the command map - Update examples to use new command format Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent faab5e3 commit 94c4d7b

2 files changed

Lines changed: 26 additions & 21 deletions

File tree

install.ps1

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -513,24 +513,28 @@ Fast path (minimize latency):
513513
- If the user message is only the prefix (no question): ask a 1-line clarification for what to send.
514514
515515
Actions:
516-
- Ask a question (default) -> ``Bash(@"`n<question>`n"@ | <cask|gask|oask>, run_in_background=true)``, tell user "ASSISTANT processing (task: xxx)", then END your turn
517-
- Check connectivity -> run ``PING_CMD``
518-
- Use blocking/wait or "show previous reply" commands ONLY if the user explicitly requests them
516+
- Ask a question (default) -> ``Bash(`$env:CCB_CALLER='claude'; ask <provider> <<'EOF' ... EOF)``, tell user "PROVIDER processing...", then END your turn
517+
- Check connectivity -> run ``ping <provider>``
518+
- Use "show previous reply" commands ONLY if the user explicitly requests them
519519
520520
Important restrictions:
521521
- After starting a background ask, do NOT poll for results; wait for ``bash-notification``
522-
- Do NOT use ``*-w`` / ``*pend`` / ``*end`` unless the user explicitly requests
522+
- Do NOT use ``pend`` unless the user explicitly requests
523523
524-
### Command Map
524+
### Command Map (Unified Commands)
525525
| Assistant | Prefixes | ASK (background) | PING_CMD | Explicit-request-only |
526526
|---|---|---|---|---|
527-
| Codex | ``@codex``, ``codex:``, ``ask codex``, ``let codex``, ``/cask`` | ``@"`n<question>`n"@ | cask`` | ``cping`` | ``cpend`` |
528-
| Gemini | ``@gemini``, ``gemini:``, ``ask gemini``, ``let gemini``, ``/gask`` | ``@"`n<question>`n"@ | gask`` | ``gping`` | ``gpend`` |
529-
| OpenCode | ``@opencode``, ``opencode:``, ``ask opencode``, ``let opencode``, ``/oask`` | ``@"`n<question>`n"@ | oask`` | ``oping`` | ``opend`` |
527+
| Codex | ``@codex``, ``codex:``, ``ask codex``, ``let codex`` | ``CCB_CALLER=claude ask codex <<'EOF' ... EOF`` | ``ping codex`` | ``pend codex`` |
528+
| Gemini | ``@gemini``, ``gemini:``, ``ask gemini``, ``let gemini`` | ``CCB_CALLER=claude ask gemini <<'EOF' ... EOF`` | ``ping gemini`` | ``pend gemini`` |
529+
| OpenCode | ``@opencode``, ``opencode:``, ``ask opencode``, ``let opencode`` | ``CCB_CALLER=claude ask opencode <<'EOF' ... EOF`` | ``ping opencode`` | ``pend opencode`` |
530+
| Droid | ``@droid``, ``droid:``, ``ask droid``, ``let droid`` | ``CCB_CALLER=claude ask droid <<'EOF' ... EOF`` | ``ping droid`` | ``pend droid`` |
530531
531532
Examples:
532-
- ``codex: review this code`` -> ``Bash(@"`nreview this code`n"@ | cask, run_in_background=true)``, END turn
533-
- ``is gemini alive?`` -> ``gping``
533+
- ``codex: review this code`` -> ``Bash(CCB_CALLER=claude ask codex <<'EOF'
534+
review this code
535+
EOF
536+
)``, END turn
537+
- ``is gemini alive?`` -> ``ping gemini``
534538
<!-- CCB_CONFIG_END -->
535539
"@
536540

install.sh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -903,27 +903,28 @@ Fast path (minimize latency):
903903
- If the user message is only the prefix (no question): ask a 1-line clarification for what to send.
904904
905905
Actions:
906-
- Ask a question (default) -> `Bash(<cask|gask|oask> <<'EOF' ... EOF, run_in_background=true)`, tell user "`ASSISTANT` processing (task: xxx)", then END your turn
907-
- Check connectivity -> run `PING_CMD`
908-
- Use blocking/wait or "show previous reply" commands ONLY if the user explicitly requests them
906+
- Ask a question (default) -> `Bash(CCB_CALLER=claude ask <provider> <<'EOF' ... EOF)`, tell user "`PROVIDER` processing...", then END your turn
907+
- Check connectivity -> run `ping <provider>`
908+
- Use "show previous reply" commands ONLY if the user explicitly requests them
909909
910910
Important restrictions:
911911
- After starting a background ask, do NOT poll for results; wait for `bash-notification`
912-
- Do NOT use `*pend` / `*end` unless the user explicitly requests
912+
- Do NOT use `pend` unless the user explicitly requests
913913
914-
### Command Map
914+
### Command Map (Unified Commands)
915915
| Assistant | Prefixes | ASK (background) | PING_CMD | Explicit-request-only |
916916
|---|---|---|---|---|
917-
| Codex | `@codex`, `codex:`, `ask codex`, `let codex`, `/cask` | `cask <<'EOF' ... EOF` | `cping` | `cpend` |
918-
| Gemini | `@gemini`, `gemini:`, `ask gemini`, `let gemini`, `/gask` | `gask <<'EOF' ... EOF` | `gping` | `gpend` |
919-
| OpenCode | `@opencode`, `opencode:`, `ask opencode`, `let opencode`, `/oask` | `oask <<'EOF' ... EOF` | `oping` | `opend` |
917+
| Codex | `@codex`, `codex:`, `ask codex`, `let codex` | `CCB_CALLER=claude ask codex <<'EOF' ... EOF` | `ping codex` | `pend codex` |
918+
| Gemini | `@gemini`, `gemini:`, `ask gemini`, `let gemini` | `CCB_CALLER=claude ask gemini <<'EOF' ... EOF` | `ping gemini` | `pend gemini` |
919+
| OpenCode | `@opencode`, `opencode:`, `ask opencode`, `let opencode` | `CCB_CALLER=claude ask opencode <<'EOF' ... EOF` | `ping opencode` | `pend opencode` |
920+
| Droid | `@droid`, `droid:`, `ask droid`, `let droid` | `CCB_CALLER=claude ask droid <<'EOF' ... EOF` | `ping droid` | `pend droid` |
920921
921922
Examples:
922-
- `codex: review this code` -> `Bash(cask <<'EOF'
923+
- `codex: review this code` -> `Bash(CCB_CALLER=claude ask codex <<'EOF'
923924
review this code
924925
EOF
925-
, run_in_background=true)`, END turn
926-
- `is gemini alive?` -> `gping`
926+
)`, END turn
927+
- `is gemini alive?` -> `ping gemini`
927928
<!-- CCB_CONFIG_END -->
928929
AI_RULES
929930
local ccb_content

0 commit comments

Comments
 (0)