Drifter — AI skill for Claude Code
A pip install defense layer that constrains AI coding agents through enforced protocols; not prompts.
How to install Drifter
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Theohox/Drifter and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Drifter does
A pip install defense layer that constrains AI coding agents through enforced protocols; not prompts. Pre-flight checklists, HMAC-signed session audits, shell command boundaries, 35 drift checks, and a document type system that prevents docs from becoming lies. Works with any agent: Kimi, Claude, Copilot, Codex, custom.
Alternatives in AI
- SEO Geo Claude Skills — 20 SEO & GEO skills for Claude Code, Cursor, Codex, and 35+ AI agents 888 ★
- Mex — Persistent project memory for AI coding agents 672 ★
- Metaharness — 🛠️ The meta-harness for AI agents — scaffold your own focused, branded agent harness with its own npx CLI, MC 616 ★
README
Drifter — Universal AI Agent Drift Guard
**Before you write a single line of code, know what already exists.**
AI coding agents excel at local optimization and fail at project discipline over long horizons. Drifter is a lightweight governance layer — not a prompt, not a replacement — that keeps agents aligned with project structure as codebases evolve.
- Document type system — every doc knows its mutation rules; docs don't become lies
- Project conductor — one active task at a time; scope creep is structurally prevented
- 35 automated drift checks — stale refs, doc drift, credential leaks, dead code, file-size bloat, ghost references, and more
- Pre-flight checklist — 7 designed-to-be-followed steps before any code change
- Command boundaries — agents read
dangerous_patterns.tomlbefore running shell - Real enforcement —
ShellGuard.enforce()raisesDangerousCommandErrororApprovalRequiredErroron violation - Plugin API —
ToolInterceptorauto-logs and enforces before any tool call (MCP, Kimi, custom) - Cross-platform shell history — audit bash, zsh, and fish history with auto-detection
- Git pre-commit hook — block commits that introduce drift (
drifter install-hook) - Session audit — HMAC-signed tamper-evident log of reads, writes, and checks; forged entries are detected and skipped
- Granular suppression — per-check
ignore_pathsandignore_patternsviadrifter.toml
Drifter is a cooperative guard — it raises the cost of mistakes and makes them auditable, not impossible. For mandatory enforcement, pair it with git pre-commit hooks and CI gates.
Drifter is not a prompt. It is a **system of enforced protocols**.
Quick Start
Requires **Python 3.10+**.
# Install
pip install drifter
# Initialize in your project
cd your-project
drifter init
# Run the drift guard
drifter check
# Run pre-flight before a coding session
drifter preflight --task "fix login bug"
What You Get
| Artifa
Related Skills
Ouro Loop
Give AI coding agents (Claude Code, Cursor, Aider, Codex) a structured autonomous loop with guardrails — bound
Fable Director
Token governance for Claude Code: the top model directs, execution goes to the cheapest adequate means. Routin
Temp Doc
Manage temporary documentation created during task execution - prevent git pollution from AI-generated checkli
Agent CLI
Official Bitget terminal AI trading CLI (bgc) for Claude Code, Codex & OpenClaw. 89 UTA v3 operations via 14 i
Agent System Prompt
Write a system prompt for an AI agent that defines its role, tools, boundaries, and output clearly enough to a
Beamer Academic
一键从论文生成高质量学术答辩PPT AI-powered thesis defense slides generator Claude Code & Codex Skill
Related Agents
Security Architecture
Boucle implements a defense-in-depth security model to protect against prompt injection attacks and maintain t
Security Architect
Security architect owning the threat model, trust boundaries, and defense-in-depth strategy. Maintains THREAT_
Agent Designer Beta
Agent persona designer (Phase 1-2) — creates system prompts for Orchestrator + 5 Research/Planning agents with