Python stdio sidecar bridging LangGraph agents to the LangStage VS Code chat extension
pip install langstage-vscode==0.5.49
Chat with your own LangGraph agent from inside your editor, in the LangStage panel : the extension's own chat view, so it works in VS Code without Copilot , and in Cursor, VSCodium, Windsurf and code-server. Streaming replies, tool-call cards, reasoning, approval cards, and several conversations saved per workspace. (The panel is a preview.)
If the image above doesn't load, the same recording is in this repo: docs/assets/panel-demo.gif .
Using Copilot? The same agent is also the @langstage chat participant in Copilot's chat view ( below ).
Quick install (details in Install ):
pip install langstage-vscode (the Python sidecar, in the environment that can import your agent).
LangStage in the Extensions view and install it (from the VS Code Marketplace ; Cursor, VSCodium and Windsurf install it from Open VSX ).
Open the LangStage view in the activity bar and click Try the demo , or set langstage.agentSpec to your agent.
Renamed from deepagent-vscode (the old package name now just installs this one; python -m deepagent_vscode and the old sidecar command still work).
Renamed from deepagent-vscode (the old package name now just installs this one; python -m deepagent_vscode and the old sidecar command still work).
It has two parts in one repo:
extension/ — a TypeScript extension: the LangStage panel (a webview view) and the @langstage chat participant.
langstage_vscode/ — a small Python stdio sidecar that loads your agent and streams its events. Built on langstage-core , so it streams the same AG-UI frame vocabulary as the other LangStage stages ( langstage , langstage-jupyter , langstage-cli ).
Status: preview. The extension is on the VS Code Marketplace and Open VSX (see Install ); each release's .vsix is also on GitHub releases .
Status: preview. The extension is on the VS Code Marketplace and Open VSX (see Install ); each release's .vsix is also on GitHub releases .
Every stage for your LangGraph agent
langstage-vscode is the VS Code stage of the LangStage family : write your agent once — any LangGraph CompiledGraph — and run it on every stage with the same spec string ( module:attr or path/to/file.py:attr ), the same langstage.toml config file, and the same LANGSTAGE_* environment variables.
📖 Full documentation:
The sidecar already streams every turn through the in-process AG-UI adapter. Your agent — any LangGraph CompiledGraph — can also be served over the AG-UI protocol as a standalone HTTP endpoint, without changing your agent code:
Install it into the interpreter langstage.pythonPath points at (see Configure ). The extension (0.6.2+) expects langstage-vscode 0.5.35 or newer there. It still runs an older one, but warns that some features may not work and offers the upgrade command for that interpreter ( -m pip install -U langstage-vscode ); see the ready handshake . If that interpreter doesn't have langstage-vscode at all, the panel says so and offers the -m pip install langstage-vscode command (extension 0.6.3+).
--demo (the keyless echo stub) runs on this base install — since 0.5.0 the base deps pull the AG-UI runtime, which brings langgraph , so no extra is needed. Pass --demo=tools for the rich-frame demo that exercises tool_start / tool_end / reasoning / interrupt keyless — the extension's headline rendering surface, without an agent or API key (parity with langstage-agui --demo=tools ).
Open the Extensions view ( Ctrl+Shift+X / Cmd+Shift+X ), LangStage , and click Install (VS Code 1.95 or newer). The extension ID is dkedar7.langstage-vscode :
VS Code installs it from the VS Code Marketplace .
Cursor, VSCodium, Windsurf (and other Open VSX-based editors) install it from Open VSX .
Or from a terminal (use cursor , codium or windsurf in place of code in those editors):
Fallback: install the VSIX. Each release's .vsix is also attached to its GitHub release: download langstage-vscode- .vsix from the latest extension release , then run Extensions: Install from VSIX… and pick the file, or code --install-extension langstage-vscode- .vsix . Use this for an offline or air-gapped machine, or an editor that reaches neither registry.
Every CI run on main also builds a .vsix (the langstage-vscode-vsix artifact of the CI workflow ), if you want an unreleased build.
Or build the same file yourself:
To work on the extension, run npm run compile and press F5 in VS Code (with the extension/ folder open) to launch an Extension Development Host with the LangStage panel (and @langstage , where the chat view exists) available.
Which Python runs the sidecar (extension 0.6.7+). Usually you set nothing: with langstage.pythonPath empty, the extension uses the workspace folder's .venv (then venv ) when it has an interpreter, and otherwise python on PATH . The panel's status line shows the choice ( Python: .venv (auto-detected) ), with the full path in its tooltip.
To point at another interpreter, the setting accepts ${workspaceFolder} , ${workspaceFolder: } (multi-root), ${userHome} , ${env: } and a leading ~ . A relative path is resolved against the workspace folder, and a venv's folder stands for its interpreter, so one value works on Windows, macOS and Linux and can be committed in .vscode/settings.json to your langstage.toml :
The full order is: langstage.pythonPath , the legacy deepagent.pythonPath , LANGSTAGE_PYTHON in the editor's environment, the workspace venv, python on PATH . Other ${...} variables are refused by name. This does not use the Python extension, so it behaves the same in Cursor, VSCodium, Windsurf and code-server.
The sidecar resolves its configuration through the family-standard chain — defaults . The --json verdict also carries checkpointer , the served agent's checkpointer as the ready frame reports it (see Sidecar protocol ):
With no agent configured, a pass says it only validated the runtime with the demo stub ( "demo_fallback": true in --json ). If a langstage.toml key that looks like a typo'd spec was ignored ( [agent] specc = ... , an [agents] table), --selfcheck fails and names the key rather than validating the stub in your agent's place.
--selfcheck answers "is the runtime healthy?"; --message answers "what does my agent actually say ?" — it drives one turn with your prompt and prints the , then exits (no NDJSON + shutdown to hand-craft). Add --json to get the raw event frames instead of the assembled text:
Bare --demo is the echo stub (only content frames); --demo=tools serves the rich-frame demo — a keyless way to see every non-content frame the extension renders, no agent and no API key. Its trigger phrases route to each frame type:
--message answers "what does my agent say once ?"; --repl answers "does it remember ?" — the multi-turn companion to --message . It reads one prompt per line and drives a turn, but keeps one long-lived session (a single session_id , so a single LangGraph thread_id ) alive for every turn — the same per-conversation shape the VS Code extension uses — so your agent's memory persists across turns. That makes the memory behavior below verifiable from the CLI in ten seconds: tell it your name, ask on the line. Exit with Ctrl-D (EOF) or a :quit line; --json streams the raw event frames instead of the assembled text, just like --message :
Your agent will recall the first line on the second even if you never compiled in a checkpointer — within one sidecar process the sidecar auto-attaches an in-memory checkpointer to any graph that lacks one, so --repl (one process, one session_id ) verifies in-process memory and catches a wrong- session_id mistake before wiring up the extension. What it can't prove is durable memory: that in-memory state is lost when the process ends, so persistence across separate processes still needs a persistent checkpointer (see the memory note under Sidecar protocol ). Each --message run and each --repl process starts a fresh thread, so earlier runs never leak into a new one; to check durable memory, send two message commands with the same session_id over the stdio protocol from two processes.
Both turn-drivers are interrupt-aware . If your agent pauses on a human-in-the-loop interrupt(...) (the common deepagents / LangGraph approval pattern), the turn is no longer a silent blank — the pending action and the decisions it allows are surfaced on stderr (stdout stays the clean channel), and one-shot --message exits with a distinct code 2 so an interrupt is scriptable, distinct from a clean ( 0 ) or an error ( 1 ):
The action: name is the waiting tool (or your own interrupt(...) payload's action ). For LangChain's HumanInTheLoopMiddleware it is the tool's name, e.g. action: delete_file . If several tools are waiting and they don't allow the same decisions, each is listed with its own: action: delete_file (approve | reject), send_note (approve | edit | reject) . The name is shown on one line: control characters are dropped, a very long name is cut off, and a name with spaces or punctuation is put in quotes.
With --json , the raw {"type": "interrupt", ...} frame streams on stdout, so a consumer keys on it directly.
--repl can also answer the interrupt , completing the interrupt → decision round-trip without hand-writing the stdio protocol. When a turn ends on an interrupt, the session enters decision mode : the line becomes a decision on the same session, so it resumes that thread's pending interrupt.
Type :decision (same : -prefixed namespace as :quit ), or just the bare verb — a bare verb is only read as a decision while an interrupt is pending ; the rest of the time approve is ordinary chat text.
The verbs come from that interrupt's own allowed_decisions , so an approval-only agent offers and accepts exactly reject | approve (the legacy aliases below are accepted too). Payloads follow the LangChain HITL decisions: approve , reject [ ] , respond , edit (free text becomes message , a JSON object is merged in, e.g. edit {"edited_action": {"name": "confirm", "args": {}}} ).
Several tools waiting at once (the model made parallel tool calls): a verb answers every one of them the same way, as the panel does. To answer each one differently, give a JSON list in the order the notice names them: :decision [{"type": "approve"}, {"type": "reject"}] . A verb that one of the tools doesn't allow, or a list of the wrong length, is refused before anything is sent.
While an interrupt is pending, a line that isn't a valid decision is refused on stderr and re-prompted with the interrupt left pending — it is never silently sent as a new message (which would just re-interrupt and look accepted) and never swallowed. :quit is always the way out.
--json composes: the answer line emits ack with "ref": "decision" , so the trace reads ready → ack message → interrupt → complete → turn_end → ack decision → content → complete → turn_end . (Both turns emit complete — an interrupt turn is interrupt → complete → turn_end ; it is paused, not finished-with-a- , so detect the pause via the interrupt frame, not the absence of complete .)
--repl exit codes: 0 on a clean session (including an interrupt that was answered), 1 if the agent could not start at all, and 2 if the session ends with an interrupt still unanswered — the same "paused awaiting a decision" signal --message uses.
You can still drive decision over the raw stdio protocol directly ( {"type": "decision", "session_id": "...", "decisions": [{"type": "approve"}]} ). That is what the VS Code extension sends when you click a decision button in the chat (see Answering an interrupt from the chat ).
Your agent is any LangGraph CompiledGraph (e.g. from deepagents ), exported under the name in the spec:
The sidecar uses the LangStage family exit codes ( core ADR 0007 ), the same on every surface:
2 means only "paused". Usage errors exit 64 rather than argparse's default 2 , so a typo'd flag in a script can't read as a pause.
On the stdio loop, 1 means the sidecar couldn't serve the agent at all (gh #158). An error frame for a bad command or a failed turn is answered and the loop keeps serving, so the loop still ends with 0 on shutdown or EOF.
The LangStage panel (preview)
Extension 0.5.0 added the LangStage panel : the extension's own chat view, in the activity bar (the LangStage icon), or via LangStage: Open the LangStage panel in the command palette. It needs nothing but the editor and the sidecar, so it works with or without Copilot , in VS Code, Cursor, VSCodium, Windsurf and code-server ( ADR 0001 ).
Recorded by npm run record ( extension/test/record/ ): the real panel bundle in the webview harness, themed like VS Code's Dark Modern, driven through the real host logic against the real sidecar running --demo=tools . No Copilot, no API key.
Replies stream in as markdown. Each assistant message ( message_id ) is its own block.
Tool calls are collapsible cards with the arguments, the result, the status and the duration. Reasoning is a collapsed block, apart from the . A write_todos plan is one live Tasks checklist at the top, updated in place.
Stop cancels the turn cooperatively: the agent keeps its memory of the conversation.
Approvals (0.6.0). When the agent pauses on a human-in-the-loop interrupt, the panel shows an approval card with the action and its arguments, and one button per decision the interrupt allows: Approve , Reject (with an optional reason), Respond (answer in words), Edit (the arguments as JSON, checked before sending), and any custom verb the graph advertises. Legacy spellings ( accept , ignore , response ) work as in core's normalize_decision . The sidecar stays the authority: if it refuses an answer, the card stays live and shows why. While a conversation is paused, the message box asks you to answer the request first.
Conversations (0.6.0). The title at the top opens the conversation list: new ( + ), switch, rename and delete. Each conversation has its own session, so the agent's memory is never shared between them. The sidecar runs one turn at a time, so a message sent in one conversation while another is streaming is shown as queued and runs ; Stop stops only its own conversation.
Transcripts persist per workspace (in the extension's workspace storage, on this machine, not synced) and come back after a window reload. The agent process is new after a reload, so with the default in-memory checkpointer the agent has forgotten them, and the panel marks where its memory stops: "The agent may not remember the conversation above" . With a durable checkpointer ( SqliteSaver , PostgresSaver , ...) the agent still has the conversation, and the note is not shown (extension 0.6.1 with sidecar 0.5.34 or later, which reports the checkpointer in its ready frame; with an older sidecar the note is always shown). A request that was still waiting for your decision can't be answered after a reload; send a new message instead.
The status line shows the sidecar starting, ready, or failed with its startup error. With no agent configured it offers Open settings and Try the demo (the keyless --demo=tools agent, for that session only). A sidecar that speaks a newer protocol than the extension also fails to start, and says to update the extension (0.6.2+, see the ready handshake ).
Agent output is untrusted: raw HTML is never rendered, and a link opens only after you confirm it. The panel talks to the sidecar over the extension host's stdio pipe; it opens no network port.
The panel runs its own sidecar, separate from the @langstage participant's, so the two don't conversations. The extension is published on the VS Code Marketplace and Open VSX (see Install ). It is disabled in untrusted (Restricted Mode) workspaces, because running your agent executes workspace code.
For Copilot users: the @langstage chat participant
Where the editor has a chat view (VS Code with Copilot), open it and start a message with @langstage :
The extension streams the agent's content, tool calls, reasoning, and todo updates (a write_todos call renders as a Tasks checklist) into the chat response.
Answering an interrupt from the chat
When the agent pauses on a human-in-the-loop interrupt (a HumanInTheLoopMiddleware approval, or any interrupt(...) ), the response shows what it wants to do (each action, its description, and its arguments) and a button for each decision the interrupt allows:
Approve and Reject send at once. Respond… and Edit… put the command in the chat input so you can type the text. The answer is a decision on the same conversation's session, and the resumed turn streams into the chat like any other .
Only the verbs in the interrupt's allowed_decisions get a button, and a command for any other verb is refused before it is sent. The sidecar checks every decision again with langstage-core's normalize_decision . A legacy interrupt that lists accept , ignore or response is answered with that spelling. A custom verb has no button; it is listed and can be answered from --repl .
An interrupt that asks several actions at once gets the same decision for each.
While the agent is paused, a plain message is not sent (it could not reach the agent). The chat shows the buttons again instead.
The pending interrupt lives in the sidecar process. If that process restarts (a settings change, a reload) before you answer, the decision is refused with no interrupt pending ; start a new message.
The extension talks to the sidecar over newline-delimited JSON. You can drive it directly for testing:
Commands (client → sidecar), one JSON object per line:
shutdown and closing stdin both end the loop with exit 0 . A client does not have to close stdin after shutdown ; the extension keeps the pipe open until the process exits (gh #151). A sidecar whose agent can't be served exits 1 without reading a command (see Startup failures below).
Decision verbs. Each entry in decisions needs a string type , and that verb must be one the pending interrupt frame lists in allowed_decisions . The advertised verbs are LangChain's HITL decisions: approve , edit , reject , respond . The legacy LangGraph HumanResponse verbs are accepted as aliases, in any case:
So accept answers an interrupt that allows approve , and ignore is refused by one that doesn't allow reject . The sidecar checks each verb with langstage-core's normalize_decision , the same check --repl uses, so both paths accept and refuse the same input (gh #117). A decision whose verb is missing or not allowed is refused with error → turn_end and no ack , and the interrupt stays pending, so a valid decision can still answer it. If any entry in decisions is refused, none are sent. An accepted decision reaches the graph as sent: core rewrites an alias to the canonical verb for a HumanInTheLoopMiddleware interrupt, which needs it, and hands any other interrupt the verb unchanged.
A cancel stops the turn currently streaming for that session_id cooperatively — it emits a distinct cancelled frame (neither complete nor error ) then turn_end , and leaves the process, the session, and its in-process checkpointer alive , so the message on the same session_id resumes with memory intact. A cancelled message turn is also rolled back (gh #106): the thread returns to its checkpoint from before that turn, so the cancelled prompt doesn't stay in the agent's history with no after it. (This needs a checkpointer the sidecar can read synchronously, such as the default in-memory one. With an async-only checkpointer the thread is left as it was.) That is the difference from killing the sidecar to stop a turn, which throws the conversation's memory away. A cancel with no turn in flight for the session is answered with an error frame ( no turn in progress for session '…' ), consistent with the decision / message guards.
Events (sidecar → client): langstage-core's AG-UI event-wire frames (the same frame vocabulary every LangStage stage streams), plus a few protocol frames:
The sidecar wires core's TodoExtractor into every turn, so an agent that calls write_todos (the deepagents planning tool) emits the todos extraction frame above. --demo=tools wires the demo's own extractor instead ( "extracted_type": "demo_fact" ). A client should ignore a frame type or key it doesn't know: new keys are additive.
The ready handshake (sidecar 0.5.35+, gh #89). Every ready says which sidecar the client is talking to, before it sends a command, even when the agent then fails to build:
The capabilities are:
--selfcheck --json carries the same version , protocol and capabilities . A sidecar older than 0.5.35 sends none of them. The extension (0.6.2+) refuses to start a sidecar whose protocol is newer than the one it supports, and asks you to update the extension. It warns, once per interpreter, when the sidecar is older than 0.5.35 (or doesn't say), and offers the pip install -U langstage-vscode command for that interpreter. It sends cancel only to a sidecar that lists it, or to one that sends no capabilities at all.
ready 's checkpointer (sidecar 0.5.34+) describes the checkpointer the served agent actually runs with: kind is its class name ( InMemorySaver when the graph was compiled without one and the sidecar attached the in-memory default), and durable says whether its threads outlive the process. An in-memory saver is not durable; any other saver ( SqliteSaver , PostgresSaver , ...) is taken to be. The panel shows its "may not remember" note after a restart only when durable is not true . If the agent can't be served (the spec isn't a runnable graph), ready has the handshake but no checkpointer , and the error frame follows.
A client must handle error : a malformed/unknown command, a message with no content , an invalid decision (including a well-formed one sent when the session has no pending interrupt to resume, or one whose verb the interrupt doesn't allow), and an agent crashing mid-turn all emit an error frame. On the agent-failure path there is no complete — the sequence is ack → error → turn_end , with any content earlier nodes already produced streamed before the error — so don't key turn-completion off complete alone. A rejected command is still a (zero-length) turn: a message with no content , a malformed decision , a decision with no pending interrupt, or one with a verb the interrupt doesn't allow emits error → turn_end — no ack , since nothing ran — so a client that waits for turn_end always stops waiting (gh #118). turn_end is the one frame every message / decision is guaranteed to end with. The same error → turn_end shape answers a message whose content isn't a string (gh #113), and a message sent to a session that is paused on an interrupt (gh #134): a new message would not resume it (the turn would just re-interrupt and the message would never reach the agent), so answer the interrupt with a decision instead. A message / decision whose session_id isn't a string is rejected the same way, but its turn_end carries no session_id (the bad value is not echoed back); a cancel with a non-string session_id gets a bare error (gh #122). Encoding. Commands are read as UTF-8 , whatever the platform's locale encoding (gh #119). A line that isn't valid UTF-8 gets a bare error frame, like invalid JSON, and the loop keeps serving. Startup failures come before ready : with no agent spec, a spec that fails to load, or a workspace root that isn't a directory (gh #121), the sidecar writes one error frame with no ready and exits 1 . A client should show that frame's error text; the extension does (gh #131). A spec that loads but isn't a runnable graph (an uncompiled StateGraph , a factory function, a bare value such as 42 ), or an agent that fails to build, gets ready (the handshake, no checkpointer ) and then the error frame, and the sidecar exits 1 without reading a command (gh #158). Two more terminal shapes are not complete . An interrupt turn emits interrupt → complete → turn_end : it does still emit complete , but the agent produced no — it is paused awaiting a decision, so detect the pause via the interrupt frame, not by the presence of complete . A cancelled turn (a client cancel ) emits cancelled → turn_end with no complete at all — a cancelled turn is neither complete nor error .
A client must handle error : a malformed/unknown command, a message with no content , an invalid decision (including a well-formed one sent when the session has no pending interrupt to resume, or one whose verb the interrupt doesn't allow), and an agent crashing mid-turn all emit an error frame. On the agent-failure path there is no complete — the sequence is ack → error → turn_end , with any content earlier nodes already produced streamed before the error — so don't key turn-completion off complete alone.
A rejected command is still a (zero-length) turn: a message with no content , a malformed decision , a decision with no pending interrupt, or one with a verb the interrupt doesn't allow emits error → turn_end — no ack , since nothing ran — so a client that waits for turn_end always stops waiting (gh #118). turn_end is the one frame every message / decision is guaranteed to end with. The same error → turn_end shape answers a message whose content isn't a string (gh #113), and a message sent to a session that is paused on an interrupt (gh #134): a new message would not resume it (the turn would just re-interrupt and the message would never reach the agent), so answer the interrupt with a decision instead. A message / decision whose session_id isn't a string is rejected the same way, but its turn_end carries no session_id (the bad value is not echoed back); a cancel with a non-string session_id gets a bare error (gh #122).
Encoding. Commands are read as UTF-8 , whatever the platform's locale encoding (gh #119). A line that isn't valid UTF-8 gets a bare error frame, like invalid JSON, and the loop keeps serving.
Startup failures come before ready : with no agent spec, a spec that fails to load, or a workspace root that isn't a directory (gh #121), the sidecar writes one error frame with no ready and exits 1 . A client should show that frame's error text; the extension does (gh #131). A spec that loads but isn't a runnable graph (an uncompiled StateGraph , a factory function, a bare value such as 42 ), or an agent that fails to build, gets ready (the handshake, no checkpointer ) and then the error frame, and the sidecar exits 1 without reading a command (gh #158).
Two more terminal shapes are not complete . An interrupt turn emits interrupt → complete → turn_end : it does still emit complete , but the agent produced no — it is paused awaiting a decision, so detect the pause via the interrupt frame, not by the presence of complete . A cancelled turn (a client cancel ) emits cancelled → turn_end with no complete at all — a cancelled turn is neither complete nor error .
session_id and conversational memory. The sidecar maps each session_id to a LangGraph thread_id in the run config, and attaches an in-memory checkpointer to any graph that was compiled without one — the AG-UI adapter the sidecar streams through needs threaded state, and this avoids a hard "No checkpointer set" crash. So within one sidecar process , multi-turn memory across messages with the same session_id works for any graph — even a plain create_react_agent with no checkpointer of its own — because the sidecar supplies the missing checkpointer for you, keyed by session_id / thread_id . Compiling your own ( graph.compile(checkpointer=...) , or create_deep_agent(..., checkpointer=...) ) chooses which checkpointer is used, not whether one turn remembers the in-process. The real distinction is in-process vs. cross-process . The auto-attached checkpointer — like any MemorySaver — lives only in that process, so its memory is lost when the process ends. The VS Code extension keeps one sidecar process alive per conversation — it spawns the sidecar on the first @langstage message and reuses that same process for every following turn (gh #54) — so that in-process memory persists across turns in chat, not just when you drive the stdio protocol by hand. Each chat conversation gets its own session_id (a random id minted on its first turn and carried in the chat result metadata), so two conversations never a thread — not when you resume an earlier chat, and not across restarts with a durable checkpointer (gh #133). The process is restarted on a config change (interpreter / agent spec) and when you start a new chat; resuming an older chat after that starts it on a clean in-process thread (a durable checkpointer keeps its history). If you drive the sidecar yourself, keep one process alive and send each turn to it — a fresh process per message gets a fresh in-memory checkpointer and forgets the prior turn. What survives across separate processes (durable memory) is a persistent checkpointer ( SqliteSaver , PostgresSaver , …) keyed by thread_id — the one thing the sidecar's in-memory default is not . The --repl flag (see Configure ) drives exactly one process with one session across turns, so you can verify this in-process memory behavior from the CLI without hand-crafting the protocol.
session_id and conversational memory. The sidecar maps each session_id to a LangGraph thread_id in the run config, and attaches an in-memory checkpointer to any graph that was compiled without one — the AG-UI adapter the sidecar streams through needs threaded state, and this avoids a hard "No checkpointer set" crash. So within one sidecar process , multi-turn memory across messages with the same session_id works for any graph — even a plain create_react_agent with no checkpointer of its own — because the sidecar supplies the missing checkpointer for you, keyed by session_id / thread_id . Compiling your own ( graph.compile(checkpointer=...) , or create_deep_agent(..., checkpointer=...) ) chooses which checkpointer is used, not whether one turn remembers the in-process.
The real distinction is in-process vs. cross-process . The auto-attached checkpointer — like any MemorySaver — lives only in that process, so its memory is lost when the process ends. The VS Code extension keeps one sidecar process alive per conversation — it spawns the sidecar on the first @langstage message and reuses that same process for every following turn (gh #54) — so that in-process memory persists across turns in chat, not just when you drive the stdio protocol by hand. Each chat conversation gets its own session_id (a random id minted on its first turn and carried in the chat result metadata), so two conversations never a thread — not when you resume an earlier chat, and not across restarts with a durable checkpointer (gh #133). The process is restarted on a config change (interpreter / agent spec) and when you start a new chat; resuming an older chat after that starts it on a clean in-process thread (a durable checkpointer keeps its history). If you drive the sidecar yourself, keep one process alive and send each turn to it — a fresh process per message gets a fresh in-memory checkpointer and forgets the prior turn. What survives across separate processes (durable memory) is a persistent checkpointer ( SqliteSaver , PostgresSaver , …) keyed by thread_id — the one thing the sidecar's in-memory default is not . The --repl flag (see Configure ) drives exactly one process with one session across turns, so you can verify this in-process memory behavior from the CLI without hand-crafting the protocol.
The extension version lives in extension/package.json . Bump it, add the release to both CHANGELOG.md (as ## [Extension ] ) and extension/CHANGELOG.md (the one the VSIX ships, shown on the store page to extension/README.md ), merge to main , then from a clean main checkout run:
scripts/release-extension.sh checks the tree is clean and on main , builds the VSIX ( npm ci && npm run package in extension/ ), publishes it to the VS Code Marketplace ( vsce ) and Open VSX ( ovsx ), and creates the GitHub release extension-v with the VSIX attached. Each step is skipped when that version is already there, so a partly failed run can simply be re-run. op run injects the tokens from 1Password, so they are never printed. Pass --dry-run to build and report what would be published without publishing anything (no tokens needed).
The Python sidecar is released separately to PyPI.
Release files for langstage-vscode 0.5.49
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .
Source distribution (sdist)
Built distribution (wheel)
Total release size: 2.8 MB
Release files / langstage_vscode-0.5.49.tar.gz
Release files / langstage_vscode-0.5.49-py3-none-any.whl
Security for langstage-vscode 0.5.49
Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
Release history Release notifications | RSS feed
Nov 30, 2026 2 release files No provenance
Nov 24, 2026 2 release files No provenance
Nov 23, 2026 2 release files No provenance
Nov 22, 2026 2 release files No provenance
Nov 19, 2026 2 release files No provenance
Nov 18, 2026 2 release files No provenance
Nov 12, 2026 2 release files No provenance
Nov 6, 2026 2 release files No provenance
Oct 31, 2026 2 release files No provenance
Oct 26, 2026 2 release files No provenance
Oct 19, 2026 2 release files No provenance
Oct 12, 2026 2 release files No provenance
Oct 12, 2026 2 release files No provenance
Oct 10, 2026 2 release files No provenance
Sep 30, 2026 2 release files No provenance
Sep 30, 2026 2 release files No provenance
Sep 26, 2026 2 release files No provenance
Sep 26, 2026 2 release files No provenance
Sep 25, 2026 2 release files No provenance
Sep 24, 2026 2 release files No provenance
Sep 24, 2026 2 release files No provenance
Sep 23, 2026 2 release files No provenance
Aug 8, 2026 2 release files No provenance
Aug 6, 2026 2 release files No provenance
Aug 3, 2026 2 release files No provenance
Jul 31, 2026 2 release files No provenance
Jul 26, 2026 2 release files No provenance
Jul 25, 2026 2 release files No provenance
Jul 25, 2026 2 release files No provenance
Jul 23, 2026 2 release files No provenance
Jul 19, 2026 2 release files No provenance
Jul 19, 2026 2 release files No provenance
Jul 15, 2026 2 release files No provenance
Jul 15, 2026 2 release files No provenance
Jul 10, 2026 2 release files No provenance
Jul 10, 2026 2 release files No provenance
Jul 8, 2026 2 release files No provenance
Jul 8, 2026 2 release files No provenance
Jul 6, 2026 2 release files No provenance
Jul 5, 2026 2 release files No provenance
Jul 5, 2026 2 release files No provenance
Jul 5, 2026 2 release files No provenance
Jul 4, 2026 2 release files No provenance
Jul 3, 2026 2 release files No provenance
Jul 3, 2026 2 release files No provenance
Jul 2, 2026 2 release files No provenance
Jul 1, 2026 2 release files No provenance
Jul 1, 2026 2 release files No provenance
Jun 29, 2026 2 release files No provenance
Jun 28, 2026 2 release files No provenance
Jun 27, 2026 2 release files No provenance
Jun 25, 2026 2 release files No provenance
Jun 23, 2026 2 release files No provenance
Jun 21, 2026 2 release files No provenance
Jun 20, 2026 2 release files No provenance
Jun 19, 2026 2 release files No provenance
Jun 14, 2026 2 release files No provenance
Jun 12, 2026 2 release files No provenance
Jun 12, 2026 2 release files No provenance
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
