nativeprompt 是一个命令行工具,能自动将用户提示改写为目标 AI 模型 CLI(Claude Code 或 Codex)的原生方言,应用该厂商官方文档中的规则,并显示每条修改对应的具体规则。

Stars

29

7 天增长

暂无数据

Fork 数

2

开放 Issue

0

开源协议

MIT

最近更新

2026-07-30

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它解决了不同厂商提示建议之间的冲突,无需 API 密钥即可自动检测当前运行的模型,为每次修改提供透明且附带来源的解释,并且零依赖、确定性地离线运行。

适合谁使用

  • 使用 Claude Code 或 Codex CLI 的开发者与工程师
  • 需要针对不同模型家族优化提示的提示工程师
  • 维护多模型代理型 CLI 并希望保持提示一致的团队
  • 对基于规则的提示转换工具感兴趣的开源贡献者

典型使用场景

  • 将为 Claude Code 优化的提示转换为 Codex 版本(或反之),并附带文档化的修改原因
  • 确保团队提示符合各厂商最新发布的最佳实践
  • 通过确定性离线接口将提示改进集成到 CI/CD 流水线中
  • 审核和调试同一提示在两个模型 CLI 上表现差异的原因

项目优势

  • 零运行时依赖(仅标准库),完全离线且确定性运行
  • 自动从环境、会话或配置文件中检测活动模型,优先级透明
  • 每条规则均来自官方厂商文档并附带链接,每次修改都有解释
  • 自更新机制(`update --diff`)显示厂商文档的精确变更,每周 CI 检测漂移

使用前须知

  • 目前仅支持 Claude Code 和 Codex CLI,不支持 API 或网页聊天界面
  • 检测器基于正则启发式,可能存在误报或漏报
  • CLI 解释目前为俄语(英文输出已列入路线图);别名到版本的解析能力有限

README 快速开始

Quick start

项目描述

Rewrite your prompt into the native dialect of the model you're actually running (Claude Code / Codex) — by each vendor's OFFICIAL rules — and see which rule drove each edit. Self-updating. Zero deps.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

lopopolo
精选
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI 与机器学习AI 智能体
2,390
MoonshotAI
精选
MoonshotAI GitHub avatar

Kimi-K3

Kimi K3 is an open-weight, 2.8T-parameter native multimodal agentic model with a 1M-token context window, designed for frontier coding, knowledge work, and reasoning tasks.

AI 与机器学习AI 智能体
3,348
mshumer
精选
mshumer GitHub avatar

Claude-of-Duty

A browser-based first-person shooter built entirely with procedural generation and orchestrated AI agents, featuring 55k lines of Three.js/WebGL2 code and no art assets.

AI 与机器学习AI 智能体
1,234