Autonomous overnight engineer for OpenCode projects. Bootstrap, build, and improve while you sleep.
Project description
opencode-autopilot
Autonomous overnight engineer for OpenCode projects.
Why I built this
I'm mystic9t — I work a day job and build hobby projects in whatever time I have at night. One of those is Vibes, an astrology and wellness web app I genuinely enjoy but rarely have time to iterate on.
I kept seeing people talk about OpenClaw — an autonomous agent loop built on top of Claude Code. It looked powerful, but every time I tried to make sense of it, I hit a wall. The setup was confusing, the derivatives didn't click for me either, and I wanted something that worked without a steep learning curve.
So I did what any developer does: I went down a rabbit hole. I read what other people were doing — the loops, the session triggers, the heartbeat memory patterns — and I stitched together my own version built specifically for OpenCode and its default model, Big Pickle.
The first night I ran it on Vibes, I woke up to two fully functional new features, committed and working. They weren't perfect — I ran a dedicated cleanup session — but the core work was done while I slept. That felt like something worth packaging up.
opencode-autopilot is the result. A structured way to give OpenCode a persistent memory, a blueprint system, and a session loop so it keeps working instead of stopping after 10 minutes waiting for you.
Roadmap
v0.1.0 (Current Beta)
- ✅ Kilocode support — Auto-detect and use Kilocode as an alternative to OpenCode
- ✅ Smart tool switching — Automatically fallback to the other tool when one hits rate limits
- ✅ Rate limit resume — Pause overnight runs when both tools are rate-limited, auto-resume when limits reset
Coming Soon
- Interactive mode for step-by-step approval
- Session resume with
--resumeflag improvements - Plugin system for custom agents
Commands
| Command | What it does |
|---|---|
opencode-autopilot |
Show help and available commands |
opencode-autopilot run |
Run autonomous improvement sessions on existing projects |
opencode-autopilot run --gg [topic] |
Full trust mode — agent researches, decides what to build, and builds it |
opencode-autopilot config |
Set persistent defaults for model/agent |
Requirements
Installation
pip install opencode-autopilot
Or run directly with uvx:
uvx opencode-autopilot gg
Default model
Defaults to opencode/big-pickle — OpenCode's built-in free model, available to every OpenCode user with no setup.
Switch models per-run or permanently:
# Per-run
opencode-autopilot run --model anthropic/claude-sonnet-4-5
# Set project default
opencode-autopilot config --model anthropic/claude-sonnet-4-5
# Set global default (all projects)
opencode-autopilot config --model anthropic/claude-sonnet-4-5 --global
# Check what's active
opencode-autopilot config --show
Usage
# Existing project — agent improves what's there
opencode-autopilot run
# Full trust — agent researches, decides, and builds with no input from you
opencode-autopilot run --gg
# Full trust with a loose nudge
opencode-autopilot run --gg "something for people who read too much"
# Resume an interrupted cycle from session 6
opencode-autopilot run --resume 6
# Fewer sessions, shorter intervals
opencode-autopilot run --sessions 6 --interval 15
# Show help
opencode-autopilot --help
opencode-autopilot run --help
How the memory system works
The agent writes to HEARTBEAT/ — never committed to git, always local. It tracks:
- What was done each session and the build status
- Settled Decisions — things tried and abandoned so it never repeats them
- Paid feature ideas logged separately for you to review
- Plans written during exploration sessions
License
MIT © mystic9t
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opencode_autopilot-0.1.0b2.tar.gz.
File metadata
- Download URL: opencode_autopilot-0.1.0b2.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
975de0b8fdd277059339e5d6bcb7804c633160a9292b7eda061e6348faa2a0f9
|
|
| MD5 |
f92fca1650abe2a45294d6019fb6d0e2
|
|
| BLAKE2b-256 |
a17ed027b4df48a615271baeb3cfc134155cc93d5f6c5e5fc2bf71e1a42e89ac
|
Provenance
The following attestation bundles were made for opencode_autopilot-0.1.0b2.tar.gz:
Publisher:
python-publish.yml on mystic9t/opencode-autopilot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opencode_autopilot-0.1.0b2.tar.gz -
Subject digest:
975de0b8fdd277059339e5d6bcb7804c633160a9292b7eda061e6348faa2a0f9 - Sigstore transparency entry: 970409320
- Sigstore integration time:
-
Permalink:
mystic9t/opencode-autopilot@07d8c001485de53bd62903d04e3c7c2765360b9e -
Branch / Tag:
refs/heads/pypi-publish - Owner: https://github.com/mystic9t
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@07d8c001485de53bd62903d04e3c7c2765360b9e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file opencode_autopilot-0.1.0b2-py3-none-any.whl.
File metadata
- Download URL: opencode_autopilot-0.1.0b2-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3523f043f055dfc7dd152d0a5a30c816cb1f3899f5719297d01856c4a85b659d
|
|
| MD5 |
533f809f85c224ac256cfeae3f030f82
|
|
| BLAKE2b-256 |
fddd7482b60ac74b6e28753940a77a5452645aec5f00d299025981810e58b2eb
|
Provenance
The following attestation bundles were made for opencode_autopilot-0.1.0b2-py3-none-any.whl:
Publisher:
python-publish.yml on mystic9t/opencode-autopilot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opencode_autopilot-0.1.0b2-py3-none-any.whl -
Subject digest:
3523f043f055dfc7dd152d0a5a30c816cb1f3899f5719297d01856c4a85b659d - Sigstore transparency entry: 970409323
- Sigstore integration time:
-
Permalink:
mystic9t/opencode-autopilot@07d8c001485de53bd62903d04e3c7c2765360b9e -
Branch / Tag:
refs/heads/pypi-publish - Owner: https://github.com/mystic9t
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@07d8c001485de53bd62903d04e3c7c2765360b9e -
Trigger Event:
workflow_dispatch
-
Statement type: