lfagundes

Claude Dedrift — Development skill for Claude Code

Development community

Make Claude Code actually honor your CLAUDE.md and provided context.

How to install Claude Dedrift

This entry records only its repository, not the path inside it, so there is no exact command to give. Open lfagundes/claude-dedrift and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Dedrift does

Make Claude Code actually honor your `CLAUDE.md` and provided context.

Alternatives in Development

  • Domxss — Confirm DOM XSS in a real headless browser — injects canary payloads into params + URL fragment and only repor 4.5k ★
  • Antigravity Claude Proxy — Proxy that exposes Antigravity provided claude / gemini models, so we can use them in Claude Code and OpenClaw 3.5k ★
  • Quick Plan — Create a detailed implementation plan based on the user's requirements provided through the USER_PROMPT variab 3.4k ★

README

claude-dedrift

Make Claude Code actually honor your `CLAUDE.md` and provided context.

Why

Claude Code wraps your context (CLAUDE.md, rules, project instructions) in a `` that ends with this exact sentence:

IMPORTANT: this context may or may not be relevant to your tasks. You should not respond to this context unless it is highly relevant to your task.

That wording lets the agent quietly discount standing instructions. `claude-dedrift` patches the Claude Code binary to replace it with:

IMPORTANT: these are the user's authoritative standing instructions. Obey every one that applies to the current task; do not discount them.

The replacement text is 139 bytes — shorter than the 147-byte original — so it is right-padded with 8 trailing spaces to fill the slot exactly. The spaces are harmless inside the `` block and invisible to the model.

This keeps you in control: an instruction that misfires is something you *see* and fix in the file — not something the agent silently decides to ignore. It obeys the parts that apply to the task at hand and stays quiet on the parts that don't, rather than forcing in irrelevant context or dismissing everything.

Because the padded replacement occupies exactly the same 147 bytes, the executable is never restructured — only those 147 bytes (in two places) change.

Install

npm install -g claude-dedrift
claude-dedrift install

Then restart your shell (or `source` your rc file). That's it.

`install` sets up a **self-healing shim**: a tiny `claude` wrapper earlier on your PATH that re-applies the patch automatically whenever Claude Code auto-updates to a new version. You keep typing `claude` as always; the patch heals itself. If patching ever fails, the shim still launches Claude Code normally (unpatched) — it never blocks you.

Commands

Command Description
claude-dedrift install Install the self-healing shim and patch the current binary
`claude-ded