Task Anchor — AI skill for Claude Code
Claude Code mod that keeps long sessions on track: remembers the session goal, scores topic drift, and re-anchors the model.
How to install Task Anchor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open pquattro/task-anchor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Task Anchor does
Claude Code mod that keeps long sessions on track: remembers the session goal, scores topic drift, and re-anchors the model. / Mod Claude Code qui garde le cap dans les longues sessions : retient le but, mesure la dérive de sujet et réancre le modèle.
Alternatives in AI
- Open Multi Agent — TypeScript multi-agent orchestration engine — one runTeam() call from goal to result 5.8k ★
- Iai Personal Memory Engine — A cyber brain for your AI 866 ★
- Cwc Long Running Agents — Claude Code's built-in /goal command gives you a generator/evaluator loop out of the box: set a completion con 668 ★
README
task-anchor
🇬🇧 English · [🇫🇷 Français](README.fr.md)
**Keep long Claude Code sessions on track.** `task-anchor` is a mod that remembers what the session is for, notices when the conversation drifts away from it, and nudges both you and the model back.
Why
In a long session, each request pulls the context a little further from where you started. Nothing breaks suddenly: the work just slowly stops serving the original goal. `task-anchor` makes that drift visible early and applies a counterweight.
The idea is inspired by Johnson & Huo, *Competition for attention predicts good-to-bad tipping in AI* (Patterns, 2026): accumulated context steers what comes next, and injecting the right content in the context delays the tipping. A mod cannot see a model's hidden states, so this is **not** an implementation of their formula, only the same intuition applied with text signals.
What it does
- Remembers the goal. The first substantial prompt of the session (at least 4 meaningful words) becomes the goal. Casual lines such as "ok" or "on est bon" are ignored. Set or change it any time with
/anchor. - Scores drift. Each prompt is compared to the goal and to the topics already accepted as on-topic, by keyword overlap. Accents, plurals and typos are tolerated. Very short replies ("ok", "oui, vas-y") are neutral. The score is smoothed, so one stray question does not trigger an alarm.
- Shows it. A band above the prompt displays the goal and a 5-dot focus gauge, in yellow when focus is low. A Hide button dismisses it.
- Warns. After repeated off-topic prompts with low focus, a toast reminds you to redefine the goal or carry on.
- Re-anchors the model. The goal is added to the system prompt. Once drift is flagged, the model is asked to say how the current request relates to the goal, or to check whether the goal has changed.
Install
In a terminal Claude Code session:
/plugin install task-anchor --marketplace pquattro/task-anc
Related Skills
Cerveau
Interroge le vault par le sens (pas seulement le mot-clé) et montre les meilleures notes avec leur chemin. Uti
Worksheet Generator
Individualized worksheets for educational and therapeutic professionals - from a support goal, level and age (
Canopus
Canopus keeps long-running AI coding agents locked on their goal: frozen acceptance envelopes, deterministic c
Agent Dialogues
AI agents in live conversation: an Expert teaches a Student any topic, with diagrams and math, while a Judge s
Project Oracle
Scanner and auditor for AI agent context files - generates AGENTS.md/CLAUDE.md, detects drift in CI, scores ex
Garde Fous
Guardrails for the human-AI duo - UltraCode Cockpit rails + Avant-Garde. Claude Code plugin marketplace.
Related Agents
Chasseur Erreurs
À lancer sur demande (jamais automatiquement) pour traquer les erreurs silencieuses dans du code Python/Qt ou
Grand Public
La Joueuse du dimanche, de l'équipe « Les Joueurs ». Le regard du grand public — quelqu'un qui joue peu aux je
01 Audit Citations
Escouade 01 Citations IA : Savoir qui ressort dans les réponses des IA sur 20 questions du marché du client.