Skip to content

About

A VS Code extension for Visual Studio Code that launches your installed AI CLI coding assistants , with YOLO panel and linking features.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Agent YOLO — AI Agents Extender (VS Code)

VS Code Marketplace

The VS Code edition of the Agent YOLO family. It opens an embedded terminal panel that launches AI CLI agents (Claude Code, Codex, Cursor CLI, …) with a one-click Skip permissions (YOLO) toggle, and makes terminal output clickable: file paths, stack-trace frames, type/member names, and URLs all become navigation links.

Extension ID: cnsharp.agentyolo — display name Agent YOLO.

Screenshots

Agents panel — embedded multi-tab agent terminal with clickable links:

Agent YOLO panel — embedded multi-tab agent terminal with clickable links

Features

  • Agents panel: a docked activity-bar view with an agent dropdown, populated from the built-in catalog in agents.json + your yolo.agents overrides, filtered by what is actually installed on PATH.
  • Embedded interactive terminal: a real PTY (node-pty + bundled xterm.js) launched inside a login shell, so rc-defined PATH (nvm / fnm / npm global bin) is honoured. Several agents run side by side as tabs; each tab keeps its own scrollback and input history.
  • YOLO toggle injects the per-agent skip-permission flag (e.g. --dangerously-skip-permissions, -y, --yolo) or environment variable (GOOSE_MODE=auto) so agents run without permission prompts.
  • Resume toggle continues the agent's most recent session via its resumeFlag (e.g. Claude -r, Codex --resume).
  • Status-bar Launcher: a $(rocket) Launch Agent button opens a Quick Pick of the installed agents and launches the chosen one in a new VS Code terminal (separate from the embedded panel). It has its own YOLO (Y) and Resume (R) status-bar toggles — yolo.launcherYoloMode / yolo.launcherResumeMode — that are independent of the panel's yolo.skipEnabled / yolo.resumeMode, so the launcher and the panel can each run in their own mode. It also registers a Terminal profile per installed agent (available from the Terminal menu).
  • Clickable terminal links with de-duplication / priority: path:line:col, quoted paths, stack-trace frames, bare file names, Python tracebacks, type names (com.foo.Bar), Class.member refs, and http(s):// URLs. (Type / member links need a language server — see Language support.)
  • Native chat agents (since 1.3.0; VS Code 1.106+): every installed catalog agent is also available in the Chat view's Agent dropdown via generated .agent.md files. Selecting one routes the whole request to the real CLI through a bundled language model tool, with the output returned verbatim. See Use agents in VS Code native chat for the scope and setup.
  • Settings-driven: agent configuration (skip flags / base args / resume flags, global YOLO & Resume defaults, shell) lives in VS Code Settings — edit yolo.agents and the other yolo.* settings in settings.json. There is no in-panel Settings UI. (Internal extension IDs/settings keep the yolo. prefix — e.g. the view is yolo.panel, settings are yolo.* — while the product is branded Agent YOLO.)

Panel location. The Agents panel opens in the Primary Side Bar (the activity bar, on the left) by default. To dock it on the right instead, right-click the panel header and choose Move to Secondary Side Bar — VS Code remembers the choice.

Co-existence. Agent YOLO (cnsharp.agentyolo) uses the dedicated yolo.* settings namespace and its own commands/views, so it can be installed alongside other agent-launcher extensions without conflict.

Language support (install a language server to navigate type/member links)

File-path links work out of the box (they are resolved on the filesystem). Type and member links (com.foo.Bar, Class.member) are different: they are resolved through vscode.executeWorkspaceSymbolProvider, i.e. the LSP workspace/symbol — so a language server must be running and must have indexed the symbol for the link to open. Without one you get "no symbol found".

Install the language server for the languages you actually work in:

Language Extension Extension ID
Java Language Support for Java (Red Hat) redhat.java
TypeScript / JavaScript built in — nothing to install —
Python Python + Pylance (Pylance provides the symbols) ms-python.python, ms-python.vscode-pylance
Go Go (gopls) golang.go
Rust rust-analyzer rust-lang.rust-analyzer
C / C++ C/C++ ms-vscode.cpptools
C# C# ms-dotnettools.csharp
Kotlin Kotlin fwcd.kotlin
PHP Intelephense bmewburn.vscode-intelephense-client
Ruby Ruby LSP shopify.ruby-lsp
Scala Metals scalameta.metals
Swift Swift sswg.swift-lang
Lua Lua sumneko.lua
Dart / Flutter Dart Dart-Code.dart-code
Shell Bash IDE mads-hartmann.bash-ide-vscode

Notes:

  • Open the code as a workspace folder and let the language server finish indexing (large Java/Python projects can take a while on first open) — unindexed symbols cannot be resolved.
  • A plain syntax-highlighter or formatter is not enough; it must be a real language server.
  • Install only what you need: each one is a resident process with its own memory, which adds up alongside several open agent terminals.
  • For Java, prefer Red Hat (redhat.java); the Oracle Java extension's workspace/symbol support is unreliable.

Install

From the VS Code Marketplace (recommended)

  • Open the Agent YOLO Marketplace page and click Install.

  • Or in VS Code: open the Extensions view, search for Agent YOLO, and click Install.

  • Or from the command line:

    code --install-extension cnsharp.agentyolo

Run from source (development / trial)

  1. Install dependencies: npm install (also runs postinstall to fix node-pty's spawn-helper permissions).
  2. Build: npm run build (tsc for the extension + esbuild to bundle the webview into media/dist).
  3. Press F5 to open the Extension Development Host; the Agent YOLO icon appears in the activity bar.

Package / install as VSIX

  • Package: npx @vscode/vsce package (produces a *.vsix)
  • Install: in VS Code run Extensions: Install from VSIX... and pick the generated file.

Usage

Open the panel

  • Click the Agent YOLO icon in the activity bar, or run Agent YOLO: Open Agents Panel from the Command Palette (command id yolo.openPanel).

Launch an agent

  • Pick an agent from the dropdown in the panel header and click Launch — it opens in a new terminal tab. Only agents detected on PATH are shown.
  • Open more agents to run several side by side; switch tabs like any IDE terminal.

Launch from the status bar (new terminal)

  • Click the $(rocket) Launch Agent button in the status bar (or run Agent YOLO: Launch Agent from the Command Palette, command id yolo.launchAgent) to open a Quick Pick of installed agents. Selecting one launches it in a new VS Code terminal.
  • The picker also lists Manage Agents (opens the manager) and Settings (opens this extension's settings).
  • Launcher-specific YOLO (Y) and Resume (R) toggles sit next to it in the status bar. They apply only to launches triggered from the launcher and are independent of the panel's toggle state:
    • yolo.launcherYoloMode — append each agent's skipFlag (auto-approve) when launching from the launcher.
    • yolo.launcherResumeMode — append each agent's resumeFlag to continue the last session when launching from the launcher.
  • Keybindings: Ctrl/Cmd+Alt+Y toggles launcher YOLO, Ctrl/Cmd+Alt+R toggles launcher Resume.

YOLO mode (skip permissions / auto-approve)

  • Click the $(zap) button in the panel header to toggle YOLO mode. When on, launching an agent appends that agent's skipFlag (or GOOSE_MODE=auto for Goose).
  • The global default can also be set via the yolo.skipEnabled setting.

Resume mode (continue session)

  • Click the $(history) button in the panel header to toggle Resume mode. When on, launching an agent appends that agent's resumeFlag to continue the previous session. Agents without a resumeFlag launch normally even when on.
  • YOLO and Resume can be on together; args are ordered baseArgs → skipFlag → resumeFlag.
  • The global default can also be set via the yolo.resumeMode setting.

Configure agents (no code required)

The yolo.agents setting is a list of overrides / additions merged with the built-in catalog in agents.json: match a built-in by command (or id) to override it (only the fields you set are replaced); set enabled to false to hide a built-in; use a command not present in agents.json to add a custom agent.

  • Edit: the built-ins live in the root agents.json; to tweak a built-in, append an override entry with the same command (only the fields you want to change).

  • Override params: change only the fields you want, e.g. set claude's skipFlag to "--new-flag".

  • Hide: set enabled to false (or delete the entry).

  • Add a custom agent: append an entry whose command isn't built-in, e.g.:

    { "command": "myagent", "displayName": "My Agent", "baseArgs": "run", "iconFile": "myagent.png" }

    (omit iconFile to use the default terminal icon.)

  • When it takes effect: changes apply the next time the panel refreshes (read live at runtime; no window reload needed).

Fields: command (required) / displayName / baseArgs / skipFlag / resumeFlag / iconFile / enabled / id.

Uniqueness: command, displayName, and id must each be unique. On duplicates the extension warns and drops the duplicate (keeping the first occurrence).

Supported agent list

The full, always-up-to-date list of supported agents (generated from agents.json) is maintained in the Agent YOLO family README. It is shared across all editions, so it is not duplicated here.

Use agents in VS Code native chat (since 1.3.0)

On VS Code 1.106+, every catalog agent that is installed on PATH is contributed to VS Code as a custom agent. The generated .agent.md files route the request to the real CLI binary through a languageModelTools tool, so the installed CLI — not the model — produces the answer.

Scope (important):

  • Works in the editor's Chat view with the Local harness only. The Copilot harness and the Agents window use harness-owned agent sources and do not see extension-contributed agents.
  • The Local harness is deprecated in VS Code 1.146 and is scheduled for removal in February 2027; this integration is tied to that timeline.
  • Only agents detected on PATH appear. After installing/uninstalling a CLI outside the extension, run Agent YOLO: Refresh Chat Agents to re-probe and update the dropdown.

Usage:

  1. Open the Chat view (Ctrl/Cmd+Alt+I) and start a new chat.
  2. Select Local from the Session Target control. In VS Code 1.147+ the deprecated Local harness is hidden by default — enable it in settings.json:
    { "chat.editor.localAgent.enabled": true, "chat.defaultToCopilotHarness": false }
  3. Pick your CLI agent from the Agent dropdown (e.g. Claude Code), then send the request.

Customizing: yolo.nativeChat.agentCliArgs sets per-agent non-interactive arguments. Built-in defaults were verified from each CLI's --help or official docs (e.g. claude -p, codex exec, goose run -t, hermes chat -q, vtcode exec); agents without a verified headless form get no extra flags and can be configured here. yolo.nativeChat.autoApprove, timeoutSeconds and maxOutputChars control execution. The .agent.md files are regenerated from agents.json on every build (npm run generate), so no manual sync is needed.

Settings reference

Setting Type Default Description
yolo.skipEnabled boolean false Master switch for YOLO mode; when on, agents launch with their respective skipFlag
yolo.resumeMode boolean false Master switch for Resume mode; when on, agents launch with their respective resumeFlag
yolo.launcherYoloMode boolean false Launcher YOLO toggle (status bar); independent of yolo.skipEnabled — applies only to launches from the $(rocket) Launch Agent button
yolo.launcherResumeMode boolean false Launcher Resume toggle (status bar); independent of yolo.resumeMode — applies only to launches from the $(rocket) Launch Agent button
yolo.agents array [] Overrides / additions merged with agents.json (see above)
yolo.permissionRules array [] Per-agent skip flag as { agentId, flag }; takes precedence over yolo.agents skipFlag
yolo.agentResumeFlags object {} Per-agent resume-flag override, keyed by command / id; precedence over resumeFlag
yolo.agentBaseArgs object {} Extra launch args per agent, keyed by id (command fallback); appended after baseArgs
yolo.shell string "" Override the shell used to launch agents / probe PATH (absolute path or PATH binary; on Windows auto-detects a POSIX shell when empty)
yolo.shellArgs array [] Extra args passed to the shell before the agent command (ignored on Windows cmd.exe)
yolo.installedCommands array (internal) [] Cache of agent commands detected on PATH — maintained automatically, do not edit by hand
yolo.lastAgentId string (internal) "" Last-selected agent id, so the panel can pre-select it — set automatically
yolo.nativeChat.agentCliArgs object {} (since 1.3.0) Extra CLI args for native chat runs, keyed by agent id; overrides built-in non-interactive defaults
yolo.nativeChat.autoApprove boolean true (since 1.3.0) Append the CLI's skip-permissions flag in native chat so it works without a TTY for approvals (on by default; only use in trusted workspaces)
yolo.nativeChat.timeoutSeconds number 180 (since 1.3.0) Max wait for a CLI agent invoked from native chat
yolo.nativeChat.maxOutputChars number 30000 (since 1.3.0) Output cap for native chat CLI results

Commands:

Command id Title Trigger
yolo.openPanel Agent YOLO: Open Agents Panel activity-bar icon / Command Palette
yolo.openManager Agent YOLO: Manage Agents Command Palette
yolo.launchAgent Agent YOLO: Launch Agent status-bar $(rocket) button / Command Palette
yolo.toggleLauncherYolo Agent YOLO: Toggle Launcher YOLO Mode status-bar Y button / Ctrl/Cmd+Alt+Y
yolo.toggleLauncherResume Agent YOLO: Toggle Launcher Resume Mode status-bar R button / Ctrl/Cmd+Alt+R
yolo.refreshChatAgents Agent YOLO: Refresh Chat Agents Command Palette — re-probe installed CLIs and refresh native-chat agents (since 1.3.0)

Build & run (development)

npm install        # installs deps + runs postinstall (node-pty spawn-helper chmod)
npm run build      # tsc (extension + webview entries) + esbuild (bundle xterm into media/dist)
npm test           # unit tests for the link engine
# Press F5 in VS Code with this folder open -> "Run Extension" launches a new Extension Development Host.
# Run the command: Agent YOLO: Open Agents Panel

Layout

src/
  extension.ts                 activation + command + view-provider registration
  launcher.ts                   status-bar Launcher: Quick Pick -> new terminal, independent YOLO/Resume toggles, Terminal profiles
  nativeChat/
    cliAgentTool.ts             languageModelTools tool that runs the selected CLI headlessly (native chat)
    agentAvailability.ts        `yolo.agentInstalled.*` context keys: installed-only agent filtering
  agents.ts                    loads the built-in catalog from agents.json + resolveAgents()/getAgentConfigWarnings()
  agentDetector.ts             install detection (resolvePath / canExecute), login shell so rc PATH is honoured
  settings/                    settings.json-backed config (schema in package.json contributes.configuration)
  links/                       link regex patterns (ported) + line parser
  navigation/                  file open + workspace-symbol lookup (gotoClassContributor equivalent)
  terminal/
    terminalProvider.ts        node-pty spawn (ported launch path)
    panel.ts                   WebviewViewProvider owning the PTY + message bridge
    panelHtml.ts               CSP-safe HTML renderer for the bundled webview
    shell.ts                   shell resolution (yolo.shell / yolo.shellArgs)
  webview/
    panel.ts                   bundled webview entry: xterm + combined link provider
media/dist/                    esbuild output (bundled xterm) — referenced by the webview
media/agents/                 agent logos (PNG)
media/icons/                  activity-bar / panel icons + Y/R toggle SVGs
agents/                        generated .agent.md files, one per catalog agent (do not edit by hand)
scripts/
  ensure-node-pty-exec.cjs     postinstall: chmod node-pty's spawn-helper executable
  generate-native-chat-agents.cjs  regenerates agents/ + contributes.chatAgents from agents.json
test/                          node:test unit tests (catalog format / native-chat generated files)

The webview is bundled with esbuild (no CDN) and served from localResourceRoots with a strict CSP.

Architecture notes

  1. Panel (activity bar): activate() loads the built-in catalog (initBuiltInAgents), refreshes the installed cache, and registers YoloViewProvider for the yolo.panel webview view inside the yolo-agents activity-bar container. The panel's yolo.openPanel command reveals/focuses it.
  2. Install detection: canExecute(command) runs <command> --version in a login-interactive shell, treating exit code 0 as installed; results are cached in the yolo.installedCommands setting so PATH isn't re-probed per window. It uses $SHELL -lc on macOS/Linux and where on Windows, so it honours PATH injected by rc files (nvm / fnm / brew / npm-global, etc.).
  3. Embedded terminal: terminalProvider.ts spawns the agent via node-pty inside a login shell; the PTY output is bridged to the bundled xterm webview, and user input is written back. Each Launch opens a new tab with its own scrollback.
  4. Clickable links: the webview's combined link provider scans terminal output with the patterns in links/ and turns matches into navigable links — file paths open in the editor, type/member links resolve via the workspace-symbol provider (needs a language server), and URLs open in the browser.
  5. Settings-driven: resolveAgents() merges the agents.json built-in catalog with the yolo.agents setting by command / id, and validates command / displayName / id uniqueness (getAgentConfigWarnings emits the warnings).
  6. Native chat (since 1.3.0): scripts/generate-native-chat-agents.cjs runs on every build, emitting one .agent.md per catalog agent with when: yolo.agentInstalled.<id> and a single allowed tool (cnsharp.agentyolo/runCliAgent). agentAvailability.ts sets those context keys from the installed set; cliAgentTool.ts spawns the CLI headlessly and returns its output. Only Chat view + Local harness consume extension-contributed agents.

How to add an agent

Two paths, depending on whether you want to ship code:

Path A: settings only (recommended, user-side, no rebuild)

Append an entry to yolo.agents in your settings.json:

{ "command": "myagent", "displayName": "My Agent", "baseArgs": "", "skipFlag": "--auto", "iconFile": "myagent.png" }

Drop the logo into media/agents/myagent.png — no recompile needed.

Path B: add as a built-in (code-side)

  1. Edit the root agents.json and append an entry (id / command / displayName / baseArgs / skipFlag / resumeFlag / iconFile).
  2. Put the corresponding PNG into media/agents/.
  3. npm run build, then reload the window.

Note: the runtime setting is authoritative. If a user has overridden yolo.agents, a newly added built-in only appears once they also add it to their setting (or remove the override to restore the defaults).

About

A VS Code extension for Visual Studio Code that launches your installed AI CLI coding assistants , with YOLO panel and linking features.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages