Skip to content

feat: add the Odysseus VS Code extension - #4395

Closed
azfahimaf wants to merge 2 commits into
odysseus-dev:devfrom
azfahimaf:feat/vscode-extension-upstream
Closed

azfahimaf wants to merge 2 commits into
odysseus-dev:devfrom
azfahimaf:feat/vscode-extension-upstream

Conversation

@azfahimaf

@azfahimaf azfahimaf commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

I saw the interest in #2079 and have built a working VS Code extension for Odysseus that I'd like to contribute upstream. It's a composer-centric chat/agent panel — a single dockable webview (secondary side bar by default, à la Claude Code / Codex): a thin topbar, a transcript that fills the height, and a unified composer with a + attachments menu and a settings menu. It talks to the existing Odysseus server API (chat stream / models / sessions) over SSE, so no backend changes are required for the core; advanced run-controls are sent as forward-compatible form fields the server safely ignores when unsupported. Self-contained under integrations/vscode-extension/.

Since this is a largish (but fully self-contained) addition, I'd welcome your steer on scope/structure before you review in depth — e.g. keep it under integrations/? any features to drop for a first cut?

Target branch

  • This PR targets dev, not main.

Linked Issue

Fixes #2079

Type of Change

  • Bug fix (non-breaking — fixes a confirmed issue)
  • New feature (non-breaking — adds new behaviour)
  • Breaking change (changes or removes existing behaviour)
  • Refactor / cleanup (behaviour unchanged)
  • Documentation only
  • CI / tooling / configuration

Checklist

  • I searched open issues and open PRs — this is not a duplicate.
  • This PR targets dev
  • My changes are limited to the scope described above — no unrelated refactors or whitespace changes mixed in.
  • I actually ran the extension end-to-end against a running Odysseus instance (screenshots below).

How to Test

  1. npm --prefix integrations/vscode-extension ci && npm --prefix integrations/vscode-extension run build (the CI workflow does this + typecheck/lint/test/package).
  2. Open the folder in VS Code and press F5 (Extension Development Host), or install the packaged VSIX.
  3. Open the Odysseus panel from the activity bar, set the server URL + an API token (created in Settings → Integrations) in the settings menu.
  4. Chat mode: send a message; confirm streaming works. Agent mode: confirm tool/agent streaming and the "ask before edits" approval prompt.

Visual / UI changes — REQUIRED if you touched anything that renders

  • Screenshot or short clip — see below.
  • Style match: a standalone VS Code webview that mirrors the app's visual language (Fira Code, dark-first, monochrome). It does not modify the app's DOM/CSS. No decorative Unicode emoji — only plain-text glyphs (✓, arrows) and inline SVG icons.
  • No new component patterns in the app itself — the extension is an isolated surface under integrations/.
  • I am not submitting a bulk auto-generated PR — this is a single, self-contained feature tied to the existing request VS Code extension powered by Odysseus #2079, and I'm happy to iterate on your feedback.

Screenshots / clips

Model picker — connected to the server, listing Claude/ChatGPT subscription models:

Odysseus VS Code extension — model picker

Chat + run controls — a live reply, with the run-controls menu (Mode, Agent approval, Effort, Thinking):

Odysseus VS Code extension — chat and run controls

Settings menu — connection, model, session, Save to Brain, usage:

Odysseus VS Code extension — settings menu

A composer-centric Odysseus chat/agent panel for VS Code (addresses #2079):
a single dockable webview (secondary side bar by default, like Claude Code /
Codex) — thin topbar, transcript, and a unified composer with a '+'
attachments menu and a settings menu.

- Chat + Agent modes; talks to the existing Odysseus server API (chat stream,
  models, sessions) over SSE. No backend changes are required for the core;
  advanced run-controls are sent as forward-compatible form fields that the
  server ignores when unsupported.
- In-panel model picker, run-controls menu, and an 'ask before edits'
  approval flow for Agent mode.
- Self-contained under integrations/vscode-extension/ (TypeScript + esbuild),
  with ESLint + Prettier, vitest unit tests, and a CI workflow that
  typechecks, lints, tests, and packages the VSIX on PR.

Build: npm --prefix integrations/vscode-extension run build.
@github-actions github-actions Bot added the ready for review Description complete — ready for maintainer review label Jun 16, 2026
Pin actions/checkout, setup-node, and upload-artifact to the commit SHAs
the other workflows use (unpinned-uses), and set persist-credentials: false
on checkout so the token isn't persisted into the build/artifact (artipacked).
@azfahimaf
azfahimaf force-pushed the feat/vscode-extension-upstream branch from 27c083b to b451c45 Compare June 16, 2026 05:35
@azfahimaf

Copy link
Copy Markdown
Contributor Author

Heads-up on a small planned follow-up (kept out of this PR to keep it focused): once this lands, I'd add a one-click "VS Code Extension" entry to Settings → Integrations — alongside the Codex/Claude Agent entries — that mints a chat-scoped API token and shows the server URL + token to paste into the extension's "Odysseus: Configure". Happy to fold it into this PR instead if you'd prefer it together.

@vdmkenny

Copy link
Copy Markdown
Collaborator

Thanks for this, and genuinely nice work. It is well-structured and self-contained (everything under integrations/vscode-extension/, no backend changes, builds green), which makes the quality easy to see.

I am going to decline taking it into the main repo, and it is not about the code. Adopting an official VS Code extension is a project-direction decision that has not been made: #2079 gauges interest, but interest is not a commitment to maintain one in-tree. Pulling ~11k lines of a TypeScript/webview extension into this repo is a standing commitment, a marketplace artifact, a separate toolchain and CI job, and a webview-over-SSE security surface, all of which would need ongoing maintenance by the core maintainers rather than just a one-time merge.

Because it talks only to the existing public server API and needs no backend changes, it does not have to live here to be useful. The cleaner home is its own repository, where you can publish and iterate on it independently against any running Odysseus instance. If the maintainers later decide via #2079 to bless an official extension, this is a strong starting point to point at.

So: closing here, with thanks, not as a quality judgment. Please do keep it alive as a standalone project.

@vdmkenny vdmkenny closed this Jun 16, 2026
@azfahimaf

Copy link
Copy Markdown
Contributor Author

Thanks @vdmkenny, that is a fair and clear call, and I appreciate the detailed reasoning and the kind words. The maintenance-commitment point makes sense. I will keep it alive as a standalone project so it can iterate against any Odysseus instance, and it is here if #2079 ever becomes an official decision. Thanks again for the thoughtful review.

@azfahimaf
azfahimaf deleted the feat/vscode-extension-upstream branch July 24, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review Description complete — ready for maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VS Code extension powered by Odysseus

2 participants