Rauto Usage
Execute rauto operations directly for users whenever possible.
Do not default to tutorial-style answers.
Core Mode
Prefer action-first behavior:
- Parse user goal and classify it as read-only or config-changing.
- For read-only operations, run the relevant
rauto command immediately.
- For config-changing operations, prefer
tx/tx-workflow/orchestrate with rollback-aware planning.
- If commands are generated by the agent, ask for human confirmation before execution.
- Return key results (not raw noise), plus command used.
Execution Rules
- For read/query requests, execute immediately:
- examples:
device list, connection list, history list, templates list, replay --list.
- For config-changing requests, prefer rollback-capable execution:
- single block:
tx
- multi-step/multi-resource:
tx-workflow
- multi-device staged rollout:
orchestrate
- For generated change commands, do not execute immediately:
- show planned command(s), rollback strategy, and require user confirmation.
- For explicit read-only commands (for example
show), tx/workflow is not required.
- Resolve connection in this priority:
- explicit command args >
--connection <name> > ask for missing fields.
- Do not ask the user to manually run commands if agent can run them.
- Summarize outputs with important fields:
- target, mode, success/failure, key errors, next action.
Risk Guardrails
Require explicit user confirmation before destructive actions:
rauto backup restore ... --replace
- profile/template/connection delete operations
- tx/workflow execution that changes config when user intent is ambiguous
Additional safety requirements for config changes:
- Prefer
tx/tx-workflow/orchestrate with rollback-aware planning over direct apply patterns.
- Run/offer
--dry-run first for workflow-based changes.
- For
orchestrate, review target scope, fail_fast, concurrency, and rollback boundary before execution.
- Never auto-run agent-generated change commands without confirmation.
- Include rollback path in the proposal before execution.
If user explicitly asks to execute destructive action, proceed.
Missing Input Strategy
Ask only for missing must-have fields:
- For
exec/template/tx/tx-workflow/orchestrate/connection test:
- need either full host credentials or usable
--connection.
- For
replay:
- need record file path or JSONL source.
- For history queries:
Response Format
When command is executed, report:
Operation: what was run
Command: exact rauto command
Result: key output summary
Notes: risk, errors, or follow-up actions
Navigation (Load References On Demand)
- Agent execution decision tree and command templates:
references/agent-execution.md
- Full CLI command cookbook:
references/cli.md
- Runnable multi-device orchestration JSON templates (EN):
references/orchestration-json-template.md
- Multi-device orchestration pre-flight review:
references/orchestration-risk-check.md
- Runtime storage paths:
references/paths.md
- Troubleshooting and recovery:
references/troubleshooting.md
- End-to-end operation scenarios:
references/scenarios.md
- English Q/A examples:
references/examples.md
- Runnable workflow JSON templates (EN):
references/workflow-json-template.md
- Web tab/card mapping (only when user asks for Web operations):
references/web.md
1---2name: rauto-usage3description: Execute rauto directly for the user: run device commands, template execution, tx block, tx workflow, multi-device orchestration, replay, backup/restore, and connection/profile/template/history operations. Trigger on requests like run command for me, execute on device, check history, run workflow, orchestrate multiple devices, apply staged rollout, use inventory/groups, diagnose profile, manage templates/profiles/connections, replay records, or restore backup.4---56# Rauto Usage78Execute rauto operations directly for users whenever possible.9Do not default to tutorial-style answers.1011## Core Mode1213Prefer action-first behavior:14151. Parse user goal and classify it as read-only or config-changing.162. For read-only operations, run the relevant `rauto` command immediately.173. For config-changing operations, prefer `tx`/`tx-workflow`/`orchestrate` with rollback-aware planning.184. If commands are generated by the agent, ask for human confirmation before execution.195. Return key results (not raw noise), plus command used.2021## Execution Rules22231. For read/query requests, execute immediately:24 - examples: `device list`, `connection list`, `history list`, `templates list`, `replay --list`.252. For config-changing requests, prefer rollback-capable execution:26 - single block: `tx`27 - multi-step/multi-resource: `tx-workflow`28 - multi-device staged rollout: `orchestrate`293. For generated change commands, do not execute immediately:30 - show planned command(s), rollback strategy, and require user confirmation.314. For explicit read-only commands (for example `show`), tx/workflow is not required.325. Resolve connection in this priority:33 - explicit command args > `--connection <name>` > ask for missing fields.346. Do not ask the user to manually run commands if agent can run them.357. Summarize outputs with important fields:36 - target, mode, success/failure, key errors, next action.3738## Risk Guardrails3940Require explicit user confirmation before destructive actions:4142- `rauto backup restore ... --replace`43- profile/template/connection delete operations44- tx/workflow execution that changes config when user intent is ambiguous4546Additional safety requirements for config changes:4748- Prefer `tx`/`tx-workflow`/`orchestrate` with rollback-aware planning over direct apply patterns.49- Run/offer `--dry-run` first for workflow-based changes.50- For `orchestrate`, review target scope, `fail_fast`, concurrency, and rollback boundary before execution.51- Never auto-run agent-generated change commands without confirmation.52- Include rollback path in the proposal before execution.5354If user explicitly asks to execute destructive action, proceed.5556## Missing Input Strategy5758Ask only for missing must-have fields:5960- For `exec/template/tx/tx-workflow/orchestrate/connection test`:61 - need either full host credentials or usable `--connection`.62- For `replay`:63 - need record file path or JSONL source.64- For history queries:65 - need connection name.6667## Response Format6869When command is executed, report:70711. `Operation`: what was run722. `Command`: exact rauto command733. `Result`: key output summary744. `Notes`: risk, errors, or follow-up actions7576## Navigation (Load References On Demand)7778- Agent execution decision tree and command templates: `references/agent-execution.md`79- Full CLI command cookbook: `references/cli.md`80- Runnable multi-device orchestration JSON templates (EN): `references/orchestration-json-template.md`81- Multi-device orchestration pre-flight review: `references/orchestration-risk-check.md`82- Runtime storage paths: `references/paths.md`83- Troubleshooting and recovery: `references/troubleshooting.md`84- End-to-end operation scenarios: `references/scenarios.md`85- English Q/A examples: `references/examples.md`86- Runnable workflow JSON templates (EN): `references/workflow-json-template.md`87- Web tab/card mapping (only when user asks for Web operations): `references/web.md`