fit-framework: Command for Claude Code

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

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

A command that reads a code review report, fixes its listed problems in priority order, runs relevant tests, and records the fixes. A code review is a check of proposed changes by another developer or tool.

In plain words
What is it for?
It is for resolving blocker, major, and minor findings in an active software task, especially in projects using Maven tests and structured task files.
Why use it?
It turns review comments into a tracked repair process instead of leaving issues scattered across messages. It helps ensure fixes are tested and documented before another review.

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 Codex.

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,115 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-refine-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-refine-task

README.md
[![agentmods](https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-refine-task.svg)](https://agentmods.dev/commands/modelengine-group/fit-framework/fit-refine-task)
Your own site
<a href="https://agentmods.dev/commands/modelengine-group/fit-framework/fit-refine-task"><img src="https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-refine-task.svg" alt="Measured on agentmods" 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 538 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.1 $0.00009 $0.00538
Opus 5 $0.00005 $0.00269
Sonnet 5 $0.00002 $0.00108
Haiku 4.5 $0.00001 $0.00054

Measured 3d ago against content hash a04d514ab333, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

fit-refine-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 3d 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-refine-task.md · 61 lines

What it actually says

处理任务 $1 的代码审查反馈,修复审查中发现的问题。

执行以下步骤:

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

    • .ai-workspace/active/$1/task.md
    • .ai-workspace/active/$1/review.md 如果任一文件不存在,提示用户先完成前置步骤。
  2. 读取审查报告: 仔细阅读 .ai-workspace/active/$1/review.md,整理:

    • 🔴 Blocker 问题(必须修复)
    • 🟡 Major 问题(建议修复)
    • 🟢 Minor 问题(可选修复)
  3. 逐项修复: 按优先级(Blocker → Major → Minor)逐项修复:

    • 对每个问题,理解根因并实施修复
    • 修复后运行相关测试验证
    • 记录每个问题的修复方式
  4. 运行测试验证:

    mvn test -pl :<module-name>
    

    确保所有测试通过,包括新增的回归测试。

  5. 更新实现报告: 在 .ai-workspace/active/$1/implementation.md 中追加"修复记录"章节:

    • 列出每个修复的问题及修复方式
    • 新增或修改的文件
    • 测试验证结果
  6. 更新任务状态: 使用 Edit 工具更新 .ai-workspace/active/$1/task.md:

    • current_step: refinement
    • assigned_to: codex
    • updated_at: 当前时间
  7. 告知用户:

    • 输出修复的问题数量(按级别)
    • 提示重新审查:
      • Claude Code / OpenCode: /review-task $1
      • Gemini CLI: /fit:review-task $1
      • Codex CLI: /prompts:fit-review-task $1
    • 或直接提交:
      • Claude Code / OpenCode: /commit
      • Gemini CLI: /fit:commit
      • Codex CLI: /prompts:fit-commit

注意事项:

  • 严格按照审查报告修复,不要添加额外变更
  • 每修复一个问题就运行测试
  • 不要自动执行 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. 3d ago First seen · 61 lines · 9 tokens per session scan A a04d514ab333

Subscribe to this mod's changes

fit-refine-task is a command published in the GitHub repository ModelEngine-Group/fit-framework (2,115 stars, last pushed 5mo ago), licensed MIT. It adds 9 tokens to every session and 538 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-09-03.