← 返回 CLI 目录
just
$ just 社区开源 低风险 Casey Rodarmor · 代码托管与研发协同 · CC0-1.0 · macos / linux / windows
基于 justfile 定义项目任务的现代命令运行器,避免 Makefile 的制表符陷阱。原生支持 --dump --dump-format json,让 Agent 在用 --dry-run 预演或执行前即可完整读取全部配方、参数与注释。
FCRS-1.0 综合评分
91 /100
极佳 (Excellent)
中置信度 (源码/文档)
零摩擦安装命令
brew install just CLI vs MCP 选型建议 仅 CLI 可用
单个高速二进制即可直接检查并运行本地 justfile 配方;MCP 只会增加无谓的间接层。
Agent 友好度体检单
✓ 原生 JSON 输出
— 字段裁剪
✓ 无头非交互
✓ 支持 Dry-Run
— 只读模式开关
✓ 支持 NO_COLOR
✓ 自省/Schema 发现
— 官方 SKILL.md
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
Agent 友好度 23 / 25
支持 --dump --dump-format json、--list、--dry-run 与 --color=never,配方发现毫无障碍。
just --dump --dump-format jsonexposes full AST/recipes as JSON--dry-runand--color=neverwork cleanly without TTY
安全与权限边界 22 / 25
只读 --dump 与 --dry-run 让 Agent 在执行前即可审查展开后的具体 Shell 命令。
--dry-runprints expanded commands before running
安装与运行摩擦 15 / 15
静态 Rust 单二进制,可通过 Homebrew、Cargo、npm 与发布包跨平台安装。
- Zero runtime dependencies and sub-10ms startup
能力覆盖与边际价值 14 / 15
以带参数配方与 .env 支持优雅替代易错的 Makefile 与散乱脚本。
- Supports recipe parameters, dependencies, and cross-shell shebangs
维护与来源背书 8 / 10
由 Casey Rodarmor 以 CC0-1.0 持续积极维护,社区采纳度极高。
- Well-maintained
casey/justrepository
文档与可验证性 9 / 10
just.systems/man/en/ 手册详尽,--help 输出清晰。
- Full reference manual and examples
安全边界、鉴权与放权指南
鉴权方式
无需鉴权
凭证存储位置
不存储凭证;执行本地 justfile 配方,若开启 set dotenv-load 则按需加载 .env。
潜在副作用
只读查询 本地写入
费用与配额提示
CC0-1.0 公有领域开源二进制,完全免费。
可复制到 CLAUDE.md / AGENTS.md 的安全护栏
# just Agent Rules - Run `just --dump --dump-format json` or `just --list` first to discover exact recipe names and parameters. - Use `just --dry-run <recipe>` before running unfamiliar recipes that may mutate files.
Agent 高频安全命令配方
只读查询(安全推荐)
以 JSON 导出全部配方与参数
just --dump --dump-format json
将解析后的 justfile 结构(配方名、参数、依赖与文档注释)导出为 JSON。
在不执行的前提下预演配方
just --dry-run --color=never test
打印 just test 将会执行的精确 Shell 命令,但不实际执行。
受控写入与预演
以无 ANSI 彩色输出执行配方
just --color=never lint
关闭 ANSI 色彩运行 lint 配方,便于干净捕获日志。
核心优势
- +
just --dump --dump-format json一次调用即可获取精确配方元数据。 - +
--dry-run在执行前预演每一行展开后的命令。 - + 零依赖单 Rust 二进制,启动极快。
注意事项与踩坑点
- ! 运行配方本质上会执行
justfile中定义的任意 Shell 命令。 - ! 若配方开启
set interactive或内部调用交互式子命令,仍可能等待终端输入。
已验证兼容的 Agent 宿主
Claude Code Codex CLI Gemini CLI