使用文档

配置管理

默认位置:$HOME/.config/zdll/config.yaml,可用 --config 覆盖。

完整字段示例

llm: provider: anthropic # API Key 等凭据不在本地配置文件中填写,由授权环节统一管理 model: kimi-code/kimi-for-coding thinking: true analysis: workers: 5 max_rounds: 30 max_tasks: 200 max_time: 7200 stagnation: 3 auto_approve: true sector_threshold_files: 5000 paths: workspace: ~/zdll_workspace skills: ./skills # 明文目录或技能包 license: key: "" # 或 --license / ZDLL_LICENSE_KEY server_url: "" # 或 --license-server / ZDLL_LICENSE_SERVER_URL output: format: markdown # markdown | json | sarif | dot | graphml file: "" no_report: false ci: fail_on: "" # 仅对 huntzero ci 生效 baseline: "" generate_baseline: "" summary_format: text # text | json ui: quiet: false no_color: false no_emoji: false # 也可通过 ZDLL_NO_EMOJI=1 设置 scan: diff_base: "" # 例如 main,仅扫描 git ref 以来的变更

配置优先级

显式 flag > 环境变量 > 配置文件 > 默认值。ci.* 配置段仅对 huntzero ci 子命令生效——避免配置文件里写了 ci.fail_on: high 误伤交互式 scan。

配置命令

./huntzero config init # 生成默认配置 ./huntzero config validate # 校验当前配置 ./huntzero config get llm.model # 读取某键 ./huntzero config set analysis.workers 8 # 写入某键 ./huntzero config unset analysis.workers # 删除某键
注意:config set 不接受 llm.api_key 与 llm.base_url 等凭据字段。