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

Closed
opened 2026-05-29 19:30:35 +00:00 by coilysiren · 1 comment
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.
Author
Owner

Backlog burndown 2026-06-17: closing low-priority (P3/P4) to bring the open count to a manageable level. Nothing lost — reopen if this resurfaces. Batch tag: burndown-2026-06.

Backlog burndown 2026-06-17: closing low-priority (P3/P4) to bring the open count to a manageable level. Nothing lost — reopen if this resurfaces. Batch tag: `burndown-2026-06`.
coilysiren 2026-06-17 08:23:11 +00:00
Sign in to join this conversation.
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.