Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.
jayminwestPublic archive

About

[ARCHIVED 2026-05] Autonomous development daemon — superseded by warren (https://github.com/jayminwest/warren). See README for migration context.

Resources

Contributing

Security policy

Stars

12 stars

Watchers

0 watching

Forks

Repository files navigation

Greenhouse

Autonomous development daemon for AI agent workflows.

npm CI License: MIT

Greenhouse closes the last manual loop in the os-eco toolchain. It polls GitHub for pre-triaged issues, creates seeds tasks, dispatches overstory runs, and opens PRs when agents finish. The only human touchpoint is merging the PR.

Prerequisites

Run grhs doctor to verify all prerequisites and configuration.

Install

bun add -g @os-eco/greenhouse-cli

Or try without installing:

bunx @os-eco/greenhouse-cli --help

Development

git clone https://github.com/jayminwest/greenhouse.git
cd greenhouse
bun install
bun link              # Makes 'greenhouse' and 'grhs' available globally

bun test              # Run all tests
bun run lint          # Biome check
bun run typecheck     # tsc --noEmit

Quick Start

# 1. Initialize .greenhouse/ in your project
cd your-project
grhs init --repo owner/repo

# 2. Edit .greenhouse/config.yaml to configure your repos and labels
#    (see Configuration below)

# 3. Verify your setup
grhs doctor

# 4. Run one poll cycle to test
grhs poll

# 5. Start the daemon
grhs start

How It Works

Each daemon cycle runs these stages:

  1. Monitor — checks active supervisor sessions for timeout or unexpected exit
  2. Poll — gh issue list fetches open issues with the configured labels
  3. Ingest — sd create converts each new issue to a seeds task
  4. Dispatch — ov coordinator send sends the task to the overstory coordinator, then spawnSupervisor() launches a dedicated supervisor tmux session to own the run through completion

The supervisor handles the rest: it monitors the coordinator, detects completion (seeds issue closure), pushes the merge branch, creates a PR via gh pr create, and cleans up.

Greenhouse never pushes to the canonical branch. Every run produces a PR for human review.

Configuration

Initialize with grhs init, then edit .greenhouse/config.yaml:

version: "1"

repos:
  - owner: jayminwest
    repo: overstory
    labels:
      - agent-ready
    project_root: /path/to/local/clone

poll_interval_minutes: 10
daily_cap: 5

dispatch:
  capability: coordinator
  max_concurrent: 2
  monitor_interval_seconds: 30
  run_timeout_minutes: 90
  supervisor_model: claude-sonnet-4-6  # optional

shipping:
  auto_push: true
  auto_merge: false  # optional: auto-merge PR after creation

Only repos is required. All other fields have sensible defaults. See SPEC.md for the full configuration reference.

CLI Reference

Binary: greenhouse / grhs

Every command supports --json for structured output.

Daemon Commands

Command Description
grhs start Start the daemon (foreground)
grhs start --detach Run in background (writes PID file)
grhs stop Stop a detached daemon
grhs status Show daemon state, active runs, budget, next poll

Run Management

Command Description
grhs runs list List all tracked runs
grhs runs list --status <status> Filter by status (pending/running/shipped/failed)
grhs runs show <gh-issue-id> Show detailed run state
grhs runs retry <gh-issue-id> Retry a failed run
grhs runs cancel <gh-issue-id> Cancel a pending or running run
grhs runs clean Remove completed/failed runs from state

Manual Operations

Command Description
grhs poll Run one poll cycle (without starting daemon)
grhs ingest <gh-issue-url> Manually ingest a single issue (bypasses label filter and daily cap)

Utilities

Command Description
grhs init Initialize .greenhouse/ in current directory
grhs config show Print resolved configuration
grhs doctor Health checks (gh auth, ov, sd, git, config, state)
grhs logs Show daemon logs
grhs logs --follow Tail mode — stream new entries as they appear
grhs logs --since <duration> Filter by time (e.g. 1h, 30m, 90s)
grhs budget Show daily budget status

Design Principles

  • Shell out, don't import. Greenhouse calls ov, sd, and gh via CLI. No internal coupling to ecosystem tool internals.
  • Cron over webhooks. Poll on a configurable interval. No inbound networking, no tunnels, works on home servers.
  • Idempotent everything. Every poll cycle is safe to re-run. Already-ingested issues are skipped.
  • Daily cap as cost control. Configurable limit on issues dispatched per day. Simple, predictable.
  • PR as the human gate. Greenhouse never merges. Every run produces a PR. Full audit trail.

Part of os-eco

Greenhouse is part of the os-eco AI agent tooling ecosystem.

Tool Purpose
Overstory Multi-agent orchestration
Seeds Git-native issue tracking
Mulch Structured expertise management
Canopy Prompt management

Contributing

Contributions are welcome. See CONTRIBUTING.md for guidelines.

License

MIT

About

[ARCHIVED 2026-05] Autonomous development daemon — superseded by warren (https://github.com/jayminwest/warren). See README for migration context.

Resources

Contributing

Security policy

Stars

12 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages