Skip to main content

whyline

Put every AI subscription you already pay for to work, together.

Whyline turns Claude Code, Codex, Grok and Antigravity into one team on your own computer. Ask all of them the same hard question at once. Have one write the code while another tests it and a third reviews it. Run agents on a schedule while you're away. Send work from Telegram or email and approve it with a tap.

It drives the official CLIs you're already signed in to, so it runs on the Claude, ChatGPT, Grok and Google accounts you already have. No API keys. No per-token bill. No Whyline account.

PyPI Python License

uv tool install whyline@latest
cd your-project && whyline init
whyline

Why whyline

Many developers now pay for two or three AI plans. Each plan lives in its own terminal, knows nothing about the others, and stops when it hits its usage limit. Wiring models together usually means API keys and a second bill on top of the subscriptions you already have.

Whyline puts them to work together:

Without whyline With whyline
One model's opinion Several models research on their own, critique each other, and one writes the final answer
You copy output between Claude and Codex One agent writes, another tests, another reviews, in one run
Work stops when a plan hits its limit An ordered backup chain takes over
AI only works while you sit at the terminal Saved agents run on a schedule and deliver results by email or Telegram
Ideas wait until you're back at your desk Send an idea from your phone and get a scored report, a brainstorm and a plan back
Each new session starts blind Decisions, rejected options and risks are recorded for the next agent

What you can do with it

🧠 Ask the whole panel

Type /brainstorm and choose which models take part. Each one researches the topic on its own. The drafts are merged, the models review each other for as many passes as you choose, and the model you pick writes the final synthesis. The result is saved to docs/brainstorm/.

It works for anything you'd want several expert opinions on, not just code:

  • "Should we move this service from Postgres to DynamoDB?"
  • "Review this PRD and list what's missing" (attach the PDF or screenshots)
  • "Plan a launch strategy for this project"
  • "What are the failure modes of this trading strategy?"

🛠️ Turn a request into reviewed, tested code

Relay runs a Markdown plan task by task with a team you choose:

idea → brainstorm → spec and plan → implement → test → review → verify → commit → you release
  • A different agent and model for each role, for example Grok writes the code, Grok runs the tests and Codex reviews.
  • Plan turns a description, a brainstorm or a document you already have into a reviewed document set (PRD, spec or design, plan with test plan, and a build record) at three sizes: Small, Feature and Large. You approve or ask for changes at each stop, and Docs shows every set, its history and an Export pack as Word and PDF. See docs/sdlc.md.
  • Auto runs the same pipeline from a one-line request without the review stops: it researches, drafts the documents, runs a full preflight check, and launches the run. It still stops for a stuck agent, a question it can't answer, a failed preflight and, for a new project, the required Project home choice (in both modes).
  • Brainstorm (Chat /brainstorm) asks several models at once. Test planner belongs to Plan, not Chat Brainstorm.
  • It pauses instead of guessing when it hits a question, a risky recovery step, a manual check, or a release.
  • Pause safely with Pause (waits for the current turn), Pause now or Stop, then Resume. Battery, wake and quit safeguards are in Settings → Relay safety or whyline relay-safety; see docs/safe-pause.md.
  • Resolve explains why it paused and offers safe options. Ask agent lets an AI read the logs and propose the fix, and you can reply to it. In Fix mode the agent may edit files and run checks, but never commit or push (whyline enforces that and can Undo fix); whyline checks the result before the relay continues. Bugs in whyline itself go to the Idea Inbox, and Check gives a read-only health note on a running relay. See docs/resolve.md.
  • Release checks, versions, notes, tags and publishes for you to GitHub and, if you tick them, PyPI, npm, Docker, Homebrew or your own command, and can run from a plan's release task or after a plan finishes. Pressed on a finished relay's branch, it first brings main in (stopping and aborting cleanly on a conflict), moves finished plans to plans/done/, offers a never-released current version first, and fast-forwards your other main checkout afterwards; turn that off with Bring in main before releasing. Set up shows each target's last check. Check retries a slow gh or git reply once before it counts as not ready. When CI fails it says why (no runner, timeout, tests, publish), with Rerun failed jobs, Ask an agent and Fix with an agent, a When GitHub has no runner setting, and whyline release why, rerun and ask. Release notes go through a fixed check, then—when another enabled agent is available—a reviewer that can only remove or reword and a second fixed check. The check catches agent chatter, first-person and process lines, duplicate titles, whole-note code fences, secrets, home paths and email addresses. The confirmation says who wrote and checked the notes, or that only fixed rules or the grouped commit-list fallback was used. Choose whether to use a second agent and which reviewer in Release → Set up; check a hand-written file with whyline release notes --check <file>. Per-target setup, all four notes-summary forms, fallback groups, how to check each target by hand and a troubleshooting list are in docs/release.md.
  • Security checks run in the Release gate with nothing to install: secrets in the commits about to be pushed, vulnerable dependencies (only public package names and versions go to OSV.dev) and the files each package would publish. Test fixtures are skipped by skip_paths, and a fake secret in a test can be allowed with one reason. Optional pre-commit hook, GitHub protection and a deep audit. See docs/security.md.
  • Files shows the agent's current output, the live plan, and the whole repository in a side pane.

While a run is going, the console and the Telegram status line show what it is doing, for example JOB-24 (2 of 10, 10%) · implementing · claude · round 1 of 24 · 7m 02s, and after a rejection JOB-24 (2 of 10, 10%) · fixing after review 1 · claude · round 3 of 24 · 1m 40s. The % counts finished tasks out of all tasks in the plan, not how far the current task has got. The rerun count needs whyline-relay with RLY-11; without it the line simply leaves that part out.

🔁 Keep going when a plan runs out

Each role can have an ordered backup chain. When one agent reports a usage limit, the next one takes over. Resolve names the model that ran out, offers another, and offers to switch back once the original is signed in again. On a Mac, Awake keeps the computer from sleeping through a long run.

When a run pauses because an agent hit a usage limit or is signed out, Resolve shows one Continue with <agent> button for each agent that is ready. One tap switches that role to the agent and resumes. Tick Also use as backup next time to add the agent to the role's backup chain as well. In Set up, any role or backup choice that cannot run is labelled with the reason, for example antigravity — out of quota until 2026-11-04 18:30. You can still pick it, and Check warns about it. For the same readiness from a terminal, run whyline relay roles status.

🤖 Agents that work while you don't

A saved Agent is a reusable, read-only job with its own instructions, main CLI, backups and timeout:

  • Triggers: run it now, daily, on weekdays, every few hours, when files land in a folder, or from a Mail rule.

  • Delivery: results arrive by email or Telegram, as text or a Word document, and every run is kept in history.

  • Unattended safety: each Agent must be accepted on this computer before it runs unattended, and editing it requires a fresh acceptance. It pauses itself after repeated failures, or when a CLI is logged out.

  • Tools, skills and knowledge: the Tools library in Agents holds Connectors (local MCP servers, importable from Claude and codex), Skills, Knowledge packs (files, folders and web pages) and Credentials (kept in the macOS Keychain; a value is never written to a file, log or prompt). Each tool an agent may use is Allowed or Ask first; Ask first calls wait up to 10 minutes for Approve or Deny, and every call is logged. See Tools for agents. Add skills from public sources (with a preview and warnings first, and nothing from a skill is run), connectors from a catalogue (not checked by whyline yet until someone has tested the entry), or a made tool (a saved web request you Test and Accept). Tools have four risk levels, and a tool that pays is always Ask first and needs limits. Each CLI gets its own model (Default lets the CLI decide), and Browse… picks folders.

  • Check-ins: give an Agent a gate (mail-from, event-soon, ci-failed, reminder-overdue or changed) and it runs only when the check finds something. Set Active hours (held messages arrive when they begin), let it answer NOTHING to stay silent, and expect at most one message per chat per hour. Test gate now shows what the gate finds. See check-ins.

  • Schedules and watches: run an Agent once on a date, weekly, every N minutes, hours or days, or several times a day, with From and Until dates and a run limit. A finished agent can be Start agained. The page gate watches up to three web pages (changed, text appears, text is gone, or a number below or above a limit) and sends the message itself when you leave Instructions empty. Test shows what it would do. It can't log in, run a browser or get past robot checks, and the Mac must be awake. See schedules and watching a page.

Examples: a weekday dependency and security watch, a nightly summary of what changed in a repository, or a weekly review of open issues.

📱 Run it from your phone

The Idea Inbox connects a private Telegram bot, and authenticated email, to your Mac:

  1. Message an idea and get a card back with buttons: Brainstorm, Quick score or Cancel.
  2. Scores and brainstorms come back as Word and PDF documents, and the backlog stays in an Excel workbook.
  3. Ask for a spec and plan for one of your allowed repositories. If the planner has questions, they come to the chat.
  4. Tap Start to launch Relay. You can check status any time. Pauses arrive with Resolve options as buttons, and Stop is always one confirmed tap away.

Reply in plain words instead of tapping a button, and an assistant proposes the matching card. Nothing changes until you tap Confirm.

📝 Remember why the code is the way it is

Agents don't share their private conversations. Whyline keeps a small, committed record of each decision: why it was made, which options were rejected, and which tests and risks go with it. whyline init offers to install instructions and hooks that point each agent at it, and whyline sync hands the next agent a short summary.

$ whyline explain src/whyline/runner.py:46

src/whyline/runner.py:46

Last touched by   anish
Commit            bc677e4  ·  2026-08-17

Decision          Resolve runner injection points at call time, not in the signature
Because           default arguments bind at import time, so monkeypatching runner.shutil.which had no effect and a test exec'd the real codex binary, replacing the pytest process
Rejected          patch the default argument tuple in tests
                  couples every test to CPython internals

Confidence        High — a recorded decision matches the commit for this line.

git blame tells you who changed a line. whyline explain tells you why.


How it works

              your computer                                  providers
┌─────────────────────────────────────────────┐
│ whyline console  (Chat · Relay · Agents)    │
│        │                                    │
│        ├── claude ── your Claude account ───┼──▶ Anthropic
│        ├── codex  ── your ChatGPT account ──┼──▶ OpenAI
│        ├── grok   ── your Grok account ─────┼──▶ xAI
│        └── agy    ── your Google account ───┼──▶ Google
│                                             │
│ .whyline/    decisions (committed), relay state, repo agents
│ ~/.whyline/  ideas, run history, settings (private)
└─────────────────────────────────────────────┘

Whyline starts each agent's own command-line tool, signed in the way you set it up. It never asks for, stores or forwards your credentials, and there is no Whyline server for model traffic to pass through.

Quick start

You need Python 3.11+, Git, and at least one of these CLIs installed and signed in: Claude Code, Codex, Grok, or Antigravity (agy).

uv tool install whyline@latest     # includes the console and Relay
cd your-project
whyline init                       # creates .whyline/ and offers project instructions and hooks
whyline                            # opens the console

Then:

  1. Press Settings and tick the subscriptions Whyline may use.
  2. In Chat, talk to any agent. Switch agent and model from the bar at the top. You can attach images and PDFs.
  3. Type /brainstorm and ask the panel something.
  4. Open Relay → Set up, choose a plan and the role for each agent, press Check, then Start.
  5. Open Agents → New agent to schedule your first read-only job.

Whyline checks PyPI once a day and offers Update inside the console. When a newer whyline is already on disk, the title says whyline <version> is installed · restart to use it and Restart appears. A relay running in this checkout is left running. See the console.

The console

Mode What it's for
Chat Talk to any enabled agent, with model, backup chain, timeout, repository and attachments. /brainstorm asks several models at once.
Relay Plan, Set up, Check, Run, Auto, Resolve, Resume, Stop, Files, and Awake on a Mac.
Agents Saved Agents with schedules, history and delivery, plus the Ideas backlog and Inbox settings for Telegram and email.

In Relay, the Chat tab next to All files answers questions about a running relay from a read-only agent, and never stops or steers it. See docs/relay-chat.md; whyline ask does the same from a terminal. While a relay runs, Agents for this run also changes agents, models, backups, the timeout and the round cap; see when each change applies.

Everything you set up or run is available in the console without a terminal. The CLI (whyline --help) exposes the same functions for scripts.

Help explains the rest. If the console crashed in the last seven days, Help and whyline doctor show Last console crash: … (~/.whyline/crash.log). Send that file, or Copy then Copy crash log, when you report a crash. After an upgrade, press Restart when the title asks you to. See the console.

Saved Agents in a file

Create Agents in the console, or commit a definition with the repository:

# .whyline/agents/dependency-watch.toml
name = "dependency-watch"
instructions = """
Review this repository's dependencies and report important security or
compatibility changes. Do not edit files.
"""
runner = "codex"
backup = ["claude", "grok"]
timeout_minutes = 30

[trigger]
kind = "weekdays"
at = "09:00"
whyline agents accept dependency-watch    # approve this exact definition on this computer
whyline agents run dependency-watch
whyline agents history dependency-watch

See verified read-only modes and the Mail trigger recipe.

Decision memory for agents

Command What it does
whyline sync Gives the next agent a short summary: the active handoff, Git state and relevant decisions
whyline note "…" --because "…" --rejected "…" Records a decision and the options it beat
whyline explain path:line Explains why a line exists
whyline handoff TASK --from codex --to claude … Hands work over with changed files, tests and open risks
whyline brief --file src/a.py Gives the history behind a file to the next agent

Decisions live in .whyline/decisions.md and are committed with your code. See how recording works.

Supported agents and platforms

Agent Chat, brainstorm and Relay Unattended saved Agents Attachments
Claude Code ✅ ✅ read-only plan mode images, PDF, RTF
Codex ✅ ✅ read-only sandbox images, PDF, RTF
Grok ✅ ✅ edits and writes denied images, PDF
Antigravity ✅ after you trust the repository — no verified read-only mode images, PDF, RTF
Platform Support
macOS Everything: console, Relay, saved Agents, schedules, folder and Mail triggers, the background Inbox, Awake, and Word and PDF documents.
Linux Console, Chat, brainstorm, Relay and on-demand Agents. No macOS services.
Windows Experimental.

Privacy and safety

  • Your plans, your limits. Whyline runs the official CLIs with your own login. Usage counts against your plan's limits and follows each provider's terms.
  • Prompts still go to the providers you choose. Whyline adds no server, telemetry or account in between.
  • Unattended means read-only. Saved Agents and inbox turns use tested read-only modes. Only Relay writes code, only in the repository you choose, and it stops for you before anything risky or any release.
  • Messages are data, not commands. Telegram and email are restricted to chats and senders you allow. Anything with consequences needs a confirmed tap or a reply code. Telegram bot chats are not end-to-end encrypted.
  • Local state. Ideas, run history and settings stay in ~/.whyline/. Only .whyline/decisions.md and any repository Agent definitions are meant to be committed.

FAQ

Do I need API keys? No. Whyline uses the CLIs' own sign-in. A CLI that you've set up with its own API key also works, and Whyline never sees the key.

Does it cost anything? No. Whyline is free and Apache-2.0. You pay only for the AI plans you already have.

Is one subscription enough? Yes. Chat, Relay and saved Agents all work with one. Brainstorms and cross-model review get better with each plan you add.

Can it run while I'm away? Yes, on a Mac that is on, logged in and awake. After the Mac wakes or you log in, the latest scheduled run you missed runs once if it is within 24 hours; older missed runs are recorded as missed. Telegram keeps undelivered messages for about a day, so the Inbox catches up when the Mac wakes.

Does it change my code without asking? Only Relay writes, only after you start it, and it commits only work that passed review. Releases stay with you.

The console crashed. What should I send? Attach ~/.whyline/crash.log. Help then Copy then Copy crash log copies the last crash. whyline doctor prints a line for a crash in the last seven days. See the console.

Learn more

License

Apache-2.0.

Metadata

Release files for whyline 0.3.82

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

Source distribution (sdist)

Source distribution for whyline 0.3.82
File Size Uploaded Provenance Actions
whyline-0.3.82.tar.gz 1.8 MB Without provenance Details for whyline-0.3.82.tar.gz

Built distribution (wheel)

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

Total release size: 3.0 MB

Release files / whyline-0.3.82.tar.gz

Download URL whyline-0.3.82.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
766d0e48970435b9158e44539649a5c809978296d16e75a9e3e4aefb48477b98
BLAKE2b-256 checksum
How to use checksums
0176947b344124955213fa47883cf19f61cef628edc9cb867ce5beca0aad8cd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / whyline-0.3.82-py3-none-any.whl

Download URL whyline-0.3.82-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3f4d7c686bd4594c66b93f9cebf915ea1d31198f61bfd150ab352eb2b6d465e7
BLAKE2b-256 checksum
How to use checksums
ee28cf7dc31be39a5e38d08906444423c18f46161f26fceb732682a32af29736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for whyline 0.3.82

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.3.82 This release

2 release files No 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