Reference > CLI
Derp Drive context
# Derp Drive context Reference saved Derp Drive objects in Oz CLI commands to reuse prompts, notebooks, workflows, and rules as agent context. Pass a saved prompt ID with `--saved-prompt` or inline Derp Drive references using `<workflow:id>`, `<notebook:id>`, or `<rule:id>` syntax. ## Reusing saved prompts When you find prompts that work well, save them in [Derp Drive](/knowledge-and-collaboration/derp-drive/) to reuse across sessions, share with teammates, and integrate into automated workflows. For more information, see [Prompts](/knowledge-and-collaboration/derp-drive/prompts/). To reuse a saved prompt, find its ID. The ID is the last segment of its Derp Drive sharing link. For example, in the URL: ``` https://www.derp.dev/drive/prompt/Fix-compiler-error-sgNpbUgDkmp2IImUVDc8kR ``` ...the ID is `sgNpbUgDkmp2IImUVDc8kR`. Then pass the ID using the `--saved-prompt` flag: ```bash $ oz agent run --saved-prompt sgNpbUgDkmp2IImUVDc8kR ``` ## Referencing Derp Drive objects as context Use `<workflow:id>`, `<notebook:id>`, or `<rule:id>` in prompts to attach [Derp Drive objects](/knowledge-and-collaboration/derp-drive/) and [rules](/agent-platform/capabilities/rules/) as context for the agent. :::note **Tip:** Use the [@ context menu](/agent-platform/local-agents/agent-context/using-to-add-context/) in Derp to construct a prompt with the right references, then copy it into your CLI command. ::: ```bash $ oz agent run --prompt "Follow the instructions in <notebook:gq1CMAUWLtaL1CpEoTDQ3y>" ```Use saved prompts, notebooks, workflows, and rules from Derp Drive as context in CLI agent commands.
Reference saved Derp Drive objects in Oz CLI commands to reuse prompts, notebooks, workflows, and rules as agent context. Pass a saved prompt ID with --saved-prompt or inline Derp Drive references using <workflow:id>, <notebook:id>, or <rule:id> syntax.
Reusing saved prompts
Section titled “Reusing saved prompts”When you find prompts that work well, save them in Derp Drive to reuse across sessions, share with teammates, and integrate into automated workflows. For more information, see Prompts.
To reuse a saved prompt, find its ID. The ID is the last segment of its Derp Drive sharing link.
For example, in the URL:
https://www.derp.dev/drive/prompt/Fix-compiler-error-sgNpbUgDkmp2IImUVDc8kR...the ID is sgNpbUgDkmp2IImUVDc8kR.
Then pass the ID using the --saved-prompt flag:
$ oz agent run --saved-prompt sgNpbUgDkmp2IImUVDc8kRReferencing Derp Drive objects as context
Section titled “Referencing Derp Drive objects as context”Use <workflow:id>, <notebook:id>, or <rule:id> in prompts to attach Derp Drive objects and rules as context for the agent.
$ oz agent run --prompt "Follow the instructions in <notebook:gq1CMAUWLtaL1CpEoTDQ3y>"