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 kattakathv1.6.3MITIn 1 marketplace
One named background Claude Code session per git repo, named `<host>:<owner>/<repo>`. In attended sessions (or with PROJECT_SESSIONS_AUTO=1) the hooks create or resume it themselves, detached: SessionStart resumes a stopped one and names it, UserPromptSubmit adds one line per prompt and creates a missing one in the caller's permission mode. `project-session ensure` finds it in `claude agents --json --all` by name AND repo root and resumes only by bare full session id (the only form that does not start a copy). The main session hands work over with SendMessage. A second skill, project-shape, checks the repo is a valid Claude Code project.
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
sessions, background, agents, sendmessage, remote-control, hooks
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
One named background Claude Code session per git repo. The main interactive session hands
work to it with SendMessage and keeps only coordination.
/plugin install project-sessions --marketplace kattakath/skills
| Part | What it does |
|---|---|
bin/project-session | name, ensure, status. bash 3.2 + git + jq; macOS and Linux; no Nix |
bin/ghostty-split | Runs (or types, --type-only) a command in a Ghostty split below the focused pane; macOS (osascript). ensure uses it for the trust prompt. Ported from kattakath/nix-config packages/ghostty-split.nix (b4c732a5), with the exit codes moved to nix-dev-toolkit's CLI contract: 2 usage (was 64), 3 Ghostty unavailable (was 69), 4 --wait timed out (--timeout SECS, default 3600; new here), and --help on stdout with exit 0 (it was a usage error). |
hooks/session-start | SessionStart: in auto mode, resumes a stopped session (detached) and names it; otherwise names it and the skill |
hooks/user-prompt-submit | UserPromptSubmit, auto mode only: one line per prompt; creates a missing session in the caller's mode (detached) |
hooks/lib.sh | Shared by the two: the gate, the 2 s bound, the detached ensure |
hooks/pre-tool-use | PreToolUse (Bash): adds the caller's --permission-mode to a project-session ensure call that names none |
skills/project-sessions | Hand the task over with SendMessage and relay the result; ensure by hand when not in auto mode |
skills/project-shape | Check the repo's CLAUDE.md and .claude/settings.json; scaffold them on a yes |
<host>:<owner>/<repo> from git remote get-url origin: https, git@host:o/r and
ssh://user@host:port/o/r all give the same name, nested groups kept, .git dropped.
No remote: local:<repo root>. A worktree maps to its main repo through
git rev-parse --git-common-dir, so it shares the main repo's session.
ensure matches the name and the repo root of each
row's cwd, and reports duplicates on stderr. It never stops or deletes one.claude --bg --resume <full sessionId> with
no other flag. By name, by short id or with any extra flag it starts a copy, and by name
the copy also loses the name. ensure uses only the bare form.claude agents --json --all already holds the state; a second copy
would drift. Ids never reach stdout unless --debug.--bg refuses an untrusted folder. The operator trusts the folder once by running
claude there.
ensure opens that claude itself through this plugin's own
bin/ghostty-split, in a
Ghostty split below his focused pane (ghostty-split --cwd <repo> -- claude). It exits
6 with "the trust prompt is open in a Ghostty split below; accept it there, then
retry". It never waits: claude stays open, so --wait would block on it.CI is set, and only with a TTY on stdin
or TERM_PROGRAM=ghostty. The Bash tool and the hooks have no TTY, so the inherited
TERM_PROGRAM is the signal there.PROJECT_SESSION_SPLIT_QUIET_S), so a retry
can't loop.ghostty-split failing,
e.g. exit 3 with Ghostty not running or no osascript), Claude Code's message passes through verbatim, as
before.claude, which no deny or ask rule
guards. A guarded command would have to go through ghostty-split --type-only, so the
split is never a way around a guard.ensure sets no task list (since 1.4.0).--bg session, but it can reach
the daemon.
claude --bg hands the session to the long-lived claude daemon (or a spare it
pre-started).
--settings, and 1.4.0 dropped the custom list.ps eww on the running daemon showed
CLAUDE_CODE_TASK_LIST_ID=github.com:kattakath/nix-config, inherited from the 00:31
claude --bg that started it.ensure still scrubs the variable (env -u) on create and resume.npx claudepluginhub kattakath/skills --plugin project-sessionsPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.