Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By RyanKim17920v0.1.0MITIn 1 marketplace
Keeps a session's standing goal (and the native /goal condition) fresh in long sessions by re-injecting a short reminder on turns already happening, and lets the goal be updated through discussion (goal_update tool, /goal-refresh).
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Refresh every N turnseveryTurns
Re-inject the goal reminder after this many main-thread turns since the last one. 0 turns this trigger off.
numberdefault 10
Show the goal in the status lineshowStatus
Show a truncated goal in the status line while one is set.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Show toastsshowToasts
Show a toast with the old and new goal each time the model updates it.
booleandefault true
Refresh after compactionafterCompact
Re-inject the goal reminder at the first chance after the main conversation is compacted.
booleandefault true
Include the native /goal conditionmirrorNativeGoal
Read the active /goal stop condition from the session transcript and include it in the reminder and status line.
booleandefault true
Re-read the transcript after this many minutesnativeReadMinutes
Once a native /goal has been seen, a main-thread turn re-reads the transcript for it at most this often; a compaction, a resume, /goal, SetGoal and each reminder read it at once. 0 reads on every turn.
numberdefault 10
Refresh after this many minutesminIntervalMinutes
Re-inject the goal reminder once this many minutes have passed since the last one (at least one turn in between). 0 turns this trigger off.
numberdefault 20
System notificationssystemNotifications
Also send a macOS notification each time the model updates the goal.
booleandefault false
Keeps a session's standing goal in the model's attention during long sessions (loops, monitoring, many subagent notifications), and lets the goal be changed by talking it over with Claude.
After adding the marketplace (see Install in the main README):
claude plugin install goal-refresh@ryk-claude-mods
Or add the marketplace and install in one step:
claude plugin install goal-refresh --marketplace RyanKim17920/ryk-claude-mods
/goalChecked against Claude Code 2.1.330 (its binary, a real transcript and code.claude.com/docs/en/goal):
/goal <condition> is a session-scoped prompt Stop hook. A separate evaluator checks the condition each time the model tries to end a turn; the condition lives in memory and in goal_status rows of the transcript, so a resume restores it.GetGoal/SetGoal tools exist but only behind the model-proposed-goals flag, which is off by default.So this mod:
goal_status row, met or failed means none). It also notices /goal … as you type it, and SetGoal. The reminder includes the native condition.$.store.A short note ("Standing goal: …; Current sub-goals: …; Last updated 2h ago (reason). Active /goal stop condition: …") is attached as hidden context to something already happening. That can be a prompt being submitted (typed, a task notification or a loop tick) or a main-thread tool result in a long turn. The mod never submits a prompt, so an idle session stays idle. The reminder is due:
everyTurns main-thread turns since the last one;afterCompact) and after a start, resume or hot reload;minIntervalMinutes have passed, with at least one turn in between.It is never given twice with nothing in between. Subagents never get it and their turns don't count. A session with no goal and no native /goal pays nothing: there is no reminder or status, and the transcript is read once at start. Once a native /goal has been seen, a main-thread turn re-reads the transcript at most every nativeReadMinutes (10); a compaction, a resume, /goal, SetGoal, /goal-refresh show and each reminder read it at once.
/goal-refresh set <goal> set this session's standing goal
/goal-refresh subgoals <a | b> replace the sub-goals (empty clears them)
/goal-refresh show goal, native /goal, last reminder
/goal-refresh history last 20 changes, newest first
/goal-refresh clear clear goal and sub-goals
The mod registers a deferred model tool, goal_update({ goal?, subgoals?, clear?, reason }) (mcp__<plugin>__goal_update: mcp__goal-refresh__goal_update as shipped; a renamed copy gets its own name, which the mod takes from the registration). Its description tells the model to call it only after you have explicitly agreed in conversation, and never on its own initiative. So you say "let's make the goal X, with sub-goals A and B", Claude proposes it, you say yes, and Claude calls the tool. Each update shows a toast with the old and new goal and is logged to /goal-refresh history. Main thread only. Goal ≤1000 chars, ≤10 sub-goals of ≤300 chars, history capped at 20; the store keeps the 200 most recent sessions.
| Option | Default | What it does |
|---|---|---|
everyTurns | 10 | Refresh after this many main-thread turns (0 = off) |
afterCompact | true | Refresh after a compaction |
minIntervalMinutes | 20 | Refresh after this many minutes (0 = off) |
mirrorNativeGoal | true | Read and include the native /goal condition |
nativeReadMinutes | 10 | Least minutes between transcript re-reads on main-thread turns (0 = every turn) |
showStatus | true | Status line shows the truncated goal |
showToasts | true | Toast on each goal_update |
systemNotifications | false | Also send a macOS notification on each goal_update |
Every hook fails open. An error passes the event through unchanged.
claude plugin disable goal-refresh@ryk-claude-mods, or /goal-refresh clear to stop it in one session.
npx claudepluginhub ryankim17920/ryk-claude-mods --plugin goal-refreshBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground