task-code

A two-phase workflow for breaking coding work into tracked subtasks and progress records. It applies rules from the project's CLAUDE.md file, which is a set of instructions for the coding assistant.

In plain words
What is it for?
Use it to run a coding phase with architecture or diagnosis checks when applicable, followed by a progress phase that records work in progress.md.
Why use it?
It gives implementation work a defined structure and keeps progress visible while different phases or assistant agents handle the task.

Skill for Claude CodeCodex

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 skills/easyinplay/harnessed/code
Any agent
npx skills add easyinplay/harnessed --skill code
Clone the repo
git clone --depth 1 https://github.com/easyinplay/harnessed

Made for: Claude Code, Codex.

Per session 160 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,891 The whole file, excluding the scripts and references it only reads on demand.
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.00160 $0.01891
Opus 5 $0.00080 $0.00945
Sonnet 5 $0.00032 $0.00378
Haiku 4.5 $0.00016 $0.00189

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

Security

Grade A, and why

task-code 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 yesterday.

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.

workflows/task/code/SKILL.md · 104 lines

How it starts

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

task-code workflow (v3)

Overview

2-phase sub-workflow mapping the user's CLAUDE.md Stage ③.b 子任务编码 discipline onto the harnessed runtime, fully harnessed.workflow.v3 schema (Phase v3.0-3.4 W0 T3.4.W0.7 — D-09 L0 Discipline Substrate + D-05 conditional invokes_tools + D-15 planning-with-files plugin).

phase id upstream model capability / invokes_tools
1 01-code karpathy sonnet invokes_tools: [{if: phase.architecture_health_audit, tool: improve-codebase-architecture}, {if: subtask.bug_root_cause_unknown, tool: diagnose}]
2 02-progress planning-with-files haiku {{ capabilities.planning-with-files.cmd }} / invokes: /plan / artifacts_expected: [progress.md]

Per-phase config loads from workflows/task/code/workflow.yaml; engine.runRouting spawns each phase as a sub-agent via @anthropic-ai/claude-agent-sdk 0.3.142+.

Karpathy 4 心法 (L0 Discipline Substrate always-on)

Phase 01-code 的 upstream 是 karpathy — runtime engine 加载 workflows/disciplines/ karpathy.yaml discipline rules 应用 cross-cutting (Think Before Coding / Simplicity First / Surgical Changes / Goal-Driven Execution + ≤200L hard limit + no-feature-creep

  • trust-internal-code + no-comments-default). 不 invoke slash cmd, 通过 hook 强制 behavioral rule per D-09 L0 Discipline Substrate.

mattpocock conditional route (D-05 invokes_tools)

Phase 01-code 按 phase fact context 条件性 fire 2 mattpocock 招式:

  • improve-codebase-architecture — 周期架构健康审查 (when phase.architecture_health_audit == true)
  • diagnose — bug 系统化排错 (when subtask.bug_root_cause_unknown == true)

2 触发条件 OR-chain, 任 1 fire 即 invoke 对应招式 — 不互斥 (sister CLAUDE.md "mattpocock 招式按需召唤" pattern, NOT exclusive). 无触发 = pure karpathy 心法 only.

CodeGraph navigation (opt-in, v4.17.0)

If the project has a .codegraph/ index (opt-in CodeGraph semantic index — sister capabilities.yaml codegraph entry), prefer the codegraph MCP tools (codegraph_explore) for symbol lookup / call paths / impact analysis instead of grep/glob/file-by-file Read crawling. No .codegraph/ → skip this (no install nag).

Read the full file on GitHub · 104 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 104 lines · 160 tokens per session scan A ffe66859d512

Subscribe to this mod's changes

task-code is a skill published in the GitHub repository easyinplay/harnessed (2 stars, last pushed 6d ago), licensed Apache-2.0. It adds 160 tokens to every session and 1,891 once invoked, about $0.0008 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.