Skip to content

feat(domain): 0.12.0 — restore auto-USE half (SessionStart inject) inside /domain#423

Merged
dancinlife merged 1 commit into
mainfrom
feat/domain-skill-hook
Jun 6, 2026
Merged

feat(domain): 0.12.0 — restore auto-USE half (SessionStart inject) inside /domain#423
dancinlife merged 1 commit into
mainfrom
feat/domain-skill-hook

Conversation

@dancinlife

Copy link
Copy Markdown
Contributor

0.11.0 unified TRAIN under /domain but dropped skillopt-hook's auto-inject, so
/domain activate wrote ~/.sidecar/domain-skill/active-skill.md that nothing
read. Port the proven SessionStart pattern into the domain plugin itself —
full parity (TRAIN + USE) now lives entirely under /domain, no revived plugin.

  • hooks/hooks.json: SessionStart → bin/_domain_skill_inject.sh
  • bin/_domain_skill_inject.sh: inject active-skill.md as additionalContext;
    optional agent-active marker appends the "PROPOSE /domain train" nudge;
    silent when nothing activated; never trains; always exit 0 (fail-open)
  • _domain_ml.sh: new agent-active on|off verb; activate wording de-hedged
  • domain.md: route agent-active to the ML dispatcher
  • validated: 3 hook cases (silent / inject body / inject + nudge) pass
  • g22 lockstep: plugin 0.12.0 ↔ marketplace 0.12.0 + CHANGELOG, same commit

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

…side /domain

0.11.0 unified TRAIN under /domain but dropped skillopt-hook's auto-inject, so
`/domain activate` wrote ~/.sidecar/domain-skill/active-skill.md that nothing
read. Port the proven SessionStart pattern into the domain plugin itself —
full parity (TRAIN + USE) now lives entirely under /domain, no revived plugin.

- hooks/hooks.json: SessionStart → bin/_domain_skill_inject.sh
- bin/_domain_skill_inject.sh: inject active-skill.md as additionalContext;
  optional agent-active marker appends the "PROPOSE /domain train" nudge;
  silent when nothing activated; never trains; always exit 0 (fail-open)
- _domain_ml.sh: new `agent-active on|off` verb; activate wording de-hedged
- domain.md: route agent-active to the ML dispatcher
- validated: 3 hook cases (silent / inject body / inject + nudge) pass
- g22 lockstep: plugin 0.12.0 ↔ marketplace 0.12.0 + CHANGELOG, same commit

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dancinlife dancinlife merged commit d948c66 into main Jun 6, 2026
@dancinlife dancinlife deleted the feat/domain-skill-hook branch June 6, 2026 21:22
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