codes v0.1.3
主要变更
• 改进 skill 文档,优化使用场景说明
- 重写 "When to use codes vs rg/grep" 章节,采用更直观的场景化描述
- 明确列出 codes 的四大用途:找定义、追踪引用、浏览文件符号、全局符号搜索
- 强调
references命令的 AST-aware 特性,相比 grep 有更少的误报 - 说明 fallback 策略:先用 codes 定位,再用 rg/grep 查文本细节
- 新增 Speed 章节,展示性能数据(10 秒索引 305k 符号)
- description 简化为直接说明使用场景,吸引 Agent 主动使用
• 新增 --version 标志
- 支持
codes --version或codes -V查看版本号 - 版本号从编译时
CODES_VERSION环境变量注入 - 输出格式:
codes <version>
English
Highlights
• Improved skill documentation with scenario-based guidance
- Rewrote "When to use codes vs rg/grep" section with more intuitive scenario descriptions
- Clearly lists four main use cases: find definitions, track usages, browse file symbols, global symbol search
- Emphasizes AST-aware nature of
referencescommand for fewer false positives vs grep - Documents fallback strategy: use codes first to locate, then rg/grep for text patterns
- Added Speed section showcasing performance metrics (305k symbols indexed in 10s)
- Simplified description to focus on use cases, making it more appealing for Agent usage
• New --version flag
- Supports
codes --versionorcodes -Vto display version - Version injected at compile time from
CODES_VERSIONenvironment variable - Output format:
codes <version>