cmdop instructions
An instruction is a named system prompt fragment that injects into chat. Use it for company tone, sandbox boundaries, role-play personas, or “always answer in JSON”.
List
cmdop instructions listOutput:
NAME ACTIVE DESCRIPTION
default * Default operator persona
concise-ops Short answers, no preamble
sandbox Refuse anything that touches production
auditor Read-only, log every stepShow
cmdop instructions show concise-opsPrints the rendered system prompt fragment.
Set the active preset
cmdop instructions set concise-opsThe chosen preset is injected into every new chat session until you clear or change it.
Clear (return to default)
cmdop instructions clearShow the default
cmdop instructions defaultPrints what the default preset looks like — useful when you’re authoring your own and want a starting point.
Where presets live
Presets are loaded from three sources, in order of precedence:
- Workspace — synced from the cabinet
- Global —
~/.cmdop/instructions/<name>.md - Builtin — shipped with cmdop
Each .md file is the prompt body; the file name is the preset name.
Pairing with —debug-prompt
To see how an instruction renders in a real chat:
cmdop instructions set sandbox
cmdop chat --debug-prompt 2> /tmp/sysprompt.txt
less /tmp/sysprompt.txtThe Identity section will reflect the active preset.
Authoring tips
- Keep presets short. The default identity already tells the agent it is cmdop.
- Use imperative tone (“Refuse…”, “Always…”). Preset content is appended, not replacing.
- For one-off framing, prefer
cmdop chat --instruction "<inline text>"over creating a preset.
Related
Last updated on