cc-mod-park
Reviewed
at commit 6da8627
New version, not yet reviewed
Caution: Rewrites your ~/.claude/settings.json after a resume to put back default model and effort, and saves session titles taken from your prompts under ~/.local/state.
/park a session you will come back to; a new session in the same folder offers it back with one click.
0 upvotes
Log in to upvote or save- Made by
- gggodlin
- Pinned commit
-
6da8627b4410db9aeb4dd5039df4ffcd08a8535c - What we checked
-
Adds /park, which saves the current session (title, goal notes, model, effort, folder, branch) to a list on disk and exits; a new session in the same folder shows a button to resume it. After a resume it checks your Claude settings file and rewrites it if the resume changed your default model or effort. No network calls.
Review details
Static review of the source at the pinned commit; not run. Delta review of the changes since a6d1dd5; the rest carries over from the review at that commit. Change: the folder an entry belongs to is now $.session.root() instead of $.session.cwd() (in session.start, /park and the list refresh after resume or remove), so a parked session shows in the project root even after a shell cd; the transcript lookup tries the root-based project folder first and the cwd-based one second. Registers session.start, command.run (park), turn.step, prompt.submit and ui.render (AbovePrompt button and a pane). Runtime calls: $.process.run for git (rev-parse, branch --show-current), mkdir -p and realpath; $.fs.read/exists/write; $.env.get (HOME, LC_ALL, LANG, CLAUDE_CONFIG_DIR); $.command.run for exit, resume, model and effort; $.session.* (id, root, cwd, model, messages); $.clock; $.ui. Writes ~/.local/state/cc-mod-park/parked.json, holding the session id, folder, branch, a title (your note, else an AI title from the session transcript, else the first 40 characters of your first prompt), and goal/now/next lines read from ~/.cache/cc-recap/<id>.json. Reads the session transcript under ~/.claude/projects, ~/.local/state/herdr-session-title/state.json and ~/.cache/cc-recap. After a resume it reads ~/.claude/settings.json (real path via realpath), compares model and modelSettings.<model>.effortLevel with the values from before the resume, and if they differ rewrites the whole file with JSON.stringify (removing or restoring those keys); it skips the write when the file is unreadable, and re-reads to verify. Another writer changing the same keys in that window is also overwritten, and formatting of the file is normalized. The mod itself triggers /exit after /park and /resume, /model and /effort after a resume, using short timers. Nothing is sent over the network; no npm dependencies.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/cc-mod-park/)