Skip to content

Zero Drift

Keeps AI assistants on track during long conversations by tracking tasks across sessions

Install: /plugin marketplace add obrenoalvim/zero-drift

Works with Claude Code, Cursor · 38 GitHub stars

Install

$/plugin marketplace add obrenoalvim/zero-drift

Install command taken from the project's README or registry entry. Always review code before running it.

Zero Drift

A Claude Code skill that keeps long AI sessions grounded. Replies open with your name. Tasks keep a TASK.md that the next session resumes from.

English · Português · Español

The problem · Quick start · The two rules · How it works · Install · FAQ


Zero Drift is a Claude Code skill with two rules, applied from the first response to the last. Install it as a plugin and it loads at the start of each session.

The Problem

Long sessions break down. The context window fills up, so you open a fresh Claude instance and burn ten minutes re-explaining what you were doing. By then the AI has started drifting: it invents work it never did and forgets decisions you already made.

Zero Drift gives you a way to catch the drift early and hand off cleanly.

Quick start

/plugin marketplace add obrenoalvim/zero-drift
/plugin install zero-drift@zero-drift

Open a new Claude Code window. If the first reply starts with your name, Zero Drift is active. Other install options are under Install.


The Two Rules

1. Named Response

The AI opens every reply with your name. This keeps replies personal and easy to scan in a long log.

Breno: the auth bug is in middleware.ts:42, token expiry uses < instead of <=.

The AI reads your name from git config user.name or your CLAUDE.md. If it finds nothing, it asks you once.

The name is your hallucination detector. When the model starts to drift, the name breaks first: it drops, changes, or reads slightly off. That is your signal the session is degrading. Open a new window, say "read the TASK.md and continue", and resume from a clean state.

2. Living Task Document

Each task gets a TASK.md in the project root. After every meaningful prompt the AI records what it did, what broke, what it fixed, and where things stand now.

The Log is a record, not a diary. The AI cannot assert "fixed X". It shows proof: the command run, its output, the exit code. No proof, no Log entry; unproven work goes to Unverified / Pending. Current State may only claim something works if that proof sits in the Log. When context degrades the model drifts toward fluency before truth, so the evidence rule is what keeps a handoff trustworthy instead of a plausible story.

When the context fills up, open a new session and tell it:

"Read the TASK.md and continue."

The new instance reads the file and picks up where the last one stopped.


TASK.md Structure

# TASK: [Task Name]
> Created: YYYY-MM-DD | Updated: YYYY-MM-DD HH:MM

## Goal
What we're building or fixing.

## Plan
- [x] Done step
- [ ] Pending step

## Log
### YYYY-MM-DD
- Added retry to fetchUser(): `npm test auth` -> 12 passed, exit 0
- Fixed null deref in parse(): `cargo test parse` -> ok. 3 passed, exit 0

## Unverified / Pending
- Refactored cache layer: NOT tested yet, no proof

## Errors & Fixes
| Error | Cause | Fix | Evidence |
|-------|-------|-----|----------|

## Current State
Handoff paragraph for a fresh instance. Rewrite it each time so it always
describes right now. Only claim something works if its proof is in the Log;
otherwise say "implemented, not verified".

How it works

Similar plugs

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…

Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

Persistent Context Across Sessions for Every Agent, Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future…

Explore related