Skip to content

feat(routing): unlock the Fable agent on any mention of Fable - #39

Merged
gborges0727 merged 1 commit into
mainfrom
feat/fable-any-mention
Sep 10, 2026
Merged

gborges0727 merged 1 commit into
mainfrom
feat/fable-any-mention

Conversation

@gborges0727

Copy link
Copy Markdown
Owner

The spawn hook let gborges-standard:fable-xhigh run only after a message that contained one of three exact @-mention strings, such as @agent-fable-xhigh. A user who typed "send this to fable xhigh" still got the spawn denied and pointed at opus-xhigh.

The Astra rule on the Codex side already unlocks on the bare word "astra". Both rules exist to stop the model from picking the expensive rung on its own. Neither needs the user to type the agent's full name.

What changed

  • The mention check in plugins/gborges-standard/hooks/plugin_config.py is now a case-insensitive word match on "fable", the same shape as the Astra match. "fables" does not match.
  • The deny reason in route-spawns.py says the message must name Fable instead of quoting the @-mention.
  • The agent description, the style's Subagents rule, the README, and the two routing docs describe the loosened rule and why it exists.
  • Three new tests in tests/test_hooks.py cover "fable xhigh", a capitalized "Fable", and the non-match on "fables". The old @-mention tests stay.
  • Rev 33 becomes 34 in the README and in scripts/cloud-bootstrap.sh.

Check

python3 -m unittest discover -s tests passes, 76 of 76.

The spawn hook let gborges-standard:fable-xhigh run only after a message
that contained one of three exact @-mention strings. A user who typed
'send this to fable xhigh' still got the spawn denied. The Astra rule on
the Codex side already unlocks on the bare word, and the two rules exist
for the same reason: the model must not pick the expensive rung on its
own. The user asking casually was never the problem.

The mention check is now a case-insensitive word match on 'fable', the
same shape as the Astra match. The deny reason, the agent description,
the style's routing rule, the README, and the two routing docs describe
the loosened rule. Three tests cover 'fable xhigh', a capitalized
'Fable', and the non-match on 'fables'. Rev 33 becomes 34.
@gborges0727
gborges0727 merged commit 4e671f3 into main Sep 10, 2026
2 checks passed
@gborges0727
gborges0727 deleted the feat/fable-any-mention branch September 14, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant