Claude tmux cleanup protection
Reviews claude-tmux-cleanup runs that kill agent-team sessions or Claude Code processes.
command.claude-tmux · v1.0.0 · Other extensions
- Protection rules
- 2
- Permission checks
- 2
- Mapped commands
- 2
Overview
What this coverage does
Reviews claude-tmux-cleanup runs that kill agent-team sessions or Claude Code processes.
Key facts
- Catalog ID
command.claude-tmux- Version
- v1.0.0
- Kind
- Command coverage
- Category
- Other extensions
- Protection rules
- 2
- Permission checks
- 2
- Mapped commands
- 2
- Maintainer
- Community contributor(community, provenance recorded)
- Source commit
- e9630c7
- Protection model
- External · opt-in
External coverage. It must be enabled through Guard controls; this page does not activate it.
Stated limits
- Coverage is limited to the reviewed operations and the surrounding Guard policy.
- A maintainer profile is not a security certification or an official upstream endorsement.
Command mapping
Every command this extension recognizes, with the catalog default floor Guard applies before workspace policy. Search the table, then open an operation for safe variants and the permission ID.
2 operations · 2 reviewed by default These are catalog defaults, not your workspace policy.
Showing 2 of 2 operations
- Reviewed Guard intercepts the command for review before it runs.High
ctc --all --force --prune
Claude tmux unattended process prune
- Default floor
- Reviewed by default. Guard intercepts the command for review before it runs.
- Detector mode
- review
- What it matches
- Identifies claude-tmux-cleanup runs that kill Claude Code processes outside tmux without answering the confirmation prompt by hand. The scan runs after any session teardown in the same command, so it takes both the processes that teardown just orphaned and any that were already stray, including a Claude Code session started in a plain terminal that the caller never named.
- Documented safe variants
Claude tmux prune previewskip this operation when they are the documented preview or help form.- Permission ID
- command.claude-tmux.permission.process-prune
- Reviewed Guard intercepts the command for review before it runs.Medium
ctc --all --force
Claude tmux unattended session teardown
- Default floor
- Reviewed by default. Guard intercepts the command for review before it runs.
- Detector mode
- review
- What it matches
- Identifies claude-tmux-cleanup runs that kill tmux sessions without answering the confirmation prompt by hand — --force, or a pipeline feeding the prompt its consent. Every pane in a selected session is terminated, ending the agent teams running in them and discarding the unsaved terminal state they hold. With no target and no selection flag the run sweeps every session on the host.
- Documented safe variants
Claude tmux cleanup previewskip this operation when they are the documented preview or help form.- Permission ID
- command.claude-tmux.permission.session-teardown
Tool state mapping
No per-tool overrides are declared. Command defaults above resolve through the workspace Guard policy unless a later policy layer changes them.
Runtime identity
- Catalog ID
- command.claude-tmux
- Guard enforcement ID
- command.claude-tmux
- Source path
- contributions/extensions/command.claude-tmux.json
- Contribution digest
sha256…1058c3
Action classes
claude tmux session teardown commandclaude tmux process prune commandTechnical profile
Independent technical profile
- Profile content digest
- sha256:bdd16891dfa0126d707aae89d82d4274e4aceb0ab193056ccaacd64c464b4aab
- Profile source SHA
- 491436512ada08d1e0e0252d98a49db70cf23fc1
- Source version
- 1.0.0
- Native source path
- contributions/extensions/command.claude-tmux.json
- Native extension ID
- command.claude-tmux
- Runtime extension ID
- command.claude-tmux
- Contribution digest
- sha256:5abe34f2f375f15727c50ca8ccfa84c2c64efe026481ef0fbfbcf892671058c3
- Source contract fingerprint
- sha256:1de7b1c4bb222aabf2db4cff586407d15e21c4a595ee9b68f451129d57ae3ec3
Native contribution
Supported by reviewed source projectionSource version
Supported by reviewed source projectionRuntime capability
Supported by reviewed source projectionPermissions
Supported by reviewed source projectionThe reviewed catalog declares 2 extension permission(s).
Harness support
Unknown / self-reportedContributor-supplied harness support text is not independently verified. Checked with Claude Code running shell commands through HOL Guard's native runtime, using the extension's portable test cases. claude-tmux-cleanup needs tmux, so it is for macOS and Linux. Other agent harnesses are not checked yet.
- Claude Code (Bash tool), checked with the portable test cases
- macOS and Linux, wherever tmux and claude-tmux-cleanup run
- Other harnesses (Codex, Cursor, Gemini CLI and so on): not checked yet
Prerequisites
Unknown / self-reportedContributor-supplied prerequisite text is not independently verified. You need HOL Guard installed and connected to Claude Code, plus tmux and claude-tmux-cleanup (or its ctc shortcut). No accounts or keys are needed.
- HOL Guard installed and protecting Claude Code
- tmux installed
- claude-tmux-cleanup or ctc installed: https://github.com/s403o/claude-code-tmux
Expected outcomes
Unknown / self-reportedContributor-supplied expected-outcome text is not independently verified. The --dry-run command runs without a Guard prompt. The --force command is stopped for review before anything is killed, and denying it leaves every tmux session running. yes | ctc --all is stopped the same way.
Limitations
Supported by reviewed source projectionLimitations are copied from the reviewed catalog facts. Contributor-supplied limitation notes are not independently verified. Off by default until enabled. It does not catch consent from a here-string, heredoc or file redirect, or consent piped through tools other than cat. It does not review a person typing y at the prompt, and it does not check which sessions a run would pick.
- Coverage is limited to the reviewed operations and the surrounding Guard policy.
- A maintainer profile is not a security certification or an official upstream endorsement.
Residual effects
Unknown / self-reportedContributor-supplied residual-effect text is not independently verified. Nothing. The extension writes no files and keeps no state. Turning it off stops all its reviews right away.
Release evidence
Unknown / self-reportedNot known yet. The extension merged through hol-guard PR #2804, but the reviewed catalog does not record which Guard release first included it.
Controlled fixture proof (separate)
Unknown / self-reportedContributor assertion is not an authoritative fixture receipt. 31 portable test cases run through Guard's native evaluator: forced and piped runs are stopped, and dry-run, help, refusals and prompted runs are left alone.
Exact installation and activation guide
Commands are copied only when the reviewed source supplies an exact argv contract. Other guidance is labeled unknown and is not executed by this page.
Install
Unknown / self-reportedContributor-supplied install guidance is not independently verified because an exact reviewed argv contract is unavailable. Nothing extra to install. Claude tmux cleanup protection ships inside HOL Guard, so updating Guard is enough. It stays off until you turn it on (see Activation).
- 1
Install or update HOL Guard to a release that includes Claude tmux cleanup protection.
Self-reported / unavailable - 2
Open Guard's extension list and find Claude tmux cleanup protection, listed as External.
Self-reported / unavailable
Activation
Unknown / self-reportedContributor-supplied activation guidance is not independently verified because an exact reviewed argv contract is unavailable. Opt-in. It is an External extension, so it is off by default and protects nothing until you turn it on. Once enabled, it shows as on in Guard's extension list, and both rules (session teardown and process prune) start reviewing matching commands.
- 1
In Guard's extension list, turn on Claude tmux cleanup protection.
Self-reported / unavailable - 2
Check that it now shows as enabled, with both permissions on: session teardown and process prune.
Self-reported / unavailable
Safe fixture inputs
Unknown / self-reportedContributor-supplied safe fixture input guidance is not independently verified because an exact reviewed argv contract is unavailable. Use a throwaway tmux session so nothing real is at risk. First run a preview, which kills nothing. Then run the forced command and deny it when Guard asks.
- 1
Start a spare session: tmux new -d -s guard-test
Self-reported / unavailable - 2
Run ctc --all --dry-run. It only lists sessions, so nothing is killed.
Self-reported / unavailable - 3
Run ctc --all --force and choose deny when Guard asks for review.
Self-reported / unavailable
Disable / remove
Contributor-reported supportTurn off Claude tmux cleanup protection in Guard's extension list, or turn off just one of its two permissions. Nothing is installed separately, so there is nothing to uninstall.
FAQ
Frequently asked questions
Reviews claude-tmux-cleanup runs that kill agent-team sessions or Claude Code processes. The listing declares 2 rules and 2 permission checks. 2 operations · 2 reviewed by default. Coverage is limited to these reviewed operations and the surrounding Guard policy.
External · opt-in: External coverage. It must be enabled through Guard controls; this page does not activate it. Enabling state is always controlled through Guard policy, never from this directory.
This listing entered the catalog as a community contribution through a public pull request with recorded provenance, with public credit to @s403o, and 1 GitHub maintainer is recorded on the listing. Credit is attribution only. A verified publisher profile and the claim flow verify authority separately; neither is an upstream endorsement or a HOL safety certification.
No. Every listing documents source, activation model, maintainer identity, and stated limitations so you can evaluate coverage before enabling it. Review the stated limitations and the exact source tree before relying on any single control.
2 operations · 2 reviewed by default. Examples: ctc --all --force --prune (reviewed by default); ctc --all --force (reviewed by default). These are catalog defaults, not your workspace policy.
External coverage. It must be enabled through Guard controls; this page does not activate it. Enablement is managed through your workspace's Guard policy and controls — never from this directory. Open the install guidance for the setup flow, then adjust the command coverage for command.claude-tmux in Guard's policy surface.
The matching action is stopped at Guard's pre-action boundary before it executes, and the decision is recorded with evidence your workspace can review. Exact behavior follows your Guard policy combined with this entry's 2 rules and 2 permission checks.
No. Guard is local-first: interception, decisions, and evidence stay on your machine unless your workspace explicitly configures cloud features. This page is documentation only — it never executes a command or changes protection state.
Guard runs locally alongside the major AI coding agents and MCP-capable harnesses, so this coverage applies wherever Guard intercepts actions. See the supported harness guides at https://hol.org/guard/harnesses for per-tool approval behavior and limitations.
Guard has a free local tier that includes command interception, evidence, and the policy controls this listing documents. Team plans add shared policy, review queues, and audit surfaces. Current plans: https://hol.org/guard/pricing
Open an issue or pull request against the hol-guard repository, where the canonical catalog lives: https://github.com/hashgraph-online/hol-guard Listings are corrected through the same public review process that adds them.
Yes. Community extensions are merged through public pull requests with recorded provenance, and you can claim the publisher page for a contribution you maintain through the Publisher Studio.
The command mapping table is the audit trail for covered commands and catalog default floors. Pair it with the reviewed rule and permission counts, the per-tool state mapping, and the exact source tree linked from View exact source at the reviewed commit. Guard records enforcement decisions with evidence locally, so what ships matches what you reviewed.