This release is a pre-release and may not be stable for production use.
autorun
An AI coding agent left alone stops mid-task, calls a first draft done, and runs
commands such as rm -rf or git reset --hard. autorun adds hooks that send it
back to work and block those commands. It supports Claude Code, Codex, Qwen
Code, Pi, Prime Agent, ForgeCode, OpenCode, Antigravity and the legacy Gemini CLI.
Install
uv tool install autorun-ai # installs the `autorun` command
autorun --install # adds hooks, commands and skills to every agent it finds
autorun --status # checks each install and runs the hook command once
Then start a new agent session and type /ar:help (ar:help in Codex) to
see the command list.
autorun --install-dry-run previews the writes. autorun --uninstall removes
what autorun installed, including the autorun-ai tool, and stops its
background daemon; it keeps ~/.autorun (session state, task history and logs).
Other routes:
uv tool install 'git+https://github.com/ahundt/autorun.git#subdirectory=plugins/autorun' # from GitHub
claude plugin marketplace add https://github.com/ahundt/autorun.git # Claude Code only
claude plugin install ar@autorun
uv tool install 'autorun-ai[pdf]' # adds the PDF backends for `extract-pdfs`
The pdf-extractor agent plugin's extraction code ships in this package, behind
the pdf extra.
What each agent gets
If the daemon is busy, unreachable, misses a deadline or cannot evaluate state,
overload_policy=critical-guards (default) allows ordinary commands and
non-shell tools with a notice and runs the built-in destructive-command guards
locally for shell tools. No session state is read: /ar:no rules, /ar:ok
grants, the file policy, and task and plan gating are not checked until autorun
answers again. A guarded command stays blocked even with a grant. A cheap screen
lets ordinary commands such as git status proceed even with no check budget.
If the full check fails or is late, only a command that names a guarded command
as a whole word, or uses shell syntax that can spell one indirectly, is denied
with wait-and-retry guidance.
Do not restart the daemon under load.
The overload_policy key in ~/.autorun/autorun.config.json accepts
critical-guards, block (deny every tool-gate call) and allow (allow every
call without local guards); AUTORUN_OVERLOAD_POLICY overrides the file.
Unknown values use critical-guards and appear in autorun --status.
If the Python package cannot be imported, the stdlib hook still denies tool
calls with repair guidance because it has no guard code. Stop and other
non-gate events keep their existing behavior.
| Agent | Safety hook | Keeps working past Stop | Commands and skills |
|---|---|---|---|
| Claude Code | native hooks | yes | native |
| Codex | native hooks | yes | Codex plugin and skills |
| Qwen Code | native hooks | yes | native extension |
| Antigravity | native hooks | the events Antigravity offers | native extension |
| OpenCode | in-process tool veto | yes on 0.6.0+, through session.idle; older clients only show the reason. Its todo list is mirrored into task status |
command files and skills |
| Pi | in-process tool veto | agent_settled continuation and task tools |
one local package containing the extension and skills |
| Prime Agent | the Pi extension below 0.10.0; none on 0.10+ | as Pi below 0.10.0; no on 0.10+ | below 0.10.0, one local package containing the extension and skills; on 0.10+, guidance and skills |
| ForgeCode | advice only | no | command files and skills |
| Legacy Gemini CLI | native hooks | yes | native extension |
autorun's messages use each agent's spelling: /ar: in Claude, Gemini CLI,
Qwen Code and Antigravity, /ar in Pi, ar: in Codex, and /ar- in ForgeCode and OpenCode.
Documentation: https://github.com/ahundt/autorun. Development setup and
tests: AGENTS.md.
Licensed under Apache 2.0; see LICENSE.
Metadata
Release files for autorun-ai 1.0.0rc4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| autorun_ai-1.0.0rc4.tar.gz | 2.3 MB | With provenance | Details for autorun_ai-1.0.0rc4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autorun_ai-1.0.0rc4-py3-none-any.whl | Python 3 | none | any | Details for autorun_ai-1.0.0rc4-py3-none-any.whl |
Total release size: 3.4 MB
Release files / autorun_ai-1.0.0rc4.tar.gz
| Download URL | autorun_ai-1.0.0rc4.tar.gz |
|---|---|
| Size | 2.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b9ec515eecb4720696de50664d4ee43f0696af2c298018ecd8f51d386831de9
|
|
BLAKE2b-256 checksum How to use checksums |
26d065eea23fb06ac0f5f990d5c80430f36e101ddb5bad14f4967a84c1cd9aed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logRelease files / autorun_ai-1.0.0rc4-py3-none-any.whl
| Download URL | autorun_ai-1.0.0rc4-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc5602ec7fd0dc6b969bf043bec3509b6e302f3e2970df2d01b9a5d5ad8d6dc7
|
|
BLAKE2b-256 checksum How to use checksums |
03c2f7232203ec1bf7f3998345ad15c1a1f7e109b0a0bb11f337fe620b50bbe3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logSecurity for autorun-ai 1.0.0rc4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for autorun_ai-1.0.0rc4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.