VS Code
The Dryv extension for VS Code brings the Dryv workflow, the agent and tasks into the editor. It uses the local daemon on your machine. It needs no account. Sign in only for Platform features such as sync.
Install
You need VS Code 1.108 or later and the dryv CLI. The extension starts the local daemon through the CLI.
- Install the CLI. See Installation.
- Download the extension's
.vsixfrom the download page. - In VS Code, open Extensions, choose … then Install from VSIX, and pick the file.
- Open a folder that contains a
dryv.yamland trust the workspace.
The extension turns on when the folder has a dryv.yaml or dryv.author.yaml, or when you open one of its views.
If dryv is not on your PATH, set Dryv › Cli: Command (dryv.cli.command) to its full path.
Views
The extension adds two icons to the activity bar.
Dryv
- Workspace. Your Dryv projects, with buttons to refresh, open the output, show info, build authoring and restart the connection.
- Tasks. Tasks and documents from the project's task registry. Create, filter, refresh, and show or hide archived tasks from the view's title bar. Right-click a task to start it or tick a step.
Dryv Agent
- Chat. A chat with the Dryv agent. You can move it to the secondary sidebar with Dryv: Move Chat to Secondary Sidebar.
Generate code
Use the Command Palette (Ctrl+Shift+P or Cmd+Shift+P):
- Dryv: Validate checks your contracts and
dryv.yaml. - Dryv: Plan shows what would be generated.
- Dryv: Generate Dry Run shows the diff without writing.
- Dryv: Generate shows the changes and asks Apply N Dryv generated changes? before writing.
Dryv: Check Generated Files reports whether generated output is up to date. Results and diagnostics appear in the Dryv output and the Problems panel.
By default the extension validates again shortly after you change a Dryv file. Auto-validation never approves changes to your environment.
To learn where a generated file came from, right-click it in the Explorer and choose Dryv: Trace Current File or Dryv: Explain Artifact.
Agent chat
- Set a model provider key for the daemon. See Dryv agent.
- Run Dryv: Open Chat.
- Pick a model with Dryv: Select Chat Model.
- Type a request.
To give the agent context, select code and right-click: Dryv: Ask About Selection, Dryv: Add Selection to Context or Dryv: Add Current File to Context.
Stop a response with Dryv: Stop Current Response. Start over with Dryv: New Chat. Changes still follow the agent's approval policy.
Commands
| Command | What it does |
|---|---|
| Dryv: Sign In | Sign in to the Dryv Platform in your browser. |
| Dryv: Sign Out | Sign out of the Dryv Platform. |
| Dryv: Info | Show the Engine and its template servers. |
| Dryv: Workflow Capabilities | List which workflows the Engine supports. |
| Dryv: Check Environment | Check that the project and Engine are ready. |
| Dryv: Build Authoring | Compile your authored source to Runtime IR. |
| Dryv: Validate | Validate the project. |
| Dryv: Plan | Show the planned files. |
| Dryv: Generate Dry Run | Show the diff without writing. |
| Dryv: Generate | Show the diff and apply it after you confirm. |
| Dryv: Check Generated Files | Check whether generated files are up to date. |
| Dryv: Show Changes | Show pending generated changes. |
| Dryv: Open Dryv Output | Open the Dryv output channel. |
| Dryv: Restart API Connection | Reconnect to the Engine. |
| Dryv: Refresh | Refresh the Workspace view. |
| Dryv: Trace Current File | Explain where the current generated file came from. |
| Dryv: Explain Artifact | Explain a generated file. |
| Dryv: Open Chat | Open the agent chat. |
| Dryv: New Chat | Start a new chat. |
| Dryv: Stop Current Response | Stop the agent's current answer. |
| Dryv: Select Chat Model | Choose the model for the chat. |
| Dryv: Open Managed Browser | Open a browser the agent can use. |
| Dryv: Show Runtime Status | Show the agent runtime's status. |
| Dryv: Move Chat to Secondary Sidebar | Show how to move the chat. |
| Dryv: Ask About Selection | Ask the agent about the selected code. |
| Dryv: Add Selection to Context | Add the selection to the chat. |
| Dryv: Add Current File to Context | Add the open file to the chat. |
| Dryv: Reconnect Local Daemon | Reconnect to, or restart, the local daemon. |
| Dryv: Refresh Tasks | Reload the Tasks view. |
| Dryv: Create Task | Create a task. |
| Dryv: Start Task | Start a planned or blocked task. |
| Dryv: Tick Task Step | Tick a checkbox in a task. |
| Dryv: Filter Tasks | Filter the Tasks view. |
| Dryv: Show or Hide Archived Tasks | Toggle archived tasks. |
Settings
| Setting | Default | What it does |
|---|---|---|
dryv.cli.command | dryv | The CLI that starts the daemon and runs dryv task. Use a path, or a command such as bun /path/to/dryv.ts. |
dryv.local.runtimeHome | empty | A different daemon home. Empty uses the default, ~/.dryv/local. |
dryv.validation.auto | true | Validate again after Dryv files change. |
dryv.validation.delayMs | 1200 | How long to wait after a change before validating, in milliseconds. |
dryv.notifications | true | Show short success and failure notifications. |
dryv.connection.refreshSeconds | 30 | How often to check the connection while a Dryv workspace is open. |
dryv.debug | false | Log more transport and process details. Project content and secrets are never logged. |
The extension also adds a Dryv file icon theme. Choose it under Preferences: File Icon Theme.
Troubleshooting
The views say they cannot connect. Run Dryv: Reconnect Local Daemon. If that fails, run dryv local logs in a terminal. Check that dryv.cli.command points at a working CLI.
Commands are missing or run twice. Disable the open source Dryv extension.
The chat has no models. Set a provider key for the daemon, then run dryv local restart and Dryv: Reconnect Local Daemon.
Agent commands are disabled in the editor menu. They need a trusted workspace. Run Workspaces: Manage Workspace Trust.