Repository navigation
feat(hosts): natural-language auto-trigger — a plain build intent runs as /aladdin - #34
Merged
Merged
Conversation
…s as /aladdin
ROADMAP §4.11 (M8) listed "natural-language auto-trigger inside hosts" as open.
`bin/intent-trigger hook` on UserPromptSubmit adds context to treat a plain build/fix
request as `/aladdin "<intent>"` when it lands in an aloop project (docs/agents/ or a
run-data dir) with no live sprint lock. It stays quiet for questions, slash commands,
short replies, a live sprint (the prompt is feedback to the running loop) and non-aloop
repos, and is switched off with ALADDIN_AUTO_TRIGGER=off or `intent: {auto_trigger:
false}` in .aladdin/config.yaml. Always exit 0, never writes a file. Wired in hooks.json
(Claude Code, Codex) and in the OpenCode plugin (chat.message → next turn's system
prompt). Test-first: scripts/test/intent-trigger.test.py (7 checks). bin/README,
SKILL.md, OVERVIEW, ROADMAP §4.11 and M8, CHANGELOG updated. make ci: 60/60.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QxyVf3NgwsgRyYpBgDDTC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adeel · project thread
Before: ROADMAP §4.11 (M8, Aladdin 1.0) listed "natural-language auto-trigger inside hosts" as open. A user in an aloop project had to type
/aladdin "<intent>"or/aloopthemselves; a plain "add a CSV export to the report command" was answered as an ordinary chat request, outside the gated loop.After: a plain build/fix request in an aloop project with no sprint running gets hook context telling the host to treat it as
/aladdin "<intent>"(load the aladdin skill, run intake; the human still approves the plan). The hook stays quiet for questions, slash commands, short replies, a live sprint lock (the prompt is feedback to the running loop) and repos that are not aloop projects, and is switched off withALADDIN_AUTO_TRIGGER=offorintent: {auto_trigger: false}in.aladdin/config.yaml. It always exits 0 and never writes a file. Works on Claude Code and Codex through hooks.json and on OpenCode throughchat.message(the context goes into the next turn's system prompt).How:
plugin/bin/intent-trigger hook(python3, UserPromptSubmit) with a narrow imperative-verb / "I want" detector;intent.auto_triggeradded to the config map andAUTO_TRIGGERto theALADDIN_*alias keys. Test-first:scripts/test/intent-trigger.test.py(7 checks: trigger, silence cases, lock, switches, non-aloop repo, bad input, wiring). bin/README, SKILL.md hook lifecycle, OVERVIEW, ROADMAP §4.11 + M8 row and CHANGELOG updated.make ci: 60/60; OpenCode plugin test 20/20.Generated by Claude Code