LOCAL-FIRST · AI CODING WORKFLOWS

Your AI coding agents. One continuous workflow.

Move between coding agents without losing your project's context, decisions, or progress. Baton captures active git diffs and task state so the next agent resumes immediately without a cold repository re-read.

Fig 01· The Relay Cradle (Context Bridge)
Claude Code
→
Cursor
Claude Codeclaude
Cursorcursor
Move pointer over rails or observe auto-pass cycle
dock 01 · claude · captured
02 — The problem

Every new agent starts with missing context.

When switching between coding tools, the new agent knows nothing about your previous session, active task branch, or why specific trade-offs were made.

Without BatonHigh friction · Token waste
Developer: "Continue the auth migration"Agent: "I don't have previous context. Re-scanning entire repository..."Reading 48 files · Reading package.json · Reading tsconfig · 60,200 tokens burned
  • ✕Prompt repetition: You manually re-type 3 paragraphs of project context.
  • ✕Massive token burn: Agent wastes 40,000–80,000 tokens scanning unneeded files.
  • ✕Silent regressions: The new agent rewrites working code because decisions were lost.
Cost per switch: ~60,200 tkn~45s latency
With BatonContinuous relay · Zero loss
✓ Ingested .baton/handoff.md (396 tokens in 0.12s)Agent: "3 files staged, SameSite cookies verified. Updating client fetch interceptor now."Zero cold scan · Invariants locked · Immediate coding
  • ✓Zero prompt typing: Baton passes the exact task slice, diffs, and tests automatically.
  • ✓99.3% token reduction: 396 tokens instead of a 60,000-token repository dump.
  • ✓Preserved decisions: Frozen files and settled architecture remain intact.
Cost per switch: 396 tkn0.12s latency (-99.3%)
03 — How it works

Three simple steps.

Designed to fit into your existing development workflow. No servers, no signups, and no cloud dependencies.

01local-first

Capture your work

Baton automatically tracks the current task, modified files, decisions made, and test status from your local repository.

Automatic Context Capture
Writes .baton/handoff.md locally in your project
02local-first

Choose your next agent

Select which coding agent receives the task next. Baton formats the prompt packet specifically for that tool.

One-Click Agent Routing
Supports Claude, Codex, Cursor, Gemini, AGY
03local-first

Continue where you left off

The receiving agent gets concise instructions, inspects modified files, and continues the task without re-reading.

Zero-Cold-Start Resume
Saves ~60,000 tokens per agent switch
04 — Product demonstration

See Baton in action.

A real workflow passing an active authentication migration from Claude Code directly into OpenAI Codex CLI.

LIVE WORKFLOWTask: Migrate authentication
Claude CodeClaude Code
→Baton→
CodexCodex
.baton/handoff.md · generated locally396 tokens
# Baton Handoff Packet: auth-session-migration
source: claude-code | target: codex | status: ready

## Active Task
- Migrate session storage from localStorage to secure HTTP-only cookies.

## Files Touched
- lib/auth/session.ts (added cookie serialization)
- app/api/auth/login/route.ts (switched to Set-Cookie header)

## Decisions & Invariants
- Do NOT rewrite crypto algorithms in lib/auth/crypto.ts.
- Next step: Update client fetch interceptor in lib/api-client.ts to drop manual Authorization header.
Packet stored locally in your repoZero cloud relay required
05 — Features

Everything you need to keep work moving.

Engineered for developers who use multiple coding agents and refuse to waste tokens re-explaining their repository.

Orchestration0.2s

Workflow orchestration

Manage multi-step agent work

Coordinate complex engineering tasks across different specialized agents without dropping tasks, tests, or context.

zero token overheadbaton core
Continuity0.2s

Context continuity

Preserve decisions and progress

Lock architectural invariants, modified files, and passing test results so the next agent builds forward instead of backwards.

zero token overheadbaton core
100% Local0.2s

Local-first architecture

Keep context on your machine

Every handoff packet is written directly to your project in .baton/. No third-party servers, no account required, no token telemetry.

zero token overheadbaton core
Interoperable0.2s

Agent flexibility

Switch between supported agents

Use Claude Code for architectural design, Codex for rapid edits, and Cursor for in-editor debugging—seamlessly in one flow.

zero token overheadbaton core
06 — Figures

Explore the system behind Baton.

Detailed visual instruments showing how Baton works internally: context capture, token compression, multi-agent orchestration, and task lifecycle.

FIG 01

Context Capture

The Baton Relay Cradle

How Baton inspects the active session, modified git hunks, and decisions from Claude Code and bridges them smoothly to Cursor.

Claude CodeClaude Code(Source)CursorCursor IDE(Target)
Context Bridgedock 01 · claude code · captured
Continuous pointer tracking on twin guide rails simulates real-time task handoff across the 20-meter sprint zone.Interactive instrument
FIG 02

Handoff Packet

The Token Compression Sieve

How Baton distills a full 60,000-token repository scan down to an exact 396-token markdown packet with 98.6% compression.

Local Git State(Input).baton/handoff.md(Output)
Context Concentratorsieve · 84.4% · 9733 tkn
Interlocking six-blade mechanical iris contracts as noise files are excluded, leaving only critical diffs and decisions.Interactive instrument
FIG 03

Agent Orchestration

The 5-Way Rotary Commutator

How Baton routes work across different coding agents: Claude Code, OpenAI Codex, Cursor IDE, Gemini CLI, and Antigravity.

Claude CodeClaude(Design)CodexCodex(Edit)CursorCursor(Debug)Gemini CLIGemini(CLI)AntigravityAGY(Subagent)
Rotary Agent Selectortarget · codex cli · ready
Radial indexer snaps into laser-etched agent detents, demonstrating instant context routing without prompt rewrites.Interactive instrument
FIG 04

Workflow Lifecycle

The Task Cartridge Ledger

How task jobs, touched files, architectural invariants, and next steps stay organized and physically inspectable across runs.

Task Memory(Preserved)Next Actions(Staged)
Context Ledger Rackcard 03 · decisions.md · locked
Stepped index ledger plates tilt forward with distance-staggered order, allowing developers to inspect each task layer.Interactive instrument
07 — Compatibility

Works with your coding agents.

Baton supports all leading CLI and IDE agents. It generates standard markdown and JSON packets that any LLM or coding harness understands.

Claude Code
Verified
Claude Code
CLI & Architecture
Codex
Verified
Codex CLI
Rapid Editing
Cursor
Verified
Cursor IDE
In-Editor Agent
Gemini CLI
Verified
Gemini CLI
Context Reasoning
Antigravity
Verified
Antigravity (AGY)
Autonomous Subagents
opencode
Verified
OpenCode
Open Source CLI
Cline
Verified
Cline
VSCode Extension
GithubCopilot
Verified
GitHub Copilot
Terminal Assistant
08 — Get started

Keep your AI coding work continuous.

One continuous workflow across multiple coding agents. Zero token waste, zero cloud telemetry, and 100% local on your machine.

macOS · Apple Silicon·Open source · MIT License·Zero cloud dependency