Add current-goal mod #8

Merged
trtmn merged 1 commit from add-current-goal-mod into main 2026-10-07 17:51:10 +00:00
Owner

Adds plugins/current-goal, a hooks-only mod that shows the session's current goal in light blue (blueBright) as ◎ Goal: <condition>, under the last-message line above the prompt input.

  • Records the goal from /goal <condition> (command.run) and from model-proposed goals (ProposeGoal via tool.call); /goal clear|off|none|reset|stop|cancel removes it.
  • Draws in the AbovePrompt band by calling next(e) and stacking its line beneath whatever the band already shows (e.g. last-message); alone otherwise.
  • Registered in .claude-plugin/marketplace.json (alphabetical, before font-extractor). No SKILL.md/agents/setup: hooks-only.

Verification

  • claude plugin validate passes on the marketplace and plugin (only the missing-author warning every plugin has). PII sweep over the staged diff: clean.
  • Checked visually in a live session: /goal set the line, and it cleared with the goal.
  • No automated tests: a claude plugin test suite could not mount the band without a stand-in ui.render tree, so it was dropped.

Known limits

The plugin API has no read of the current goal, so the mod only sees goals set after it loads. A goal active at load or restored on resume will not show. A declined ProposeGoal approval may still display.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T6Ct6PS5eZDp84PXtGMgGJ

Adds `plugins/current-goal`, a hooks-only mod that shows the session's current goal in light blue (`blueBright`) as `◎ Goal: <condition>`, under the last-message line above the prompt input. - Records the goal from `/goal <condition>` (`command.run`) and from model-proposed goals (`ProposeGoal` via `tool.call`); `/goal clear|off|none|reset|stop|cancel` removes it. - Draws in the `AbovePrompt` band by calling `next(e)` and stacking its line beneath whatever the band already shows (e.g. `last-message`); alone otherwise. - Registered in `.claude-plugin/marketplace.json` (alphabetical, before `font-extractor`). No SKILL.md/agents/setup: hooks-only. ## Verification - `claude plugin validate` passes on the marketplace and plugin (only the missing-`author` warning every plugin has). PII sweep over the staged diff: clean. - Checked visually in a live session: `/goal` set the line, and it cleared with the goal. - No automated tests: a `claude plugin test` suite could not mount the band without a stand-in `ui.render` tree, so it was dropped. ## Known limits The plugin API has no read of the current goal, so the mod only sees goals set after it loads. A goal active at load or restored on resume will not show. A declined ProposeGoal approval may still display. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T6Ct6PS5eZDp84PXtGMgGJ
trtmn merged commit c671a48119 into main 2026-10-07 17:51:10 +00:00
Sign in to join this conversation.
No reviewers
No labels
CR1
CR2
CR3
CR4
CR5
P0
P1
P2
P3
P4
P5
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
trtmn/agent-plugins!8
No description provided.