fit-implement-task

A command for carrying out a planned software task from files stored in the project. It reads the task plan, writes code and tests, runs the specified checks, records an implementation report, and updates the task status.

In plain words
What is it for?
Use it when a task already has both a task file and an implementation plan, and you need to implement the plan, run its tests, list changed files, report results, and mark implementation complete.
Why use it?
It gives a repeatable path from an approved technical plan to verified code while documenting what changed and any differences from the plan.

Command for Codex

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/modelengine-group/fit-framework/fit-implement-task
Clone the repo
git clone --depth 1 https://github.com/ModelEngine-Group/fit-framework

Made for: Codex.

Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 579 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.00009 $0.00579
Opus 5 $0.00005 $0.00290
Sonnet 5 $0.00002 $0.00116
Haiku 4.5 $0.00001 $0.00058

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

Security

Grade A, and why

fit-implement-task 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.

.codex/commands/fit-implement-task.md · 63 lines

What it actually says

根据技术方案实施任务 $1,编写代码和测试,输出实现报告。

执行以下步骤:

  1. 验证前置条件: 检查必需文件是否存在:

    • .ai-workspace/active/$1/task.md
    • .ai-workspace/active/$1/plan.md 如果任一文件不存在,提示用户先完成前置步骤。
  2. 读取技术方案: 仔细阅读 .ai-workspace/active/$1/plan.md,理解:

    • 技术方案和实现策略
    • 详细的实施步骤
    • 需要创建/修改的文件清单
    • 测试策略
  3. 执行代码实现: 按照 plan.md 中的步骤顺序执行:

    • 按照方案实现功能代码
    • 编写完整的单元测试
    • 遵循项目编码规范(参考 AGENTS.md)
    • 修改带版权头的文件时,先运行 date +%Y 获取当前年份并更新版权头
  4. 运行测试验证:

    mvn test -pl :<module-name>
    

    确保所有测试通过。

  5. 输出实现报告: 创建 .ai-workspace/active/$1/implementation.md,包含:

    • 已修改文件列表(新增文件和修改文件)
    • 关键代码说明(重要逻辑的解释和代码片段)
    • 测试结果(测试用例数、通过率、测试输出)
    • 与方案的差异(如果有)
    • 待审查事项(需要 reviewer 关注的点)
  6. 更新任务状态: 使用 Edit 工具更新 .ai-workspace/active/$1/task.md:

    • current_step: implementation
    • assigned_to: codex
    • updated_at: 当前时间
    • 标记 implementation.md 为已完成
    • 在"工作流进度"中标记 implementation 为完成 ✅
  7. 告知用户:

    • 输出修改文件数、新增文件数、测试通过数
    • 提示下一步进行代码审查:
      • Claude Code / OpenCode: /review-task $1
      • Gemini CLI: /fit:review-task $1
      • Codex CLI: /prompts:fit-review-task $1

注意事项:

  • 严格遵循 plan.md,不要偏离技术方案或添加计划外功能
  • 每完成一个步骤就运行测试
  • 不要自动执行 git commit,等待代码审查通过后由用户提交
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 · 63 lines · 9 tokens per session scan A 105333064e71

Subscribe to this mod's changes

fit-implement-task is a command published in the GitHub repository ModelEngine-Group/fit-framework (2,117 stars, last pushed 5mo ago), licensed MIT. It adds 9 tokens to every session and 579 once invoked, about $0.0000 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-30.