fit-framework: Command for Claude Code

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

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

A task command that marks a work item as blocked, records why progress cannot continue, and moves it into a blocked-work folder.

In plain words
What is it for?
Use it when a build or test cannot be resolved, a dependency is broken, requirements need clarification, or outside help is required.
Why use it?
It keeps unfinished work from being treated as active and preserves the technical, requirement, resource, or decision problem that stopped it.

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,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-block-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-block-task

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/modelengine-group/fit-framework/fit-block-task"><img src="https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-block-task.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 733 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.00010 $0.00733
Opus 5.5 $0.00004 $0.00293
Sonnet 5.5 $0.00002 $0.00147
Haiku 4.5 $0.00001 $0.00073

Measured 2mo ago against content hash f3b5c76511c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fit-block-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-block-task.md · 80 lines

What it actually says

标记任务 $1 为阻塞状态,记录详细的阻塞原因,并移动到 blocked 目录。

使用场景:

  • ❌ 编译失败且无法修复
  • ❌ 测试失败且原因不明
  • ❌ 依赖库存在 Bug
  • ❓ 需求不明确,需要澄清
  • ⏳ 等待外部依赖

不应该标记为阻塞:

  • ✅ 代码审查发现问题 → 使用 /refine-task $1 修复
  • ✅ 实现遇到困难但可以解决 → 继续实施

执行以下步骤:

  1. 验证任务存在:

    test -f .ai-workspace/active/$1/task.md && echo "✅ 任务存在" || echo "❌ ERROR: 任务不存在"
    
  2. 分析并记录阻塞原因: 用户提供的阻塞原因: $2 如果上述值为空,需要询问用户确定阻塞原因。 确定以下信息:

    • 阻塞类型: 技术问题/需求问题/资源问题/决策问题
    • 问题描述、根本原因、尝试的解决方案、需要的帮助
  3. 获取当前时间:

    date '+%Y-%m-%d %H:%M:%S'
    
  4. 更新任务状态: 使用 Edit 工具更新 task.md:

    • status: blocked
    • updated_at: 当前时间
    • blocked_at: 当前时间
    • blocked_by: codex
    • blocked_reason: 简短描述阻塞原因
  5. 在 task.md 中添加"⚠️ 阻塞信息"章节(阻塞概要、问题描述、根本原因、尝试方案、解除条件)

  6. 移动到阻塞目录:

    mkdir -p .ai-workspace/blocked && mv .ai-workspace/active/$1 .ai-workspace/blocked/
    
  7. 验证移动成功:

    test ! -d .ai-workspace/active/$1 && echo "✅ 已移除 active" || echo "❌ active 仍存在"
    test -d .ai-workspace/blocked/$1 && echo "✅ 已移动到 blocked" || echo "❌ 移动失败"
    
  8. 告知用户:

    ⚠️  任务 $1 已标记为阻塞
    阻塞位置: .ai-workspace/blocked/$1/
    
    • 提示下一步:
      • 解决阻塞问题后手动移回 active 目录
      • 恢复后查看任务状态:
        • Claude Code / OpenCode: /check-task $1
        • Gemini CLI: /fit:check-task $1
        • Codex CLI: /prompts:fit-check-task $1

解除阻塞:

mv .ai-workspace/blocked/$1 .ai-workspace/active/

然后更新 task.md: status 改回 active,移除 blocked 相关字段。

注意事项:

  • 阻塞信息要详细、准确、客观
  • 标记后要主动跟进问题解决进度
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 · 80 lines · 10 tokens per session scan A f3b5c76511c5

Subscribe to this mod's changes

fit-block-task is a command published in the GitHub repository ModelEngine-Group/fit-framework (2,117 stars, last pushed 7mo ago), licensed MIT. It adds 10 tokens to every session and 733 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.