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.
git clone --depth 1 https://github.com/Mozurok/fhorja.devWrote 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.
[](https://agentmods.dev/commands/mozurok/fhorja.dev/task-init)<a href="https://agentmods.dev/commands/mozurok/fhorja.dev/task-init"><img src="https://agentmods.dev/badge/commands/mozurok/fhorja.dev/task-init/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00142 | $0.07391 |
| Opus 5.5 | $0.00057 | $0.02956 |
| Sonnet 5.5 | $0.00028 | $0.01478 |
| Haiku 4.5 | $0.00014 | $0.00739 |
Grade C, and why
task-init scanned grade C with 1 finding 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 1mo 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.
Hidden instructionshighPrompt injection
Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.
<!-- shared:projects-ignore --> How it starts
The opening of the file, as written. The whole thing — 257 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. Mandatory at the start of every new task.
Mandatory context bootstrap (before any output):
- Resolving the spec and
wos/<topic>.md: canonical repository FIRST. Otherwise use active-adapter docs:~/.claude/workflow-docs(CLAUDE_WORKFLOW_DOCS_DIR),~/.cursor/workflow-docs(WORKFLOW_DOCS_DIR; project.cursor/workflow-docson project installs),~/.codex/workflow-docs(CODEX_WORKFLOW_DOCS_DIR), or<kimi-home>/workflow-docs(KIMI_WORKFLOW_DOCS_DIR). Nonempty overrides win. Kimi home:KIMI_CODE_HOME, else existing~/.kimi-code, else existing~/.kimi, default~/.kimi-code. Use one root for both paths; try other adapters if absent or unknown. Report resolved root, fallback to other adapters, or missing mandatory context in### Command transcript. Installed snapshots refresh and prune retired topics only on sync. - Read these
WORKFLOW_OPERATING_SYSTEM.mdsections 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:
## Task files,## TASK_STATE policy(per-file contract: loadwos/task-file-contracts.md) - phase/entry ambiguity:
## Command rolesindex (orwos/command-roles.mdfor full per-command detail),## Entry points,## Gate conditions - output sizing:
## Output depth policy
- naming/path setup:
- Read project-level memory when present:
projects/<client>__<project>/PROJECT_CHARTER.mdprojects/<client>__<project>/REFERENCES.md: check that it EXISTS and link to it; do NOT read it here (ADR-0214).- Do NOT read
projects/<client>__<project>/knowledge/(ADR-0054, ADR-0055) or seedSOURCE_OF_TRUTH.mdfrom it. - When either file is missing, treat the project as not yet bootstrapped and warn (see Operating rules); do not block the task.
- Read
/USER_MEMORY.mdat the repo root when present (ADR-0016); when absent, proceed silently. Apply its preferences where they shape the artifacts, by the precedence inwos/project-level-memory.md ### Layered precedence. - Read prior LEARNINGS when present (ADR-0017 consume side):
- Resolve
scripts/rank-learnings.shagainst the WORKFLOW ROOT, the same root the two-root preflight found for the spec andwos/(the repository clone, or the installed docs directory, which ships this one script per ADR-0214), never against the task repository, which has noscripts/. When it is present in neither, say so in one### Command transcriptline (rank-learnings: not installed, prior LEARNINGS not consulted) instead of skipping the step silently. - Run it as
rank-learnings.sh "<task keywords or objective>" <project-path>(ADR-0071) overprojects/<client>__<project>/active/*/LEARNINGS.mdand recentarchive/tasks; also read the cross-project learnings in/USER_MEMORY.md. - Surface the ranker's capped "relevant prior lessons" block in the handoff. Read-only: never compact, prune, or rewrite any
LEARNINGS.md. When nothing is relevant, say nothing.
- Resolve
- Read the clone command inventory when available; otherwise use installed Fhorja commands and skills.
- Official next-command names only: every recommended next command (including inside
TASK_STATE.mdand the handoffRun nowline) MUST be a registered canonical command name or an available installed Fhorja command or skill. Never invent names. The after-init route is set under Escalation assessment. Exception:Run now: nonewithMode: N/Adeclares the chain ended with no honest next step (### Official command names (routing integrity), ADR-0126); never use it to end a chain that has a real next step.
Required inputs:
- task description / objective
- client and project identifier (or context to derive
<client>__<project>) - task slug (or context to derive
YYYY-MM-DD_<task-slug>) - intended editor mode (Ask for drafting only, Agent for actual file creation)
- known source-of-truth pointers (codebase path, branch, tickets, docs), if any
- optional: repositories, only when the task touches 2 or more coordinated product repositories. Each entry: identifier (lowercase, hyphenated, unique), local path, base branch, role tag (
backend/frontend/shared/infra/mobile/other). Schema: spec## Multi-repo support (v1). - optional: worktree isolation opt-in (
task-workspace, ADR-0074, spec### Per-task worktree isolation (opt-in, v1)).
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.
- 1mo ago Changed · -59 lines · +72 tokens per session 27b3bec15f65
- 1mo ago Changed · +2 lines d879e260e7a0
- 2mo ago Changed · -20 lines bb45525ab6f8
- 2mo ago Changed · -6 lines scan A → C c585fe3ae989
- 2mo ago First seen · 340 lines · 70 tokens per session scan A 3005bbbba515
task-init is a command published in the GitHub repository Mozurok/fhorja.dev (10 stars, last pushed 1mo ago), licensed MIT. It adds 142 tokens to every session and 7,391 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
task-init compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| task-initMozurok/fhorja.dev | Command | 10 | 1mo ago | MIT | C | 142 | Claude Code |
| kiro-steering-customgotalab/cc-sdd | Command | 3.8k | 1mo ago | MIT | A | 0 | Claude Code |
| ijfw-executeFerroxLabs/ijfw | Command | 214 | today | MIT | A | 36 | Claude Code |
| ijfw-metricsFerroxLabs/ijfw | Command | 214 | today | MIT | A | 37 | Claude Code |
| specmanager-buildjoanseg/specmanager | Command | 27 | 13d ago | MIT | B | 25 | Claude Code |
| alignaidemd-mcp/server | Command | 4 | 2d ago | MIT | A | 0 | Claude Code |
| tasksChappygo-OS/Atomic-Spec | Command | 10 | 24d ago | MIT | C | 21 | Claude Code |