Task-Anchor-MCP AGENTS.md

Task-Anchor-MCP AGENTS.md is an instructions file for Codex, OpenCode from Kodaxadev/Task-Anchor-MCP. It costs 1,153 tokens per session, scanned A, original, MIT.

Instructions for Task Anchor, a tool that helps coding agents stay focused on a task and track progress. They explain how to connect its MCP server, or follow a manual process when it is unavailable.

In plain words
What is it for?
Use it when setting up Task Anchor, configuring its state files, or following its task-tracking protocol with or without an MCP connection.
Why use it?
It helps prevent unfinished work, task drift, and lost progress during longer coding sessions.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/kodaxadev/task-anchor-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/Kodaxadev/Task-Anchor-MCP

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Task-Anchor-MCP AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kodaxadev/task-anchor-mcp/agents-md.svg)](https://agentmods.dev/instructions/kodaxadev/task-anchor-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kodaxadev/task-anchor-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/kodaxadev/task-anchor-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,153 This file is loaded in full into every session.
When invoked 1,153 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01153 $0.01153
Opus 5 $0.00576 $0.00576
Sonnet 5 $0.00231 $0.00231
Haiku 4.5 $0.00115 $0.00115

Measured 5d ago against content hash c8908e1c0add, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Task-Anchor-MCP AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Task Anchor — Agent Instructions

This project includes a Task Anchor MCP server that provides ADHD executive function enforcement. If you have MCP support, connect to it. If not, follow the manual protocol below.

MCP Server Setup

The server runs as a Python package:

{
  "mcpServers": {
    "task-anchor": {
      "command": "python",
      "args": ["-m", "task_anchor.server"],
      "cwd": "/absolute/path/to/TaskAnchor/mcp-server"
    }
  }
}

Or if installed via pip (pip install -e . from mcp-server/):

{
  "mcpServers": {
    "task-anchor": {
      "command": "task-anchor"
    }
  }
}

State files live in .claude/skills/task-anchor/ inside the repo root. Override with env var: TASK_ANCHOR_DIR=/absolute/path/to/state/dir

Package Structure

mcp-server/
├── pyproject.toml
└── task_anchor/
    ├── config.py           — absolute path resolution (immune to cwd, env-overridable)
    ├── models.py           — TaskLock dataclass, drift signal weights + thresholds
    ├── storage.py          — atomic file I/O, cross-platform locking (fcntl/msvcrt)
    ├── drift.py            — scoring engine, completion validation, history logging
    ├── flow.py             — flow mode activate/deactivate/auto-expire
    ├── tone.py             — tone persistence + message resolver
    ├── messages.py         — message registry (aggregator, integrity-checked at import)
    ├── messages_core.py    — templates: lock, drift, parked, scope
    ├── messages_session.py — templates: completion, session, flow, celebration
    ├── helpers.py          — shared utilities (git branch, load lock, session log)
    ├── streak.py           — daily streak tracking, completion celebration (stderr only)
    ├── tools.py            — MCP tool schema definitions (14 tools)
    ├── handlers.py         — core tool handler coroutines (lock, drift, parked, scope, tone, flow)
    ├── handlers_session.py — session lifecycle handlers (checkpoint, resume)
    └── server.py           — MCP wiring, route table, entry point

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 120 lines · 1,153 tokens per session scan A c8908e1c0add

Subscribe to this mod's changes

Task-Anchor-MCP AGENTS.md is an instructions file published in the GitHub repository Kodaxadev/Task-Anchor-MCP (2 stars, last pushed 3mo ago), licensed MIT. It adds 1,153 tokens to every session, about $0.0058 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.