Skip to main content

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 --resume flag 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opencode_autopilot-0.1.0b2.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opencode_autopilot-0.1.0b2-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

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

Hashes for opencode_autopilot-0.1.0b2.tar.gz
Algorithm Hash digest
SHA256 975de0b8fdd277059339e5d6bcb7804c633160a9292b7eda061e6348faa2a0f9
MD5 f92fca1650abe2a45294d6019fb6d0e2
BLAKE2b-256 a17ed027b4df48a615271baeb3cfc134155cc93d5f6c5e5fc2bf71e1a42e89ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for opencode_autopilot-0.1.0b2.tar.gz:

Publisher: python-publish.yml on mystic9t/opencode-autopilot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opencode_autopilot-0.1.0b2-py3-none-any.whl.

File metadata

File hashes

Hashes for opencode_autopilot-0.1.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 3523f043f055dfc7dd152d0a5a30c816cb1f3899f5719297d01856c4a85b659d
MD5 533f809f85c224ac256cfeae3f030f82
BLAKE2b-256 fddd7482b60ac74b6e28753940a77a5452645aec5f00d299025981810e58b2eb

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page