task-init

task-init is a command for coding agents from Mozurok/fhorja.dev. It costs 70 tokens per session (8,705 once invoked), scanned A, original, MIT.

A task-initialization command that creates the standard folder and planning files for a new engineering task.

In plain words
What is it for?
Use it when starting a new task in a project that follows this documented task workflow.
Why use it?
It gives the task a shared place for its requirements, decisions, implementation plan, and current state from the beginning.

Command

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 commands/mozurok/fhorja.dev/task-init
Clone the repo
git clone --depth 1 https://github.com/Mozurok/fhorja.dev

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-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/mozurok/fhorja.dev/task-init.svg)](https://agentmods.dev/commands/mozurok/fhorja.dev/task-init)
Your own site
<a href="https://agentmods.dev/commands/mozurok/fhorja.dev/task-init"><img src="https://agentmods.dev/badge/commands/mozurok/fhorja.dev/task-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,705 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.00070 $0.08705
Opus 5 $0.00035 $0.04352
Sonnet 5 $0.00014 $0.01741
Haiku 4.5 $0.00007 $0.00870

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

Security

Grade A, and why

task-init 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.

commands/task-init.md · 340 lines

How it starts

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

task-init

Act as a senior/staff engineering workflow state initializer.

Goal: Create the official task folder and base task memory for a new engineering task inside the task repository.

This command is mandatory at the start of every new task.

Mandatory context bootstrap (before any output):

  • Read these sections in WORKFLOW_OPERATING_SYSTEM.md first:
    • ## LLM execution contract
    • ## Editor mode policy
    • ## Global output contract (including Adaptive handoff and Mode selection rule)
    • ## Cross-cutting workflow guardrails
    • ## Project-level memory
  • Read additional sections only when needed:
    • naming/path setup: ## Naming conventions, ## Repository structure
    • artifact requirements: ## Required task files, ## Optional task files, ## TASK_STATE policy
    • phase/entry ambiguity: ## Command roles index (or wos/command-roles.md for full per-command detail), ## Entry points, ## Gate conditions
    • output sizing: ## Output depth policy
  • Read project-level memory when present:
    • projects/<client>__<project>/PROJECT_CHARTER.md (objective, stack, planned repositories, constraints, non-goals)
    • projects/<client>__<project>/REFERENCES.md (external references with freshness metadata)
    • Do NOT read the projects/<client>__<project>/knowledge/ folder (the human knowledge layer, ADR-0054 and ADR-0055). It is never auto-loaded at task-init; its content reaches the AI only when a human pastes an excerpt into the task prompt. This is distinct from LEARNINGS.md, which task-init does scan (ADR-0017 consume side below).
    • When either file is missing, treat the project as not yet bootstrapped and warn the user (see Operating rules); do not block the task.
  • Read user-level memory when present:
    • /USER_MEMORY.md at the repo root (preferences, tool quirks, recurring gotchas, per-project pointers, cross-project learnings; gitignored per ADR-0016).
    • When absent, proceed silently; no warning. Bootstrap is the user's responsibility (cp templates/USER_MEMORY.template.md USER_MEMORY.md).
    • Apply preferences to the proposed task artifacts (language, response length, emoji policy, comment density) when they affect the artifact shape. Layered precedence: task memory > project memory > user memory; specific overrides general (per ADR-0016).
  • Read prior LEARNINGS when present (ADR-0017 consume side):
    • Run scripts/rank-learnings.sh "<task keywords or objective>" <project-path> to scan projects/<client>__<project>/active/*/LEARNINGS.md and the most recently archived tasks under archive/, ranking entries by recency plus tag and keyword overlap (ADR-0071); also read the cross-project learnings in /USER_MEMORY.md.
    • Surface the ranker's capped "relevant prior lessons" block inline in the handoff (the few most relevant entries only) so the new task starts aware of past failed approaches and gotchas. Relevance-filter; do not dump every entry.
    • Read-only: never compact, prune, or rewrite any LEARNINGS.md (per ADR-0017 item 6). When nothing is relevant, say nothing.
  • Read the commands/ directory command inventory to ensure command names and availability are current.
  • Align all routing recommendations and next-command suggestions with the current command set.
  • If WORKFLOW_OPERATING_SYSTEM.md and command files disagree, explicitly follow the most recent command files and flag the mismatch.
  • Official next-command names only: every recommended next command (including inside TASK_STATE.md and the handoff Run now line) MUST be the basename of an existing commands/<name>.md file in this workflow repository. Never invent names (invalid: task-plan, plan, execute-task). If the next step is discovery/scoping after init, the default is usually impact-analysis unless TASK_STATE.md already proves discovery is unnecessary.

Required inputs:

  • new task description / objective from the user
  • client and project identifier (or enough context to derive <client>__<project>)
  • task slug (or enough context to derive YYYY-MM-DD_<task-slug>)
  • intended editor mode (Ask for drafting only, or Agent for actual file creation in my_work_tasks)
  • relevant source-of-truth pointers known so far (codebase path, branch, tickets, docs), if available
  • optional: list of repositories for multi-repo tasks. Provide only when the task touches 2 or more product repositories that ship coordinated. Each entry: identifier (lowercase, hyphenated, unique), local path, base branch, role tag (backend / frontend / shared / infra / mobile / other). See the spec ## Multi-repo support (v1) for the schema.
  • optional: worktree isolation opt-in. Provide when the task should run on its own git worktree and branch so it does not collide with other active tasks on the same repository. Only meaningful on a git-backed project; ignored otherwise. Provisioning lives in task-workspace, not here (ADR-0074). See the spec ## Multi-repo support (v1) -> ### Per-task worktree isolation (opt-in, v1).

Read the full file on GitHub · 340 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. yesterday First seen · 340 lines · 70 tokens per session scan A 3005bbbba515

Subscribe to this mod's changes

task-init is a command published in the GitHub repository Mozurok/fhorja.dev (6 stars, last pushed 20d ago), licensed MIT. It adds 70 tokens to every session and 8,705 once invoked, about $0.0003 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-09-03.