Skip to content
Projets

À propos

Never waste your AI subscription quota. Queues agent jobs and runs them in Claude Code, Codex, or Pi when your allowance would otherwise expire.

Outils de développement

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
+1
in 7 days
+2
in 15 days
+4
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Redline

Never waste your AI subscription quota again.

Redline watches your Codex and Claude allowances and dispatches queued agent jobs when there's capacity to spare - with an explanation for every decision.

Latest release macOS 13+ CI Apache 2.0

Redline's weekly allowance bar: 71% of the week has elapsed but only 28% of the allowance is used, so 43% spare capacity triggers RUN and dispatches a queued job

▶ Watch the 1-minute video · Read why I built it

You're paying for a Codex or Claude subscription. Every five hours or every week, your quota resets - and whatever you didn't use is gone. Redline watches those allowances and lets you queue up the work that's always on your backlog: test gaps, refactors, dependency bumps, doc sweeps. When you're comfortably behind on usage or running out of time before a reset, Redline fires up one of those jobs using your coding agent of choice (Codex CLI, Claude Code, Pi, whatever you've got).

Jobs are called tasks in the CLI and API; the dashboard and this page say job.

Why Redline

  • Every decision is explained. Each cycle records RUN, WAIT, or fail-closed UNKNOWN with the reasoning, so you always know why a job did or did not start.
  • Safe by default. Automatic dispatch is off until you turn it on. A configured reserve (a slice of your allowance Redline will never spend) is always held back for your interactive work, and stale telemetry means wait, never run.
  • Use it before you lose it. Firesale accelerates queued work near a reset, and opt-in redemption uses expiring banked resets before they lapse.
  • Spends expiring API credits too. The monthly API credit a ChatGPT Pro/Business or Claude subscription grants to a linked API organization expires unused. Redline shows the balance and its expiry, and starts queued jobs on it before it lapses, only while it is above a floor you set; purchased credit is never counted. A running job isn't stopped, so use a spend-limited project or workspace key as the hard cap. See API credits.
  • Works with your agents. Codex CLI, Claude Code, Pi, Hermes, or any command. Redline does not replace your harness; it decides when to launch it.
  • Isolated by design. Jobs run in Git worktrees or DevX sessions, and completed runs keep their result, artifacts, and logs so unattended work does not disappear.
  • Local only. A loopback service, a SQLite file, and your existing CLI logins. No cloud, no account, no telemetry.

Install

macOS app (recommended)

Requires macOS 13 or later. Universal binary, signed and notarized.

brew install --cask croutoncreations/tap/redline

Or download the DMG, drag Redline to Applications, and launch it. The menu-bar app bundles the service, dashboard, and CLI; a four-step guide walks you through connecting an account, creating a profile, and queueing a first job. Automatic dispatch stays off until you enable it.

→ Getting started in five minutes

CLI and headless service (macOS, Linux, Windows)

Run Redline without the menu-bar app - on a Linux box that dispatches overnight, for example.

brew install croutoncreations/tap/redline          # macOS / Linux
go install github.com/croutoncreations/redline/cmd/redline@latest

Or grab a prebuilt archive from Releases. Linux and Windows builds are exercised in CI; Windows is newer and less battle-tested, so please report anything odd.

curl -fsSLo redline.yaml https://raw.githubusercontent.com/croutoncreations/redline/main/config.example.yaml
# edit providers and policy, then:
redline --config redline.yaml serve   # leave running; in another terminal:
redline --config redline.yaml dashboard # opens and authenticates your browser
redline status --provider codex-main

The dashboard needs the api-token that serve creates beside redline.yaml. Run one of these from that directory to sign the browser in once (the bare URL returns 401):

open "http://127.0.0.1:7436/?access_token=$(<api-token)"        # macOS
xdg-open "http://127.0.0.1:7436/?access_token=$(<api-token)"    # Linux
Start-Process "http://127.0.0.1:7436/?access_token=$((Get-Content api-token -Raw).Trim())"   # Windows

If port 7436 is already taken (for example by the macOS app), start serve with --listen 127.0.0.1:17436 and pass --api http://127.0.0.1:17436 to the other commands. Also replace 7436 with 17436 in the browser sign-in commands above.

→ CLI reference · Run as a launchd service

Install with your coding agent

Paste this into a trusted local coding agent. It installs the signed release, keeps safe defaults, discovers your existing harnesses, and proposes a couple of editable starter jobs without enabling automatic dispatch on its own.

Help me install and configure Redline from the official Crouton Creations release:
https://github.com/croutoncreations/redline/releases/latest

Before changing anything, confirm this Mac meets the published requirements and show me the release
version and signing identity you intend to install. Download the notarized DMG and its SHA-256 file,
verify the checksum, copy Redline.app into /Applications, and launch it. Do not bypass Gatekeeper,
disable quarantine, install an unsigned build, or replace an existing configuration without asking.

In Redline, leave automatic dispatch disabled while we configure it. Check which of Codex CLI,
Claude Code, Pi, DevX, and Hermes are already installed; do not install or authenticate another
tool without asking. Reuse OpenUsage if its loopback API is healthy, otherwise let Redline use its
native collectors.

Walk me through creating one isolated execution profile for a repository I choose. Then suggest two
small, reviewable starter jobs based on that repository and my available harnesses. Show me each
editable prompt, provider, model, dispatch tier, recurrence, workspace behavior, and any command it
could execute. Ask before saving jobs and again before enabling automatic dispatch. Finish by
showing current allowance status, why the scheduler is waiting or running, where Redline stores its
configuration/database/logs, and how to pause all providers.

See Agent-assisted install for what the agent must not do.

How it works

  Monitor            Decide                 Dispatch              Review
  ───────            ──────                 ────────              ──────
  5-hour + weekly    policy + pace gap  →   next eligible job  →  result, artifacts,
  allowance per      RUN / WAIT / UNKNOWN   in an isolated        logs, lifecycle
  account            (explained)            workspace             events
  1. Monitor. Redline reads the same 5-hour and weekly windows your CLIs see, reusing a local OpenUsage API when one is running or collecting natively when it is not.
  2. Decide. A policy compares remaining allowance to remaining time. If you have more allowance left than an even burn pace would predict (the pace gap) by more than the policy's trigger, and the reserve is still intact, the provider is eligible. When a window is about to reset with allowance unspent (near expiry), Redline can release the reserve too rather than let it lapse.
  3. Dispatch. Jobs unlock by tier (behind pace → well behind → capacity likely to expire), then by priority. Redline claims the job, prepares an isolated worktree or DevX session, and launches the harness - the coding-agent CLI the job's execution profile names. One job at a time unless you say otherwise.
  4. Review. Completed runs keep a concise result, delivery artifacts (such as a draft PR link), bounded output, and a lifecycle timeline - in the dashboard, the menu bar, the CLI, or over MCP.
Claude - WAIT Claude - RUN (near expiry)
Claude WAIT decision with explanation Claude near-expiry RUN decision with explanation
More decision examples (Codex and Claude: WAIT, RUN, near expiry, UNKNOWN)
Codex WAIT Codex RUN
Codex WAIT decision Codex RUN decision
Codex near expiry Codex UNKNOWN
Codex near-expiry RUN decision Codex UNKNOWN decision caused by stale telemetry
Claude RUN Claude UNKNOWN
Claude RUN decision Claude UNKNOWN decision caused by stale telemetry

→ Scheduling and the allowance model explains policies, tiers, calibration, and the token-capacity estimates in depth.

Give your agent access

Redline ships an MCP server so Codex, Claude Code, or Pi can check allowance, inspect the queue, add jobs, and ask why is the scheduler waiting? without leaving the conversation.

# Claude Code
claude mcp add --scope user redline -- redline mcp

# Codex CLI
codex mcp add redline -- redline mcp

Use /Applications/Redline.app/Contents/Resources/bin/redline if the CLI is not on your PATH. Read-only tools are the default; the single dispatch tool is annotated as mutating so hosts can gate it.

→ MCP and agent guide - tool reference, Pi bridge setup, and a suggested agent instruction.

More screenshots

Menu bar, active work, completed runs, and configuration
Native quick panel Active work
Native Redline quick panel showing provider allowance, one running job, queue, and recent work Redline dashboard showing a running job and recently completed work

Completed Redline run with result summary, test evidence, formatted output, and a draft pull request link

Job configuration Execution profile
Redline job editor with task prompt, provider, priority, recurrence, and dispatch tier Redline execution profile editor with harness, model, repository, workspace isolation, and lifecycle settings

All screenshots come from Redline's isolated synthetic demo mode and contain no personal repositories, paths, credentials, or live allowance data.

Green Lane Shadow Check

The green-lane-shadow check runs on every PR to simulate auto-merge decisions without actually merging anything. It evaluates six rules (size, test repro, CI status, cross-vendor review, duplicate detection, denied paths) and posts a clear "would merge" or "would not merge" verdict as a GitHub check run.

This is shadow mode only. The check is report-only and will never merge, approve, or modify settings. It helps validate the auto-merge design before the full infrastructure (trusted dispatcher, reviewer Apps, gate App, provenance verification) is built.

See docs/green-lane-shadow.md for:

  • Complete rule descriptions
  • How to read the output
  • Pre-enable checklist
  • Current limitations

Documentation

Using Redline Reference
Getting started CLI
Execution profiles and tasks HTTP API
Scheduling and the allowance model Architecture
Runs, logs, and notifications Hermes integration
Public reset-signal preview Scheduling and allowance model
MCP and agent access Native macOS app
Mobile dashboard · launchd Outcome metrics
Troubleshooting Changelog · Releasing
Agent-assisted install LLM and coding-agent index

Contributing

Bug reports and pull requests are welcome. See CONTRIBUTING.md for building from source, running the Go, Playwright, and Swift test suites, and packaging the macOS app. Please report security vulnerabilities privately; see SECURITY.md.

License

Apache License 2.0 - see LICENSE.


Built by Crouton Creations. Get new open-source tools and builder notes when they ship.

Explorer des projets similaires

Chargement…