34 lines
894 B
Markdown
34 lines
894 B
Markdown
---
|
||
description: 将模型预设应用到 agent 文件。用法:/dr-apply-models <profile>
|
||
agent: dr-pm
|
||
---
|
||
|
||
你是 dr-pm。把模型预设应用到 agent 配置文件。
|
||
|
||
## 执行步骤
|
||
|
||
1. 如果 `$ARGUMENTS` 为空,先列出可用 profile:
|
||
|
||
```bash
|
||
uv run python scripts/dr.py models --list
|
||
```
|
||
|
||
并提示用户至少选择 `simple / medium / premium` 之一。
|
||
|
||
2. 如果 `$ARGUMENTS` 非空,执行 dry-run:
|
||
|
||
```bash
|
||
uv run python scripts/dr.py apply-models --profile "$ARGUMENTS" --target both --dry-run
|
||
```
|
||
|
||
3. 将 dry-run 结果展示给用户确认影响范围后,再执行实际应用:
|
||
|
||
```bash
|
||
uv run python scripts/dr.py apply-models --profile "$ARGUMENTS" --target both
|
||
```
|
||
|
||
4. 最后输出:
|
||
- 采用的 profile
|
||
- 更新的文件数与路径
|
||
- 下一步建议(如需同步到本机 `.codex/**`,运行 `uv run python scripts/install_codex_adapter.py --force`)
|