Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
PluginCẩn thậnQuy trình & bộ nhớ agentCần cài đặt chút

autorun

ahundt · ahundt/autorun

Một plugin Claude Code giúp tăng cường an toàn cho agent AI với chính sách tệp và bảo vệ lệnh, cho phép lập kế hoạch tốt hơn và đảm bảo các tác vụ chạy đến khi hoàn thành.

Plugin Claude Code & codex + tiện ích mở rộng Gemini cli để giữ cho AI hoạt động, giữ an toàn dữ liệu, lập kế hoạch tốt hơn và tiếp tục hoạt động cho đến khi hoàn thành nhiệm vụ.

12 sao1Giấy phép: Không có giấy phépCập nhật 13 ngày trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Ngăn chặn một agent AI vô tình xóa các tệp quan trọng trong quá trình phát triển.
  • Đảm bảo một tác vụ mã hóa dài hạn của agent AI tự động tiếp tục nếu bị gián đoạn.
  • Yêu cầu agent AI đánh giá kế hoạch phát triển của chính nó trước khi bắt đầu thực hiện.

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Trình cài đặt tải script từ xa và chạy thẳng bằng shell.README.md
  • ●Không có giấy phép rõ ràng: hỏi tác giả trước khi dùng cho sản phẩm thương mại.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

autorun

Key Features

  • Tool calls pass through native safety hooks on Claude Code, Antigravity, Qwen Code, and Codex. Pi and OpenCode use in-process vetoes; ForgeCode receives advisory guidance.
  • File policies control whether an agent may create files. Command guards turn rm into trash guidance and git reset --hard into git stash guidance.
  • Stop hooks resume incomplete tasks on supported harnesses. Use /ar:tasks pause <reason> to suspend reminders and Stop enforcement without changing task state.
  • Planning is optional. For work that needs it, autorun can critique a plan and run separate implementation, evaluation, and verification stages.
  • The command and skill bundle includes plan export, task tracking, commit guidance, design principles, and session-history analysis.

Quick Start

# Install the published package with UV. The distribution is `autorun-ai`;
# the command it installs is `autorun`, and the harness commands are `/ar:*`.
uv tool install autorun-ai
autorun --install
# "autorun: command not found"? uv's tool directory (~/.local/bin by default)
# is not on your PATH yet: run `uv tool update-shell`, open a new terminal.

# Verify installation
/ar:st
# Expected: "AutoFile policy: allow-all"

# See every command in your harness's own spelling
/ar:help

Upgrading is the same two commands, which install the newest release. Add [pdf] ('autorun-ai[pdf]') if you installed the PDF backends, or the upgrade removes them:

uv tool install --force autorun-ai && autorun --install

Then restart open agent sessions: each reads its hooks when it starts. With only the Claude Code marketplace install, run claude plugin marketplace update autorun && claude plugin update ar@autorun in a shell instead. Each release's notes give the exact, version-pinned command.

Use as much or as little workflow structure as the task needs: keep the safety hooks in the background, run a task directly, or add planning for larger work.

Optional planning and execution:

/ar:go Build a login form with tests    # Run directly with three-stage verification

/ar:plannew Design a REST API with authentication and tests
/ar:planrefine                          # Critique and improve the plan
/ar:planprocess                         # Execute the plan

File Policy (prevent file clutter):

/ar:f                    # Strict: only modify existing files
/ar:j                    # Justify: require justification for new files
/ar:a                    # Allow: create files freely (default)

Safety:

/ar:sos                  # Emergency stop

Works with Claude Code, Google Antigravity, Qwen Code, Codex CLI, Pi, ForgeCode, and OpenCode. Legacy Gemini CLI support remains explicit opt-in — see Multi-CLI Support.

Examples use Claude/Gemini slash commands. In Codex, use the same command without the leading slash, such as ar:st or ar:ok git push. Every harness that receives your prompt also accepts the other spellings: Command Spellings by Harness.

Self-Improvement (learn from past sessions):

aise skills run corrections --when 30d --limit 50  # Find recurring AI mistakes
aise analyze --when 30d --output /absolute/new/analysis
# Install AI Session Search separately; see https://github.com/ahundt/ai-session-search

Table of Contents

UV Installation (Recommended)

The source marketplace includes autorun and pdf-extractor. The standalone autorun Python distribution embeds only the ar plugin's harness assets; install the pdf-extractor plugin from the Claude marketplace or a source checkout. Its extraction code needs no separate package — see below.

Note: plan-export functionality is now built into the autorun plugin. Use /ar:planexport commands for plan management.

Python package installation

autorun is the only published distribution. Install a release from PyPI:

uv tool install autorun-ai
autorun --install

PDF extraction ships inside it. extract-pdfs is always present, and every extraction backend is optional, so nobody who never opens a PDF downloads one:

uv tool install --force 'autorun-ai[pdf]'
extract-pdfs --list-backends

GitHub installation

Install the current autorun Python distribution directly from its repos

Xem mã nguồn trên GitHub