Skip to main content

Autorunne

CI Release Packages

Autorunne 是一个 repo-local 项目记忆和交接层:让 Codex、Claude Code、Hermes、Cursor、GitHub Copilot 在同一个 Git 仓库里接着做,而不是每次从零解释。

很多人已经在用 AI 写代码,但真实项目最麻烦的不是“让模型写一段代码”,而是:今天做到一半,明天还能不能接上;换一个模型,能不能知道上次做了什么;交付前,能不能看清任务、决策、验证结果和下一步。

Autorunne 解决的是这个问题。

它会在项目里维护一个 .autorunne/ 工作区,把项目上下文、任务、决策、会话记录、推荐命令、验证证据和下一步整理成稳定文件。你仍然用自己熟悉的工具写代码,Autorunne 只负责把项目状态留在仓库本地。

0.7.0 重大升级:AutoRunne 2.0 认知自演化引擎 (Auto-Dream)

0.7.0 将 AutoRunne 从原先的“项目状态记录层”跃升为**“具备认知反思与自动进化的项目大脑”**。完美融合 Auto-Dream 协议与定向状态图谱:

  • Auto-Dream 认知睡眠循环:内置 Orient(定向)、Gather Signal(提取修正/架构信号)、Synthesize(结晶经验)、Prune & Index(修剪归档与建索)四大节点。
  • 严格遵循 200 行认知预算:自动将详细领域知识分流至 .autorunne/memory/ 专题文件,根目录索引严格卡在 200 行以内,杜绝 Agent 上下文爆炸。
  • “谁开发谁提纯”机制:不强行绑定外部 API 或特定厂商模型,写代码的模型拥有最热记忆,在任务交接与完成时在上下文内自然提纯,真正实现多模型/跨 Agent 无缝接力。
  • 全生命周期无感自动触发:无需开发者频繁敲命令行,Git post-commit hook、autorunne finish 与 autorunne auto-finish 自动在后台无声运转完成梦境沉淀。

0.6.34 正式版:长期项目状态更可靠

0.6.34 保持现有使用方式:AI 进入项目后仍然先看当前进度、任务和下一步。这一版重点加固本地状态层,让 Autorunne 更适合持续数月、反复切换 Agent 的长期项目:

  • 并发写入不再互相覆盖:多线程、多进程共享同一把可重入工作区锁。
  • 状态文件可恢复:JSON 原子保存,并保留最近一次有效备份。
  • 损坏时宁可停止也不清空历史:主文件与备份都坏时 fail closed。
  • 事件日志更安全:events.jsonl 安全追加,只修复真正的末尾半行。
  • 长期记忆压缩可重试:同月归档持续追加;崩溃恢复不会重复归档,也不会覆盖崩溃后新写入的记录。

详细说明见 0.6.34 状态可靠性发布说明。

继续保留 0.6.32 的缓存过滤、0.6.31 的零提示 checkpoint / finish 能力,以及长期记忆压缩功能。

适合谁

  • 经常用 Codex、Claude Code、Hermes、Cursor 或 Copilot 做开发的人
  • 独立开发者、接项目的人、AI 编程课程讲师
  • 手里有半成品项目、老项目、客户项目,需要让 AI 快速接手的人
  • 不想被某一个编辑器、某一个模型绑死的小团队

它不是什么

  • 不是新的聊天机器人
  • 不是重型 AI IDE
  • 不是“完全替代开发者”的自动化平台
  • 不是一套散装 prompt 模板

它更像一个放在仓库里的项目工作台:谁来干活都先看同一份项目状态。

安装

推荐用 pipx:

pipx install autorunne

如果你在 VS Code 终端里想一行装好:

curl -fsSL https://raw.githubusercontent.com/HUAFIRE777/autorunne/main/scripts/install.sh | bash

当前公开版本:0.6.34

发布 GitHub 版本说说

每次发新版后,可以用脚本自动发一条 GitHub Discussions 更新:

python scripts/publish_github_update.py --version 0.6.34

先预览、不发布:

python scripts/publish_github_update.py --version 0.6.34 --dry-run

脚本使用本机 gh 登录态,不保存 token。

30 秒上手

进入你的项目目录。新项目不需要手动 git init,Autorunne 会自动初始化本地 Git 仓库:

autorunne open --with-vscode

autorunne open 会创建或刷新 .autorunne/,并生成给不同 agent 看的入口文件。

之后日常使用很简单:

  1. 打开项目
  2. 启动 Codex / Claude Code / Hermes / Cursor / Copilot
  3. 直接分配任务
  4. agent 先读 .autorunne/views/START_HERE.md
  5. 完成后用 Autorunne 记录验证结果和下一步

常用收尾命令:

autorunne finish --validate "python -m pytest -q" --next "继续做订单筛选"

仓库里会多出什么

.autorunne/
├── state/                 # 机器可读的项目状态
├── views/                 # 给人和 agent 看的 Markdown
│   ├── START_HERE.md      # 新窗口从这里开始
│   ├── PROJECT_CONTEXT.md # 项目背景
│   ├── TASKS.md           # 任务状态
│   ├── DECISIONS.md       # 已确认的决策
│   ├── COMMANDS.md        # 推荐运行命令
│   └── STATUS.md          # 当前是否可继续开发
├── SUMMARY.md             # compact 生成的长期项目摘要
├── archive/               # compact 归档的旧 session/event 月度摘要
├── exports/               # export-session 生成的交付/复盘报告
└── bin/                   # 可选 wrapper,如 ar-codex / ar-claude / ar-hermes

这些文件默认服务于本地开发和团队交接。你可以按项目需要决定哪些文件提交到 GitHub,哪些只留在本机。

支持的入口

Autorunne 不是替代这些工具,而是让它们共享同一个仓库状态:

  • Codex
  • Claude Code
  • Hermes
  • Cursor
  • GitHub Copilot
  • Gemini

如果你想强制从 Autorunne wrapper 进入,也可以用:

./.autorunne/bin/ar-codex
./.autorunne/bin/ar-claude
./.autorunne/bin/ar-hermes

但正常情况下,直接打开你常用的 agent 发任务就行。

支持的项目类型

目前已经覆盖常见开发项目:

  • Node / TypeScript:npm、pnpm、yarn、bun、React、Next.js、Vite、Vue、Nuxt、Svelte
  • 多包项目:frontend/、backend/、contracts/、apps/*、packages/*
  • Python:pip、poetry、uv、FastAPI、Django、Flask、Streamlit
  • 轻量 Python 教学项目:只有 app.py、main.py、tests/ 也能识别
  • Go、Rust、C、C++、CMake 项目

常用命令

# 第一次接管或恢复项目
autorunne open --with-vscode

# 刷新项目扫描和视图
autorunne sync

# 记录一个来自 agent 的自然语言任务
autorunne ingest --source codex --task "继续支付回调" --next "先补 webhook 测试"

# 开始 / 检查点 / 完成
autorunne start --task "实现支付回调" --next "先写测试"
autorunne checkpoint --next "接 handler"   # summary 可省略,Autorunne 会自动生成
autorunne finish --validate "pytest -q" --next "补发布说明"

# 查看当前状态
autorunne status
autorunne doctor

# 长期项目记忆管理
autorunne memory-report
autorunne compact --dry-run
autorunne export-session --last 20

文档

建议按下面顺序看:

  1. GitHub 开源使用手册
  2. 安装与使用操作手册
  3. 中文使用说明
  4. 产品说明书
  5. 开源宣传手册
  6. 商业计划书
  7. 对外定位与销售话术
  8. 商业稳定性说明
  9. 0.6.34 状态可靠性发布说明
  10. 0.6.31 自动 summary fallback
  11. 0.6.30 自动长期记忆压缩
  12. 0.6.29 长期项目记忆管理
  13. 0.6.28 status / doctor 干净度补丁
  14. 0.6.27 交接 doctor / repair 与 diff 分类加固
  15. 0.6.26 真实交接状态一致性补丁
  16. 0.6.25 交接洁净度补丁
  17. 0.6.24 自动 Git 初始化
  18. 0.6.23 git init 新手提醒
  19. 0.6.20 PyPI/GitHub 同步发布说明
  20. 0.6.16 状态可视化发布说明
  21. 与大模型开发对接说明
  22. English usage guide

当前阶段

0.6.34 正式版在不改变交接体验的前提下,把并发写入、损坏恢复和长期记忆压缩做成可验证的可靠性补丁。0.6.31 的零提示工作流继续保留:用户只派任务,agent / wrapper 可以直接调用 checkpoint 或 finish,Autorunne 自动生成 summary,不再因为缺少流程说明打断。

更准确地说:Autorunne 现在是一个可持续使用的 Beta 项目记忆层。它不是最终企业平台,但已经足够支撑真实项目里的“接着做”和上线后的日常维护。

开发安装

git clone https://github.com/HUAFIRE777/autorunne.git
cd autorunne
python -m venv .venv
source .venv/bin/activate
pip install -e .[dev]
python -m pytest -q

License

MIT

Metadata

Release files for autorunne 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autorunne 0.7.0
File Size Uploaded Provenance Actions
autorunne-0.7.0.tar.gz 94.2 kB With provenance Details for autorunne-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for autorunne 0.7.0
File Interpreter ABI Platform Actions
autorunne-0.7.0-py3-none-any.whl Python 3 none any Details for autorunne-0.7.0-py3-none-any.whl

Total release size: 182.1 kB

Release files / autorunne-0.7.0.tar.gz

Download URL autorunne-0.7.0.tar.gz
Size 94.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a9240f7dc3860327c9850b52fc75a3eaa6689f7b16b756c00bcf598b61fd2bd6
BLAKE2b-256 checksum
How to use checksums
b0f3a4ca70f283609f2d9f494e307312e0d4f5f43098c25a94b7c98b9fdbe504
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 1, 2026.

Transparency log

Release files / autorunne-0.7.0-py3-none-any.whl

Download URL autorunne-0.7.0-py3-none-any.whl
Size 87.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b7ee092b87252b085029c0550ce62c04383712cbfde9ded1afaaef62f000b7d
BLAKE2b-256 checksum
How to use checksums
9079d31e66857a01e1bc593df22968ad9dd5a7d85fd921860a9a9d4f14f38f55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 1, 2026.

Transparency log

Security for autorunne 0.7.0

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.

Select from 2 files

Attestation for autorunne-0.7.0.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 1, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page