with one click
Generic /goal implementation for Devin CLI and OpenCode.
npx skills add https://github.com/javimosch/goal-mode --skill goal-modeCopy and paste this command into Claude Code to install the skill
Generic /goal implementation for Devin CLI and OpenCode.
npx skills add https://github.com/javimosch/goal-mode --skill goal-modeCopy and paste this command into Claude Code to install the skill
| name | goal-mode |
| description | Generic /goal implementation for Devin CLI and OpenCode. |
| triggers | ["user","model"] |
Generic /goal command implementation for Devin CLI, OpenCode, and Pi. Provides persistent session-scoped objectives that persist across turns with automatic continuation hooks.
Primary users: Devin CLI, OpenCode, Pi
Note for Pi: Pi has an alternative implementation via npm:@narumitw/pi-goal (available May 16) - if installed, do not use this repo to avoid conflicts.
The goal mode is bundled with Devin CLI and OpenCode. No installation needed for those tools.
/goal <objective> โ set active goal
/goal status โ show goal + continuation instructions
/goal pause / resume โ toggle continuation
/goal clear โ delete goal
/goal complete โ mark done (after audit)
/goal --tokens 250K <obj> โ set with soft token budget
See REFERENCE.md for detailed setup instructions for Devin CLI (Stop hook) and OpenCode (idle plugin).
Remove the Stop lifecycle hook from ~/.config/devin/config.json:
# Remove the "stop" hook from config.json
# Edit the file and remove the stop lifecycle hook section
Delete goal database and state:
rm -f ~/.config/devin/goal.db
Remove the idle plugin:
rm -f ~/.config/opencode/plugins/goal-continue.js
Delete goal database and state:
rm -f ~/.config/opencode/goal.db
Remove the goal skill directory:
rm -rf ~/.config/pi/skills/goal
Delete goal database and state:
rm -f ~/.config/pi/goal.db
Note: If using Pi's npm package (@narumitw/pi-goal), uninstall it instead:
npm uninstall -g @narumitw/pi-goal
The generic script auto-detects the calling CLI and stores per-tool isolated state in SQLite databases. See REFERENCE.md for full architecture details.