agent-name.sh claude-* gate rejects coily codex-/openclaw- names, silently falls back #106

Open
opened 2026-05-29 19:30:35 +00:00 by coilysiren · 0 comments
Owner

🤖 Filed by Claude Code on Kai's behalf.

scripts/agent-name.sh accepts the name from coily agent-name only when it matches claude-* (and is [a-z0-9-]-clean):

if [[ "$name" != claude-* || "$name" == *[^a-z0-9-]* ]]; then
  name="$(local_name)"
fi

So a coily-emitted codex-… or openclaw-… name is rejected and the script silently falls back to the claude-only local_name (now claude-…-she-her). The prefix-swap that FEATURES and the AGENTS doctrine describe ("Codex and OpenClaw swap the claude- prefix") was never actually wired through this gate.

Impact today: none. Codex and OpenClaw run their own harnesses, not this Claude Code status-line / SessionStart hook, so the gate only ever sees claude- names. Filed so the gap is tracked, not because it bites now.

Fix sketch: widen the accept pattern to claude-* | codex-* | openclaw-* (or validate the slug shape rather than the prefix), and teach local_name to derive the prefix + pronoun slug from the actual agent rather than hardcoding claude / she-her. Came out of the agent-pronouns work (#104, coilyco-bridge/coily#157).

🤖 Filed by Claude Code on Kai's behalf.

> 🤖 Filed by Claude Code on Kai's behalf. `scripts/agent-name.sh` accepts the name from `coily agent-name` only when it matches `claude-*` (and is `[a-z0-9-]`-clean): ```sh if [[ "$name" != claude-* || "$name" == *[^a-z0-9-]* ]]; then name="$(local_name)" fi ``` So a coily-emitted `codex-…` or `openclaw-…` name is rejected and the script silently falls back to the claude-only `local_name` (now `claude-…-she-her`). The prefix-swap that FEATURES and the AGENTS doctrine describe ("Codex and OpenClaw swap the `claude-` prefix") was never actually wired through this gate. **Impact today: none.** Codex and OpenClaw run their own harnesses, not this Claude Code status-line / SessionStart hook, so the gate only ever sees `claude-` names. Filed so the gap is tracked, not because it bites now. **Fix sketch:** widen the accept pattern to `claude-* | codex-* | openclaw-*` (or validate the slug shape rather than the prefix), and teach `local_name` to derive the prefix + pronoun slug from the actual agent rather than hardcoding `claude` / `she-her`. Came out of the agent-pronouns work (#104, coilyco-bridge/coily#157). > 🤖 Filed by Claude Code on Kai's behalf.
coilysiren added
P3
and removed
P2
labels 2026-05-31 07:00:04 +00:00
Sign in to join this conversation.
No labels
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
coilyco-flight-deck/agentic-os#106
No description provided.