> For the complete documentation index, see [llms.txt](https://docs.warp.dev/llms.txt).
> Markdown versions of each page are available by appending .md to any URL.

# Warp Drive context

Use saved prompts, notebooks, workflows, and rules from Warp Drive as context in CLI agent commands.

Caution

The Oz CLI (the `oz` binary) is being deprecated in favor of the Warp Agent CLI (the `warp` binary). `oz` commands remain supported through the end of September 2026. See the [Warp Agent CLI docs](https://docs.warp.dev/agents/cli/) for what is available today.

Reference saved Warp 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 Warp Drive references using `<workflow:id>`, `<notebook:id>`, or `<rule:id>` syntax.

## Reusing saved prompts

When you find prompts that work well, save them in [Warp Drive](https://docs.warp.dev/knowledge-and-collaboration/warp-drive/) to reuse across sessions, share with teammates, and integrate into automated workflows. For more information, see [Prompts](https://docs.warp.dev/knowledge-and-collaboration/warp-drive/prompts/).

To reuse a saved prompt, find its ID. The ID is the last segment of its Warp Drive sharing link.

For example, in the URL:

```plaintext
https://www.warp.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 Warp Drive objects as context

Use `<workflow:id>`, `<notebook:id>`, or `<rule:id>` in prompts to attach [Warp Drive objects](https://docs.warp.dev/knowledge-and-collaboration/warp-drive/) and [rules](https://docs.warp.dev/agents/capabilities/rules/) as context for the agent.

Note

**Tip:** Use the [@ context menu](https://docs.warp.dev/agents/local-agents/agent-context/using-to-add-context/) in Warp 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>"
```
