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 phnx-labsv0.1.2In 1 marketplace
self — operations an agent performs on its OWN session. `/self:close` cleanly self-terminates the current session by SIGTERM-ing the harness (the Bash tool shell's own parent, $PPID), after a read-only `ps` guard that refuses infra parents (shell/tmux/sshd) so it never tears down the wrong process. It is the low-level exit primitive: for a recap first use `/recap`, and to drive the current task to delivered use `/finish`. The exact `kill -TERM $PPID` form is allowlisted by the `self` permission group so it runs headlessly without an auto-mode prompt.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
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.
Operations an agent performs on its own session — the "self" namespace is for an agent acting on itself, not on code, the fleet, or the outside world.
| Command | What it does |
|---|---|
/self:close | Cleanly self-terminate this session — SIGTERM the harness so it flushes the transcript, saves state, and runs post-session hooks. Guarded so it never signals a shell / tmux / sshd parent. |
/self:hibernate | Hibernate THIS session until a future time, then wake it with full context (no transfer) to re-check a long wait — approval, deploy, review. |
/self:reflect | Recall every correction and constraint from the active conversation before revising work. Thin wrapper over the self:reflect skill. |
| Skill | What it does |
|---|---|
self:reflect | Recall all cumulative feedback, corrections, and constraints from the active conversation before rewriting or iterating. Portable — it loads by description match on every harness, not only where the /self:reflect command exists. Moved here from the flat skills/ list so the reflect skill lives with its command. |
/self:close — the exit primitiveThere is no /exit tool exposed to an agent. The only self-exit is signalling the harness
process directly: the Bash tool's shell has the harness as its parent ($PPID), and SIGTERM
is the clean path (unlike SIGKILL). /self:close is that primitive and nothing more — it
does not recap, verify, or clean up.
Build on it, don't reach past it:
/recap = summarize the session's state for handoff — does not exit. Run it before
/self:close when you want a recap on the way out./finish = drive the work to delivered (verify E2E, docs, commit, PR, close tickets) —
does not exit./self:close = just leave. Use it only when the work is genuinely wrapped or you were
asked to end the session — never to dodge unfinished work./self:close runs two calls: a read-only
ps -o comm= -p $PPID guard that refuses infra parents, then exactly kill -TERM $PPID.
That exact form is allowlisted by the self permission group
(permissions/groups/12-self.yaml), so in auto/headless
mode the self-exit is not blocked by the permission classifier — while the allow stays scoped to
this one form (direct parent, TERM only), never a general kill.
Registered in .claude-plugin/marketplace.json and
materialized into every installed agent version on agents sync. Enable it per agent to let
that agent end its own run.
Changing something here? Read ../AGENTS.md.
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.
npx claudepluginhub phnx-labs/.agents --plugin selfPlugins from other owners that cover similar ground