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 gpambroziov0.1.5MIT
Run Claude Code sessions unattended: injects autonomous-work guidance on SessionStart, auto-confirms or auto-exits on Stop, and retries failed turns on StopFailure via tmux keystrokes.
Run automatically on Claude Code events. Claude doesn't decide.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
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.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
An alternative to claude -p for running unattended Claude Code sessions
that can be observed (and intervened in) live through tmux. The Claude
TUI runs as normal in a tmux pane, while a Claude Code plugin's hooks
drive the session toward completion autonomously.
When loaded into a session, the plugin installs four hooks:
hooks/session-start-context.sh, which injects
a short context message telling Claude to work autonomously rather than
dropping into plan mode or asking clarifying questions. The exact
wording depends on CLAUDE_AUTO_QUESTIONS_OK (see below).AskUserQuestion) — runs
hooks/handle-ask-question.sh. When CLAUDE_AUTO_QUESTIONS_OK is not
1, the hook denies the tool call with a stock "use your best
judgement and continue" reason that Claude sees in place of a tool
result. When the env var is 1, the call is allowed through.hooks/handle-stop.py, which reads the
last_assistant_message field from the hook input. If the message is
the literal word done, the script types /exit into the controlling
tmux pane to end the session; if Claude Code then shows its
"Background work is running" confirmation dialog (because background
tasks are still alive), the script presses Enter again to pick the
default "Exit anyway" option so the session really ends. Otherwise it
types a nudge prompt asking Claude to confirm it has nothing left to
do.hooks/handle-stop-failure.sh, which keeps a
per-session retry counter at $TMPDIR/<session-id>. Up to five
consecutive failures it types Up + Enter to re-submit the previous
prompt after a 10s wait. On the sixth failure it gives up and types
/exit, confirming the "Background work is running" dialog the same
way as the Stop handler if it appears.All keystroke side-effects target the current tmux pane via $TMUX_PANE,
so the wrapper script must be run from inside tmux. You do not have to
arrange that yourself: started outside tmux, claude-auto opens a fresh
session (autonomy-$$) and re-execs itself inside it, keeping the working
directory and forwarding its arguments untouched.
.claude-plugin/plugin.json plugin manifest
hooks/hooks.json hook registrations
hooks/session-start-context.sh SessionStart dispatcher
hooks/autonomous-context.txt SessionStart text when questions are OK
hooks/autonomous-context-no-questions.txt SessionStart text when questions are blocked
hooks/handle-ask-question.sh PreToolUse handler for AskUserQuestion
hooks/handle-stop.py Stop handler (Python 3)
hooks/handle-stop-failure.sh StopFailure handler (bash)
bin/claude-auto wrapper around `claude` + transcript dump
bin/claude-trust-seed pre-accepts the folder-trust dialog
bin/claude-trust-watch auto-confirms it if it shows anyway
bin/claude-transcript JSONL transcript -> readable narration
Starting claude in a directory it has not been trusted for pops a
blocking dialog before the session exists:
Quick safety check: Is this a project you created or one you trust?
> 1. Yes, I trust this folder
2. No, exit
No hook can answer it — the plugin isn't loaded yet at that point — and
the only supported way to skip it is non-interactive -p mode, which
Autonomy can't use because it needs the TUI. So claude-auto handles it
in two layers.
1. bin/claude-trust-seed (before launch). The trust record is just a
flag in ~/.claude.json:
{"projects": {"/path/to/dir": {"hasTrustDialogAccepted": true}}}
so the seeder sets it for $PWD up front and the dialog never appears.
This is the layer that matters for per-job worktrees like
<repo>-worktree-issue-71, whose paths are unique per run and therefore
can't be trusted in advance. Writes are flock-serialised and atomic, and
a config that isn't valid JSON is refused rather than overwritten. A
failure here is not fatal — it just falls through to layer 2.
Because it pre-accepts a security prompt, point it only at directories you already control: your own repo, checked out in a throwaway VM.
2. bin/claude-trust-watch (fallback). Polls tmux capture-pane and
presses Enter on the default-highlighted "Yes, I trust this folder"
option, covering the cases the seeder can't — a Claude that rewrites the
config underneath us, or a seed that failed. If the dialog never appears
(now the normal case) it gives up quietly after 60 seconds.
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.
Generated from the plugin's indexed repository (gpambrozio/autonomy) — no native marketplace selected
npx claudepluginhub p/gpambrozio-autonomyPlugins from other owners that cover similar ground