What is repld?
repld is a persistent Python kernel that runs in your project directory. You and your agent share one namespace — the same __main__, the same variables, the same running state.
The idea
Section titled “The idea”Most agent-tool setups are stateless: execute a script, get output, start over. repld is the opposite. The kernel stays up. Auth tokens persist. Background jobs keep running. Long tasks push notifications back to the agent instead of blocking.
The browser is a first-class object: attach to your logged-in Chrome tabs, discover API surfaces from your traffic, and reverse-engineer anything into a callable gist.
How it works
Section titled “How it works”Terminal 1: claude --dangerously-load-development-channels server:repldTerminal 2: repld exec # you — same namespace, same stateYou don’t start the kernel. Claude Code spawns repld bridge, which attaches to a kernel already running for the project or spawns a headless one the first time a repld tool is actually used. Run repld yourself only when you want the live TUI display instead.
The agent calls exec to run Python. Short code returns inline; long-running tasks return a task_id and push a channel notification when done. You can inspect or modify anything the agent created from your own REPL.
Core primitives
Section titled “Core primitives”| Primitive | What it does |
|---|---|
exec | Run Python in the shared kernel |
defer(coro) | Fire-and-forget background task, pushes channel on completion |
@every(seconds) | Periodic ticker — survives past the exec that started it |
notify(content) | Push a channel notification to the agent |
browser.get(glob) | Attach to a Chrome tab by URL pattern |
tab.fetch(url) | In-page fetch — inherits the browser’s session |
Next steps
Section titled “Next steps”- Getting started — install, register with Claude Code, watch the kernel
- Browser guide — CDP, the observe pipeline, API discovery
- Gists guide — writing, linking, and promoting gists to MCP tools
- Dashboard guide — the kernel’s built-in web control panel