/agentic-behavior:restartfrom agentic-behavior
Restarts the Claude Code session by gracefully exiting so a launcher script restarts it. Useful after config changes, plugin updates, or env var changes.
Ships in agentic-behavior. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill enables Claude to restart its own session by performing a graceful exit (SIGINT), relying on the launcher script to restart the process.
Restart is simply an exit with the expectation that a launcher script will restart Claude:
/exit (no uncommitted changes, no unpushed commits)run-agent.sh) detects the exit and starts a new Claude sessionwhile true loop)Use the exit script -- restart is just exit with launcher support:
${CLAUDE_PLUGIN_ROOT}/bin/exit.sh
Before restarting, you may want to save state so the new session can resume:
.claude/tmp/continuation-prompt.md.claude/scratch/tasks.md with current progressThe launcher script or SessionStart hook can then read the continuation prompt on startup.
| Aspect | /exit | /restart |
|---|---|---|
| Intent | End the session | Restart with fresh state |
| Mechanism | SIGINT | SIGINT (same) |
| Launcher behavior | Session ends | Launcher restarts Claude |
| State preservation | Not expected | Save continuation prompt |
| Git validation | Required | Required |
/exit -- graceful session exit without restartrestart skill in the project repo -- may contain project-specific restart proceduresWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nsheaps/ai-mktpl --plugin agentic-behavior9 skills in this plugin
/brainGit-backed memory and prompt tracking with self-checking reminders. Auto-saves prompts, syncs memory to git, and implements the Ralph loop pattern for work validation./claude-codeReference material for Claude Code internals — the on-disk layout under ~/.claude and project-scope .claude, the plugin cache, session-env propagation, and the full hook lifecycle. Auto-recall when working on Claude-Code-related tasks: writing or debugging hooks, authoring plugins, inspecting session state, troubleshooting why an env var is or isn't visible to a Bash tool call, or when paths under ~/.claude or ~/.claude/plugins/ come up./continue-workOther plugins' skills for the same job