On this page

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.

  1. Install the CLI. See Installation.
  2. Download the extension's .vsix from the download page.
  3. In VS Code, open Extensions, choose … then Install from VSIX, and pick the file.
  4. Open a folder that contains a dryv.yaml and 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):

  1. Dryv: Validate checks your contracts and dryv.yaml.
  2. Dryv: Plan shows what would be generated.
  3. Dryv: Generate Dry Run shows the diff without writing.
  4. 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

  1. Set a model provider key for the daemon. See Dryv agent.
  2. Run Dryv: Open Chat.
  3. Pick a model with Dryv: Select Chat Model.
  4. 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

CommandWhat it does
Dryv: Sign InSign in to the Dryv Platform in your browser.
Dryv: Sign OutSign out of the Dryv Platform.
Dryv: InfoShow the Engine and its template servers.
Dryv: Workflow CapabilitiesList which workflows the Engine supports.
Dryv: Check EnvironmentCheck that the project and Engine are ready.
Dryv: Build AuthoringCompile your authored source to Runtime IR.
Dryv: ValidateValidate the project.
Dryv: PlanShow the planned files.
Dryv: Generate Dry RunShow the diff without writing.
Dryv: GenerateShow the diff and apply it after you confirm.
Dryv: Check Generated FilesCheck whether generated files are up to date.
Dryv: Show ChangesShow pending generated changes.
Dryv: Open Dryv OutputOpen the Dryv output channel.
Dryv: Restart API ConnectionReconnect to the Engine.
Dryv: RefreshRefresh the Workspace view.
Dryv: Trace Current FileExplain where the current generated file came from.
Dryv: Explain ArtifactExplain a generated file.
Dryv: Open ChatOpen the agent chat.
Dryv: New ChatStart a new chat.
Dryv: Stop Current ResponseStop the agent's current answer.
Dryv: Select Chat ModelChoose the model for the chat.
Dryv: Open Managed BrowserOpen a browser the agent can use.
Dryv: Show Runtime StatusShow the agent runtime's status.
Dryv: Move Chat to Secondary SidebarShow how to move the chat.
Dryv: Ask About SelectionAsk the agent about the selected code.
Dryv: Add Selection to ContextAdd the selection to the chat.
Dryv: Add Current File to ContextAdd the open file to the chat.
Dryv: Reconnect Local DaemonReconnect to, or restart, the local daemon.
Dryv: Refresh TasksReload the Tasks view.
Dryv: Create TaskCreate a task.
Dryv: Start TaskStart a planned or blocked task.
Dryv: Tick Task StepTick a checkbox in a task.
Dryv: Filter TasksFilter the Tasks view.
Dryv: Show or Hide Archived TasksToggle archived tasks.

Settings

SettingDefaultWhat it does
dryv.cli.commanddryvThe CLI that starts the daemon and runs dryv task. Use a path, or a command such as bun /path/to/dryv.ts.
dryv.local.runtimeHomeemptyA different daemon home. Empty uses the default, ~/.dryv/local.
dryv.validation.autotrueValidate again after Dryv files change.
dryv.validation.delayMs1200How long to wait after a change before validating, in milliseconds.
dryv.notificationstrueShow short success and failure notifications.
dryv.connection.refreshSeconds30How often to check the connection while a Dryv workspace is open.
dryv.debugfalseLog 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.

Search in