fit-sync-pr

fit-sync-pr is a command for Codex from ModelEngine-Group/fit-framework. It costs 10 tokens per session (406 once invoked), scanned A, original, MIT.

A command that reads a task's workspace files and posts a progress summary as a comment on its GitHub Pull Request.

In plain words
What is it for?
Use it to publish a task's current progress and important technical decisions to the related Pull Request.
Why use it?
It removes the need to manually gather implementation status, decisions, and next steps before updating a Pull Request.

Command for Codex

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,116 stars · on GitHub

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

Made for: 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-sync-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-sync-pr.svg)](https://agentmods.dev/commands/modelengine-group/fit-framework/fit-sync-pr)
Your own site
<a href="https://agentmods.dev/commands/modelengine-group/fit-framework/fit-sync-pr"><img src="https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-sync-pr.svg" alt="Measured on agentmods" 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 406 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.00010 $0.00406
Opus 5 $0.00005 $0.00203
Sonnet 5 $0.00002 $0.00081
Haiku 4.5 $0.00001 $0.00041

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

Security

Grade A, and why

fit-sync-pr 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-sync-pr.md · 59 lines

What it actually says

将任务 $1 的处理进度摘要同步到对应的 Pull Request 评论。

执行以下步骤:

  1. 查找任务文件: 按以下优先级搜索:

    • .ai-workspace/active/$1/task.md(优先)
    • .ai-workspace/blocked/$1/task.md
    • .ai-workspace/completed/$1/task.md 如果都不存在,提示用户任务不存在。
  2. 读取任务信息: 从 task.md 中获取 PR 号码(如果没有,提示用户手动指定)、标题、current_step、status 等。

  3. 读取上下文文件(如果存在):

    • analysis.md、plan.md、implementation.md、review.md 从中提取关键进展和决策。
  4. 生成进度摘要: 按以下格式生成 Markdown 摘要:

    ## 🤖 任务进度更新
    
    **任务ID**: $1
    **更新时间**: <当前时间>
    **当前状态**: <状态描述>
    
    ### ✅ 已完成
    - [x] <已完成步骤及核心要点>
    
    ### 📋 当前进展
    <当前步骤详细说明>
    
    ### 🎯 下一步
    <下一步计划>
    
    ---
    *由 Codex 自动生成*
    
  5. 同步到 PR:

    gh pr comment <pr-number> --body "<摘要内容>"
    
  6. 告知用户:

    • 显示同步的 PR 链接
    • 输出同步的核心内容摘要

注意事项:

  • 摘要要简洁,每阶段只提取核心要点
  • 在进度摘要中 @mention 相关审查者
  • 标注重要的技术决策
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 · 59 lines · 10 tokens per session scan A 0aabf5b84904

Subscribe to this mod's changes

fit-sync-pr is a command published in the GitHub repository ModelEngine-Group/fit-framework (2,116 stars, last pushed 5mo ago), licensed MIT. It adds 10 tokens to every session and 406 once invoked, about $0.0001 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.