fit-framework: Command for Claude Code

.codex/commands/fit-implement-task.md

fit-implement-task is a command for Claude Code, Codex from ModelEngine-Group/fit-framework. It costs 9 tokens per session (579 once invoked), scanned A, original, MIT.

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 Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also installed under .codex/. Also seen: positional $N argument; mentions Claude Code; mentions AGENTS.md.

This is ModelEngine-Group/fit-framework's own configuration. It tells Claude Code and Codex how to work on fit-framework itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fit-framework configures →

About the project

FIT is an enterprise AI development framework with a multilingual function engine, a flow orchestration engine, and Java tools for connecting language models, knowledge bases, and external tools. It is for Java-oriented teams building AI applications that can run locally or in distributed deployments with plugins. The catalogue add-ons provide commands, skills, instructions, and settings for working with FIT.

ModelEngine-Group/fit-framework · 2,117 stars · on GitHub · modelengine-ai.net

Reuse

Borrowing it

Nothing to install: this file belongs to ModelEngine-Group/fit-framework. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ModelEngine-Group/fit-framework/main/.codex/commands/fit-implement-task.md
Clone the repo
git clone --depth 1 https://github.com/ModelEngine-Group/fit-framework

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-implement-task/github.svg)](https://agentmods.dev/commands/modelengine-group/fit-framework/fit-implement-task)
Your own site
<a href="https://agentmods.dev/commands/modelengine-group/fit-framework/fit-implement-task"><img src="https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-implement-task/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.

agentmods 80×15 button for fit-implement-task

Your own site · 80×15
<a href="https://agentmods.dev/commands/modelengine-group/fit-framework/fit-implement-task"><img src="https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-implement-task.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00009 $0.00579
Opus 5.5 $0.00004 $0.00232
Sonnet 5.5 $0.00002 $0.00116
Haiku 4.5 $0.00001 $0.00058

Measured 2mo ago against content hash 105333064e71, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

.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. 2mo ago 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 7mo ago), licensed MIT. It adds 9 tokens to every session and 579 once invoked, about $0.0000 per session on Opus 5.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.