claudeers.

🔓 unclaimed — this page was auto-generated from GitHub. Are you the creator?

Claim this page →
// Developer Tools

zero-drift

A Claude Code skill that keeps your AI grounded across long sessions: named responses + a living TASK.md for clean context handoff between instances. Works w…

Actively maintained
96/100
last commit 14 days ago
last release none
releases 0
open issues 0
// install
git clone https://github.com/obrenoalvim/zero-drift

Zero Drift

🇧🇷 Leia em Português

A Claude Code skill that keeps your AI grounded across long sessions. Two rules, applied from the first response to the last.


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.


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 does not get to 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".

Install

This is the only option that turns Zero Drift on in every session by itself. The plugin ships a SessionStart hook that injects the rules into each new Claude Code window, so you never invoke anything or set up anything per session.

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

Then open a new Claude Code window. From that point on, every session starts with Zero Drift active: replies open with your name and tasks get a TASK.md. To confirm it loaded, check that the first reply in a fresh window starts with your name.

Note on terms: a plugin is the package; the SessionStart hook inside it is what makes the behavior global and automatic. Installing the plugin gives you both. The manual options below make the skill available but do not auto-activate it.

Manual alternatives (no plugin)

These work without installing the plugin, but they require setup and do not auto-activate globally.

Paste into CLAUDE.md — add this to ~/.claude/CLAUDE.md (global) or a project CLAUDE.md:

# Zero Drift
Follow the Zero Drift skill rules:
1. Start every response with my name (detect from git config or ask)
2. For every specific task, maintain TASK.md in the project root and update it after every prompt
Full rules: https://github.com/obrenoalvim/zero-drift/blob/main/skills/zero-drift/SKILL.md

Point the AI at this repo — start a session and say:

"Read https://github.com/obrenoalvim/zero-drift and follow the Zero Drift skill."

The AI reads the SKILL.md and applies the two rules.

Copy the skill file — copy skills/zero-drift/SKILL.md into your own skills directory and load it through your plugin system, such as superpowers.


Context Handoff

The workflow that carries a long project across instances:

  1. The session fills up, so the AI updates Current State in TASK.md
  2. You open a new Claude Code session
  3. You say: "Read the TASK.md and continue"
  4. The AI reads the file, confirms where things stand, and resumes from there

You skip the re-explaining and the AI skips the guessing.


Compatibility

Works with any AI that can read a markdown file:

  • Claude Code (claude.ai/code)
  • Cursor
  • GitHub Copilot (via AGENTS.md)
  • Codex
  • The Claude API

Contributing

Found a gap in the rules, or an edge case the skill misses? Open a PR. The SKILL.md is the source of truth.

// compatibility

Platformsapi
Operating systems
AI compatibilityclaude
License
Pricingopen-source
LanguageJavaScript

// faq

What is zero-drift?

A Claude Code skill that keeps your AI grounded across long sessions: named responses + a living TASK.md for clean context handoff between instances. Works with any markdown-reading AI (Cursor, Copilot, Codex).. It is open-source on GitHub.

Is zero-drift free to use?

zero-drift is open-source, so it is free to use.

What category does zero-drift belong to?

zero-drift is listed under devtools in the Claudeers registry of Claude-compatible tools.

0 views
14 stars
unclaimed
updated 14 days ago

// embed badge

zero-drift on Claudeers
[![Claudeers](https://claudeers.com/api/badge/zero-drift.svg)](https://claudeers.com/zero-drift)

// retro hit counter

zero-drift hit counter
[![Hits](https://claudeers.com/api/counter/zero-drift.svg)](https://claudeers.com/zero-drift)

// reviews

// guestbook

0/500

// related in Developer Tools

🔓

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Curs…

// devtoolsaffaan-m/JavaScript225,699MIT[ claude ]
🔓

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

// devtoolsgarrytan/TypeScript119,234MIT[ claude ]
🔓

AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs,…

// devtoolssafishamsi/Python80,484MIT[ claude ]
🔓

🙌 OpenHands: AI-Driven Development

// devtoolsOpenHands/Python79,324NOASSERTION[ claude ]
→ see how zero-drift connects across the ecosystem