paseo
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePaseo CLI Commands
Paseo CLI 命令
Use these CLI commands to manage agents:
bash
undefined使用以下CLI命令管理Agent:
bash
undefinedList agents (directory-scoped by default)
列出Agent(默认按目录范围)
paseo ls # Only shows agents for current directory
paseo ls -g # All agents across all projects (global)
paseo ls --json # JSON output for parsing
paseo ls # 仅显示当前目录下的Agent
paseo ls -g # 所有项目中的全部Agent(全局)
paseo ls --json # 输出JSON格式用于解析
Create and run an agent (blocks until completion by default, no timeout)
创建并运行Agent(默认阻塞直到完成,无超时)
paseo run --mode bypass "<prompt>"
paseo run --mode bypass --name "Task Name" "<prompt>"
paseo run --mode bypass --model opus "<prompt>"
paseo run --mode full-access --provider codex "<prompt>"
paseo run --mode bypass "<prompt>"
paseo run --mode bypass --name "Task Name" "<prompt>"
paseo run --mode bypass --model opus "<prompt>"
paseo run --mode full-access --provider codex "<prompt>"
Wait timeout - limit how long run blocks (default: no limit)
等待超时 - 限制运行阻塞的时长(默认:无限制)
paseo run --wait-timeout 30m "<prompt>" # Wait up to 30 minutes
paseo run --wait-timeout 1h "<prompt>" # Wait up to 1 hour
paseo run --wait-timeout 3600 "<prompt>" # Plain number = seconds
paseo run --wait-timeout 30m "<prompt>" # 最多等待30分钟
paseo run --wait-timeout 1h "<prompt>" # 最多等待1小时
paseo run --wait-timeout 3600 "<prompt>" # 纯数字表示秒数
Detached mode - runs in background, returns agent ID immediately
分离模式 - 在后台运行,立即返回Agent ID
paseo run --detach "<prompt>"
paseo run -d "<prompt>" # Short form
paseo run --detach "<prompt>"
paseo run -d "<prompt>" # 简写形式
Structured output - agent returns only matching JSON
结构化输出 - Agent仅返回匹配的JSON
paseo run --output-schema '{"type":"object","properties":{"summary":{"type":"string"}},"required":["summary"]}' "<prompt>"
paseo run --output-schema schema.json "<prompt>" # Or from a file
paseo run --output-schema '{"type":"object","properties":{"summary":{"type":"string"}},"required":["summary"]}' "<prompt>"
paseo run --output-schema schema.json "<prompt>" # 或从文件读取
NOTE: --output-schema blocks until completion (cannot be used with --detach)
注意:--output-schema会阻塞直到完成(不能与--detach一起使用)
NOTE: --wait-timeout applies to --output-schema runs too
注意:--wait-timeout同样适用于--output-schema的运行
Worktrees - isolated git worktree for parallel feature development
工作树 - 用于并行功能开发的独立Git工作树
paseo run --worktree feature-x "<prompt>"
paseo run --worktree feature-x "<prompt>"
Check agent logs/output
查看Agent日志/输出
paseo logs <agent-id>
paseo logs <agent-id> -f # Follow (stream)
paseo logs <agent-id> --tail 10 # Last 10 entries
paseo logs <agent-id> --filter tools # Only tool calls
paseo logs <agent-id>
paseo logs <agent-id> -f # 实时跟踪(流式输出)
paseo logs <agent-id> --tail 10 # 最后10条记录
paseo logs <agent-id> --filter tools # 仅显示工具调用
Wait for agent to complete or need permission
等待Agent完成或等待权限审批
paseo wait <agent-id>
paseo wait <agent-id> --timeout 60 # 60 second timeout
paseo wait <agent-id>
paseo wait <agent-id> --timeout 60 # 60秒超时
Send follow-up prompt to running agent
向运行中的Agent发送后续提示
paseo send <agent-id> "<prompt>"
paseo send <agent-id> --image screenshot.png "<prompt>" # With image
paseo send <agent-id> --no-wait "<prompt>" # Queue without waiting
paseo send <agent-id> "<prompt>"
paseo send <agent-id> --image screenshot.png "<prompt>" # 附带图片
paseo send <agent-id> --no-wait "<prompt>" # 加入队列不等待
Inspect agent details
查看Agent详情
paseo inspect <agent-id>
paseo inspect <agent-id>
Interrupt an agent's current run
中断Agent当前运行
paseo stop <agent-id>
paseo stop <agent-id>
Hard-delete an agent (interrupts first if needed)
硬删除Agent(必要时先中断运行)
paseo delete <agent-id>
paseo delete <agent-id>
Attach to agent output stream (Ctrl+C to detach without stopping)
附加到Agent输出流(按Ctrl+C可分离但不停止Agent)
paseo attach <agent-id>
paseo attach <agent-id>
Permissions management
权限管理
paseo permit ls # List pending permission requests
paseo permit allow <agent-id> # Allow all pending for agent
paseo permit deny <agent-id> --all # Deny all pending
paseo permit ls # 列出待处理的权限请求
paseo permit allow <agent-id> # 批准该Agent的所有待处理请求
paseo permit deny <agent-id> --all # 拒绝该Agent的所有待处理请求
Agent mode switching
Agent模式切换
paseo agent mode <agent-id> --list # Show available modes
paseo agent mode <agent-id> bypass # Set bypass mode
paseo agent mode <agent-id> --list # 显示可用模式
paseo agent mode <agent-id> bypass # 设置为bypass模式
Output formats
输出格式
paseo ls --json # JSON output
paseo ls -q # IDs only (quiet mode, useful for scripting)
undefinedpaseo ls --json # JSON格式输出
paseo ls -q # 仅显示ID(静默模式,适用于脚本)
undefinedAvailable Models
可用模型
Claude (default provider) - use aliases, CLI resolves to latest version:
- - Fast/cheap, ONLY for tests (not for real work)
--model haiku - - Default, good for most tasks
--model sonnet - - For harder reasoning, complex debugging
--model opus
Codex ():
--provider codex- - Latest frontier agentic coding model (default, preferred for all engineering tasks)
--model gpt-5.4 - - Cheaper, faster, but less capable
--model gpt-5.1-codex-mini
Claude(默认提供商) - 使用别名,CLI会自动解析为最新版本:
- - 快速/低成本,仅用于测试(不适合实际工作)
--model haiku - - 默认选项,适合大多数任务
--model sonnet - - 用于复杂推理、复杂调试场景
--model opus
Codex(使用):
--provider codex- - 最新前沿Agent化编码模型(默认,推荐用于所有工程任务)
--model gpt-5.4 - - 更便宜、更快,但能力较弱
--model gpt-5.1-codex-mini
Permissions
权限
Always launch agents fully permissioned. Use for Claude and for Codex. Control behavior through strict prompting, not permission modes.
--mode bypass--mode full-access始终以全权限模式启动Agent。对于Claude使用,对于Codex使用。通过严格的提示词而非权限模式来控制行为。
--mode bypass--mode full-accessAgent Use Cases
Agent 使用场景
You can run agents to:
- Implement a task - Spawn an agent to write code and implement features
- Have a design discussion - Use Codex for architecture discussions
- Test some feature - Run tests and verify functionality
- Do investigation - Research and explore the codebase
- Review changes - Use Codex for thorough code reviews
你可以运行Agent来:
- 实现任务 - 启动Agent编写代码并实现功能
- 进行设计讨论 - 使用Codex开展架构讨论
- 测试功能 - 运行测试并验证功能
- 开展调查 - 研究并探索代码库
- 审核变更 - 使用Codex进行全面的代码审核
Clarifying Ambiguous Requests
明确模糊的请求
CRITICAL: When user requests are ambiguous or unclear:
- Research first - Spawn an investigation agent to understand the current state
- Ask clarifying questions - After research, ask the user specific questions about what they want
- Present options - Offer multiple approaches with trade-offs
- Get explicit confirmation - Never assume what the user wants
关键提示: 当用户的请求模糊或不明确时:
- 先调研 - 启动一个调查Agent来了解当前状态
- 提出明确问题 - 调研后,向用户询问关于需求的具体问题
- 提供选项 - 提供多种方案并说明各自的权衡
- 获取明确确认 - 永远不要假设用户的需求
Investigation vs Implementation
调查与实现的区别
CRITICAL: When asked to investigate:
- Investigation agents MUST NOT fix issues - They should only identify, document, and report problems
- Always ask for confirmation - After investigation, present findings and ask: "Should I proceed with implementing fixes?"
- Only implement if explicitly requested - Don't auto-fix without user approval
关键提示: 当被要求进行调查时:
- 调查Agent绝对不能修复问题 - 它们只能识别、记录并报告问题
- 始终请求确认 - 调查完成后,呈现结果并询问:"我是否应该继续进行修复?"
- 仅在明确要求时才实现 - 未经用户批准,不要自动修复问题
Rigorous Agent Interrogation
严格的Agent质询
CRITICAL: Agents start with ZERO context about your task. You must always provide complete context in your initial prompt.
When working with agents, you must dig deep and challenge them rigorously:
关键提示: Agent初始时对你的任务没有任何上下文。你必须在初始提示词中提供完整的上下文。
与Agent协作时,你必须深入挖掘并严格质询它们:
For Implementation Agents
对于实现型Agent
- Don't accept surface-level completion: Check their logs with
paseo logs <id> - Trace the implementation: Ask them to walk through the code flow step by step
- Uncover gaps: Send follow-up prompts with
paseo send <id> "<question>"- "Show me exactly where you handle error case X"
- "What happens if the user does Y before Z?"
- "Walk me through the data flow from input to output"
- 不接受表面化的完成结果:使用查看它们的日志
paseo logs <id> - 跟踪实现过程:要求它们逐步讲解代码流程
- 发现漏洞:使用发送后续提示
paseo send <id> "<问题>"- "向我展示你处理错误场景X的具体位置"
- "如果用户在Z之前执行Y会发生什么?"
- "带我走一遍从输入到输出的数据流"
For Investigation/Debugging Agents
对于调查/调试型Agent
- Don't stop at the first answer: Keep digging deeper
- Explore different angles: "What are 3 other possible causes?"
- Request proof: "Show me the specific code that proves this hypothesis"
- Challenge assumptions: "How do you know that's the root cause?"
- 不要停留在第一个答案:继续深入挖掘
- 探索不同角度:"还有哪些可能的原因?"
- 要求提供证据:"向我展示能证明这个假设的具体代码"
- 挑战假设:"你怎么知道这是根本原因?"
For Review Agents (prefer Codex)
对于审核型Agent(推荐使用Codex)
- Security review: "What are the security implications? Any OWASP vulnerabilities?"
- Edge cases: "What edge cases are not handled?"
- Performance: "Where are the performance bottlenecks?"
- Maintainability: "How maintainable is this code?"
- 安全审核:"有哪些安全隐患?是否存在OWASP漏洞?"
- 边缘场景:"哪些边缘场景没有被处理?"
- 性能:"性能瓶颈在哪里?"
- 可维护性:"这段代码的可维护性如何?"
Waiting for Agents
等待Agent
CRITICAL: Both and block until the agent completes. Trust them.
paseo runpaseo wait- waits forever by default (no timeout). Use
paseo runto set a limit.--wait-timeout - also waits forever by default. Use
paseo waitto set a limit.--timeout - Agent tasks can legitimately take 10, 20, or even 30+ minutes. This is normal.
- When a wait times out, just re-run — don't panic, don't start checking logs, don't inspect status. The agent is still working.
paseo wait <id> - Do NOT poll with ,
paseo ls, orpaseo inspectin a loop to "check on" the agent. This wastes your context window and accomplishes nothing.paseo logs - Only check logs/inspect if you have a specific reason to believe something is wrong (e.g., you sent a prompt and got an unexpected error back).
- Never launch a duplicate agent because a wait timed out. The original is still running.
bash
undefined关键提示: 和都会阻塞直到Agent完成。请信任它们。
paseo runpaseo wait- 默认会永久等待(无超时)。使用
paseo run设置限制。--wait-timeout - 默认也会永久等待。使用
paseo wait设置限制。--timeout - Agent任务可能需要10、20甚至30多分钟,这是正常的。
- 当等待超时后,只需重新运行— 不要惊慌,不要查看日志,不要检查状态。Agent仍在运行。
paseo wait <id> - 不要循环使用、
paseo ls或paseo inspect来“检查”Agent。这会浪费你的上下文窗口,毫无意义。paseo logs - 只有当你有特定理由认为出现问题时(例如,发送提示词后收到意外错误),才查看日志/详情。
- 永远不要因为等待超时就启动重复的Agent。原Agent仍在运行。
bash
undefinedCorrect: just keep waiting
正确做法:继续等待
paseo wait <id> # timed out? just run it again:
paseo wait <id> # still going? keep waiting:
paseo wait <id> --timeout 300 # or use a longer timeout
paseo wait <id> # 超时了?再运行一次:
paseo wait <id> # 还在运行?继续等待:
paseo wait <id> --timeout 300 # 或者设置更长的超时时间
For long-running tasks, set a generous timeout on run itself:
对于长时间运行的任务,在启动时就设置充足的超时时间:
paseo run --wait-timeout 1h --output-schema '...' "<prompt>"
paseo run --wait-timeout 1h --output-schema '...' "<prompt>"
Wrong: anxious polling loop
错误做法:焦虑的轮询循环
paseo wait <id> # timed out
paseo ls # is it still running??
paseo inspect <id> # what's it doing??
paseo logs <id> # let me check the logs!!
paseo wait <id> # 超时
paseo ls # 它还在运行吗?
paseo inspect <id> # 它在做什么?
paseo logs <id> # 让我看看日志!
^ Don't do this. Trust the wait.
^ 不要这么做。请信任wait命令。
undefinedundefinedAgent Management Principles
Agent 管理原则
- Keep agents focused - Each agent should have a clear, specific responsibility
- You can talk to them - Use to guide them
paseo send <id> "<prompt>" - Monitor progress - Use to stream output
paseo logs <id> -f - Always provide context - Remember: agents start with zero knowledge of your task
- Verify work rigorously - Don't trust, verify. Ask agents to prove their work
- Commit frequently - Ensure each agent commits their changes before moving on
- Plan for quality gates - Use Codex review agents as checkpoints
- Run in parallel when possible - Use flag to run multiple agents concurrently
-d
- 保持Agent专注 - 每个Agent都应该有明确、具体的职责
- 你可以与它们交互 - 使用来引导它们
paseo send <id> "<prompt>" - 监控进度 - 使用来流式查看输出
paseo logs <id> -f - 始终提供上下文 - 记住:Agent初始时对你的任务一无所知
- 严格验证工作成果 - 不要轻信,要验证。要求Agent证明它们的工作
- 频繁提交 - 确保每个Agent在推进前提交它们的更改
- 规划质量关卡 - 使用Codex审核Agent作为检查点
- 尽可能并行运行 - 使用标志同时运行多个Agent
-d
Common Patterns
常见模式
Committee
委员会模式
When stuck or planning something hard, use the skill. It launches two high-reasoning agents (Opus 4.6 + GPT 5.4) in parallel to do root cause analysis and produce a plan, then stays alive to review the implementation afterward.
/committee当遇到难题或进行规划时,使用技能。它会并行启动两个高推理能力的Agent(Opus 4.6 + GPT 5.4)进行根本原因分析并生成方案,之后会保持运行状态以审核后续的实现。
/committeeComposing Agents in Bash Scripts
在Bash脚本中组合使用Agent
paseo run--output-schemaImplement-and-verify loop:
bash
while true; do
paseo run --provider codex "make the tests pass" >/dev/null
verdict=$(paseo run --provider claude --output-schema '{"type":"object","properties":{"criteria_met":{"type":"boolean"}},"required":["criteria_met"],"additionalProperties":false}' "ensure tests all pass")
if echo "$verdict" | jq -e '.criteria_met == true' >/dev/null; then
echo "criteria met"
break
fi
doneDetach + wait pattern for parallel work:
bash
undefinedpaseo run--output-schema实现与验证循环:
bash
while true; do
paseo run --provider codex "make the tests pass" >/dev/null
verdict=$(paseo run --provider claude --output-schema '{"type":"object","properties":{"criteria_met":{"type":"boolean"}},"required":["criteria_met"],"additionalProperties":false}' "ensure tests all pass")
if echo "$verdict" | jq -e '.criteria_met == true' >/dev/null; then
echo "criteria met"
break
fi
done分离+等待的并行工作模式:
bash
undefinedKick off parallel agents
启动并行Agent
api_id=$(paseo run -d --name "API impl" "implement the API" -q)
ui_id=$(paseo run -d --name "UI impl" "implement the UI" -q)
api_id=$(paseo run -d --name "API impl" "implement the API" -q)
ui_id=$(paseo run -d --name "UI impl" "implement the UI" -q)
Wait for both to finish
等待两者完成
paseo wait "$api_id"
paseo wait "$ui_id"
paseo wait "$api_id"
paseo wait "$ui_id"
Review the combined result
审核合并后的结果
paseo run --provider codex "review the API and UI implementations. DO NOT edit."
undefinedpaseo run --provider codex "review the API and UI implementations. DO NOT edit."
undefined