Pulse watches a run while it trains, computes the relevant quantities directly, and when something breaks, finds the cause, applies a minimal patch, and verifies it.
getting started · track → diagnose → verify → patch
Debug ML while it's training.
Pulse catches the bug while the run is still training: about 1.3 minutes to a fix and $0.19 per task in our benchmark. Built for terminals, SSH, containers, Colab, remote servers and cloud GPUs. Requires Python 3.9+, a supported backend, and OpenRouter sign-in (free models available) or your own API key.
Click a command or type one below to tick off the getting-started checklist.
zsh — sandbox
interactive
$ _
$
getting started · the pulse app
What Pulse looks like in your terminal
The run on the left, the agent on the right. Click any thought, tool line, or edit to inspect it.
PULSE · / DEBUG train.py
OpenRouter · DeepSeek V4 Flash
train.py ● live
~/experiments
step 4,124 · 19.8/s · 3m 28s
loss 0.5002 █▅▃▂▁▁▁▁
grad_norm 2.4e-5 █▆▄▂▁▁▁▁
Findings 2
▲ loss stopped improving
Tensors
X 256x8 float32
❯ why did the loss stop moving?
The loss is flat at 0.5 because of the + 0.5 on line 12.
launching
Start Pulse
One command handles setup, running scripts, watching runs, and the agent.
pulse
Opens the Pulse app. Setup comes first (account, workspace, agent model, key), then type what you want built, fixed, or explained.
/run train.py
Inside Pulse: starts a script under Pulse and opens it immediately.
/monitor
Inside Pulse: lists every run on this machine (live first, then finished, then external Python processes) and attaches to the one you pick.
backends
Supported backends
core concepts
How Pulse works
Pulse separates AI reasoning from exact numerical calculation—computing ratios and norms directly instead of asking a model to guess. Click any stage.
detection & auditing
What Pulse watches automatically
Findings (deduplicated & thresholded)
Each finding carries a check id, variable, severity, exact numbers, and confidence. Deduplicated on (check, variable) so "spiked to 4.12" and "4.13" aren't two alerts. Checks require two consecutive evaluations except NaN/Inf, which fire immediately.
Adaptive agent scheduling
After each turn, the brain schedules its next look: minutes if a fix just landed or a metric is drifting, or an hour if the run is smoothly descending. NaN or critical findings pull the next look forward immediately.
The audit pass
Receives the full run downsampled into min/mean/max buckets (preserving 2-step spikes), current findings, tensors, past fixes, and dropped sample counts to catch subtle issues like slow loss or disagreeing metrics.
ML lint (mllint)
Deterministic static checks for incompatible loss/metric pairs, redundant activations, backward() without optimizer steps, train/eval mode mistakes, and suspicious learning rates.
benchmark
Measured on 11 injected ML faults
Pulse runs on DeepSeek v4.1; Claude Code on Opus. Mean over fixed cases: Pulse 1.3 min (11/11) vs Claude Code 3.9 min (9/11).
How the benchmark changed Pulse
Expanded mllint checks · minimal-fix-first behaviour · whitespace-tolerant patch matching · retry-on-mismatch patching · stronger verification of correctness and patch scope · more agentic debugging workflows.
tracking · cpu-first
Variable & GPU tracking
shapedtypedevicestatisticsNaN / Infhistory
GPU tracking (opt-in)
If nobody asks Pulse to touch the GPU, Pulse doesn't touch the GPU.
Risky shell commands (deleting files, rewriting git state, reaching outside the project, overwriting files) and proposed diffs are reviewed by an approver model by default. Set "approver": "off" in pulse_config.json to answer yourself, or "approver": "<model>" to pick another model.
What the approver sees & decides
Only the command or diff, why it was flagged, the project folder, and the current task—never the agent's reasoning. It is instructed to deny destructive actions, external files, credentials, or sudo. Every applied edit stays one /undo away.
cloud workspaces & offline
Workspaces, sync & offline mode
Pulse works without Pulse Cloud. Choose the scope that fits: the environment variable and config file apply while set; pulse config cloud off is remembered on this machine; CLI and Python flags turn cloud off for a single start.
PULSE_OFFLINE=1 # env var for current session
{"offline": true} # or set "cloud": false in pulse_config.json
pulse config cloud off # remembered on this machine
/config cloud off # inside the Pulse app
pulse --offline … # one start
pulse run --offline train.py # one start offline
# Or in Python before auto_track():
import pulse; pulse.disable_cloud(); pulse.auto_track()
Capability
Cloud-connected
Offline
Training monitoring & numerical detection
Yes
Yes
Local agent debugging
Yes
Yes
Cloud dashboard & workspace sync
Yes
No
What gets synced?
Dashboard
Workspaces can be named and managed from the CLI; members can leave, and admins can delete one. A run opened in the app (via /run, /monitor, or attached) gets its own session with metric snapshots, findings and crashes as incidents, agent turns, and uptime synced in the background. Runs count as live if they had activity in the last 5 minutes. Secret projects appear only to workspace admins and members who joined with the project's join code.
PULSE_TELEMETRY=off
advanced · stream mode
Two processes: Monitor & Brain
For most cases, just use pulse. Stream mode is for when you want a run to keep going with nobody attached. Measured on a 20k-step loop, single-process PulseCLI.update() held the training thread for 84% of the wall clock, almost all of it two blocking model calls.
training process
pulse_monitor.Monitor
Samples local variables a few times per second and writes append-only frames. Lossy under backpressure so the loop never stalls.
brain process
pulse_brain.Brain
Runs history, detection, audits, and the agent separately. Can attach late, crash, or restart without interrupting training.
pulse run --stream train.py
python -m pulse.brain # newest session
python -m pulse.brain <session-dir> --model openrouter/deepseek/deepseek-v4.1-flash
python -m pulse.brain <session-dir> --once # one pass over a finished run
Measured overhead (20k-step loop)
What the training process pays
Nothing is installed into the loop: no sys.settrace, no callback into user code. A background thread samples local variables and holds no references, so tracking a tensor never keeps it alive.
Why the stream is lossy on purpose
Under backpressure, the oldest frame is dropped and the loss is recorded so the brain knows its view has a gap rather than slowing down training.
advanced · keras
Keras
Keras metrics live in the callback logs dict, not in local variables, so the stream monitor can't see them by sampling. Streaming needs one line of setup, documented in docs/streaming-keras.md. In-process modes (cli, ui) patch Model.fit and need nothing.
reference
Troubleshooting
pulse not found
Add Python's scripts folder to your PATH, or run python3 -m pulse directly.
The app doesn't open
Pulse falls back to line-by-line mode in pipes, CI, or very small terminals. On Windows, use Windows Terminal (Windows 10+).
Keys and secrets
Never commit API keys in source code. A pasted key is never written to disk; OpenRouter tokens live in ~/.pulse/openrouter.json.
Was this page helpful?
download · wheels
Get the build for your machine.
Pick your OS, CPU, and Python version—or paste pip debug --verbose for an exact match.
01 · system
02 · cpu
03 · c library
03 · python
Run this in your target Python environment and paste the output below: