Vicem v1.0.0 · Zero-Dependency Context Baton & Diet Suite

Diet the Context.
Pass the Baton in 3 Seconds.

When you hit Claude Code's 5-hour quota limit mid-refactor or suffer context rot at 150k tokens, Vicem harvests your live session, git diff, and compressed code skeletons into a bookended baton and relays work straight into OpenAI Codex, Gemini CLI, Cursor, Antigravity IDE, or Web AI.

1-Click Setup (macOS · Windows · Linux)
git clone github.com/Rakkunn/vicem.git && cd vicem && ./vicem.mjs setup

Or download the standalone OS release bundle from GitHub Releases (github.com/Rakkunn/vicem/releases) and double-click the launcher:

macOS setup.command
Windows setup.bat
Linux / WSL ./vicem.mjs setup
zsh — my-api (feat/rate-limit) 80x24
Error: You've hit your usage limit for Claude Pro (5-hour window). Session: 42 turns · 184,200 tokens in context · 3 dirty files. ➜ my-api $ vicem codex ╭─ VICEM CONTEXT BATON & DIET RECEIPT ───────────────────────╮ │ Source : Claude Code (sess-9f3a2c · 42 turns harvested) │ │ Diet : 184,200 tok ($2.76) ──► 14,800 tok [-91.9%] │ │ Skeleton : 18 files compressed (31 bodies in ledger) │ │ Security : 2 secrets redacted (OPENAI_KEY, AWS_KEY) │ │ Target : OpenAI Codex CLI (interactive TTY handoff) │ ╰────────────────────────────────────────────────────────────╯ [OK] [Vicem] Wrote .vicem/BATON.md (182ms). Launching codex...

Engineered with Zero Third-Party Dependencies

01 / HARVEST & RELAY

Project-Scoped Session Harvesting

Automatically detects and parses active transcripts strictly scoped to the current working directory across Claude Code, Codex, Gemini CLI, Cursor (SQLite WAL backup), Antigravity IDE, Aider, OpenCode, and Goose.

02 / 4-STAGE CONTEXT DIET

Deterministic Skeletonization & MCP Rehydration

Preserves TypeScript/Rust/Go/Python type contracts and signatures 100% intact while collapsing function bodies >= 12 lines into { /* ... */ } and indexing full bodies in .vicem/ledger.json for on-demand vicem_rehydrate calls.

03 / SAFETY & MINIMAL TCB

3-Tier Secret Redaction & Write Guards

Masks provider keys, PEM blocks, and high-entropy assignments locally before any handoff. Built-in SkeletonWriteGuard and SecretCommitGuard prevent placeholder corruption in source files.

Stage-by-Stage Context Reduction & Continuity Contribution

Pipeline Stage Raw Session State (Before Vicem) After Vicem Baton & Diet Measured Contribution
1. Session Continuity Relay 40+ turns of raw JSONL / SQLite history locked in a single agent Structured Goal, Done, Immediate NEXT & git diff in .vicem/BATON.md < 3s handoff across 15+ CLI, IDE & Web agents
2. Code Skeletonization Full source files with long implementation bodies (~120,000 tok) Types & signatures 100% intact; bodies >= 12 lines indexed in .vicem/ledger.json -80% to -90% code tokens (100% lossless via MCP vicem_rehydrate)
3. Test & Error Log Slimming Verbose ANSI spinners & node_modules stack traces (~45,000 tok) Root failure message + top 5 project stack frames (~1,200 tok) -95% log noise while preserving exact root cause
4. Data Sampling & Noise Gate Lockfiles, build bundles, and multi-megabyte JSON / CSV / SQL dumps Artifacts filtered; data files reduced to inferred schema + 2 sample rows -98% data bloat & zero context window overflow
5. Security & Write Integrity Plaintext credentials in logs & risk of placeholder overwrites 3-Tier secret redaction + SkeletonWriteGuard & SecretCommitGuard 0 leaked secrets & 0 external dependencies (dependencies: 0)

Test the 4-Stage Context Diet & Secret Redactor Locally

Runs 100% in your browser memory under strict Content-Security-Policy (default-src 'none'). Drop a project folder or edit code below to inspect real-time skeletonization and secret masking.

Zone A · Source Input 1 file
Drop Project Folder or Source Files
Supports TS / JS / Python / Go / Rust, logs, and chat exports
Zone B · Live Diet Slider & Inspector 1 secret masked
L1 Light (Logs) L2 Balanced (Skeletons) L3 Max (Diff Only)
Diet: 120 → 78 tokens (-35%) SAFE (< 4,000 tok)

        
Zone C · Ready · Press Cmd+Enter (or Ctrl+Enter) to Copy Baton