Skip to content

Working with Tzara in VS Code ​

Tzara runs as a VS Code extension. You describe a task in chat; Tzara researches the Skills it needs, writes or edits Python files in your workspace, and asks for your approval before changing existing files or running commands. This page covers the day-to-day workflow. To install the extension, see Install the Telekinesis Agent.

Requirements ​

  • VS Code 1.80 or newer with the Tzara extension installed. The agent's runtime is bundled with the extension.
  • A model provider. An API key for Anthropic, OpenAI, or Google Gemini — or a local Ollama server.
  • A trusted workspace folder for Tzara to read and write files. Without one, Tzara can still answer questions, but it can't save code.
  • A Python environment (recommended) with the Telekinesis SDK (python -m pip install telekinesis-ai) to run the generated code. Install ruff and pyright in the same environment (python -m pip install ruff pyright) so Tzara checks and fixes the code it writes. Tzara uses the interpreter selected through the VS Code Python extension (Python: Select Interpreter).

Opening Tzara ​

  • Session Manager — click the Tzara icon in the Activity Bar. It lists New session followed by your saved conversations. Select one to open it in a chat editor on the right. Its toolbar has a history button and a gear that opens Tzara Settings.
  • Editor toolbar — click the Tzara icon at the top right of an editor to open your latest chat.
  • Command Palette — run Tzara: Open Chat.

Choosing Models ​

The chat composer has two model pickers:

PickerUsed for
AgentThe conversation itself: understanding your request, researching Skills, reading/writing files, planning motion, and deciding what to do next
CodeWriting, repairing, and reviewing generated code in cloud/full mode (unused in local Ollama compact mode, where the Agent model writes files directly)

Both list models from Anthropic, OpenAI, Gemini, and Ollama. Choose Custom model id… under a provider to enter any model name that provider supports — for Ollama, use the name of a model you have pulled locally. Local ollama: models automatically use Tzara's compact context profile (shorter prompt, direct file editing, and automatic context-window budgeting). Select a model before your first request; your choice is remembered.

Tzara reads API keys from the ANTHROPIC_API_KEY, OPENAI_API_KEY, and GOOGLE_API_KEY environment variables. You can instead run Tzara: Set API Key, pick the provider, and paste the key; it is stored in VS Code's secret storage and takes precedence over the environment variable. Ollama needs no key; set tzara.ollama.baseUrl if your server isn't at http://localhost:11434.

Sending a Request ​

Type in the composer and press Enter to send (Shift+Enter adds a new line). Above the composer you can attach context for this message:

  • the paperclip attaches an image,
  • + File, + Folder, and + Selection attach workspace text, a folder listing, or your current editor selection.

See Attachments for what each one sends. While Tzara works, the send button becomes a Stop button that cancels the current request.

What Happens During a Request ​

Tzara's tool activity for each response is grouped in a collapsible log. The header shows the current step; expand it to see each call, its timing, and any error details.

For a code request, Tzara typically:

  1. Gathers context — reads relevant Skill contracts, your workspace files, and any Task Rules that apply.
  2. Asks questions if something essential is missing. Question cards show suggested options and a Something else… choice for your own answer. Click Continue to answer, or Cancel to stop the request.
  3. Writes a draft of the target file.
  4. Checks and repairs the draft with Ruff and Pyright (when installed), then reviews it against your request.
  5. Saves the file — after your approval if it replaces an existing file — and summarizes what changed.

If the draft can't be completed, Tzara reports the unresolved issues instead of saving it. The draft is kept next to the target as a .tzara-draft-*.py file so you can inspect it, or ask Tzara to continue from it in a later message. You can delete these drafts once you no longer need them.

Approvals and Reviewing Changes ​

Changed files ​

The Changed files panel above the composer collects every file Tzara creates or edits in the conversation. Expand a file to see each revision and its diff.

  • Editing or overwriting an existing file waits for your decision: Allow once or Deny beside the diff. Approve pending and Reject pending decide all requests currently waiting.
  • New files are created without a separate approval step and are listed in the panel.
  • After approval, a change shows Approved · Awaiting save result, then Applied once it has been saved. Denied, failed, and interrupted changes stay visible.

Tzara refuses to overwrite a file that has unsaved changes in your editor, or one that changed on disk while it was working.

No undo

Applied changes cannot be rolled back from the panel. Use version control (for example, Git) to undo changes.

Terminal commands ​

When Tzara wants to run a command, it shows a Run terminal command card right at the bottom of the chat stream with the exact command and working directory. Click ✓ Run once to run it or ✕ Reject to refuse. The same card then shows the output and exit code, and subsequent tool calls continue below it.

"Working directory: Workspace root" is the folder, not your conda env

Clicking Run once runs the command inside your project folder using VS Code's active Python interpreter (Python: Select Interpreter in the bottom-right status bar) — or Simulation Python executable (tzara.simulation.pythonPath) when Isaac Sim is enabled.

Automatic approval and tool policies ​

  • Automatically approve actions in Tzara Settings (tzara.approvals.autoApprove) — or the ⚡ Auto toggle pill next to the Send button in the chat composer — approves subsequent file changes, commands, and simulation runs in trusted workspaces (rendering auto-approved steps as compact 1-line rows). Tzara still asks questions about missing task details.

  • tzara.tools.policy (user settings) sets allow, ask, or deny rules per tool. deny beats ask, which beats allow. For example, to always ask before writing files:

    json
    "tzara.tools.policy": [
      { "tool": "write_project_file", "action": "ask" }
    ]

    An allow rule for a file tool doesn't skip the file-change approval.

Approve with care

Approved commands and simulation runs execute with your user account's permissions; they are not sandboxed. Turn on automatic approval only in workspaces where that is acceptable, and never for code that can move a real robot.

Sessions ​

Every conversation is saved locally and appears in the Session Manager.

  • + New chat in the chat (or Tzara: New Chat) starts a separate conversation in its own tab. Other conversations, including ones still running, are not affected.
  • History (or Tzara: Chat History) reopens a saved conversation.
  • To delete a session, hover over it in the Session Manager and click the trash icon, or run Tzara: Delete Session. Deleting removes the conversation but keeps files Tzara generated. It cannot be undone.

Closing a chat tab cancels its running request; the conversation itself is kept. Reopened conversations show earlier approval and command cards for reference, but they can't be used to approve anything again.

Conversations are stored as plain files in VS Code's extension storage on your machine. They may contain source code, images, and other sensitive content.

Tzara Settings ​

Open with the gear in the Session Manager or Tzara: Settings. Settings are organized into four sections:

Section / FieldWhat it does
Workspace & Approvals › Output workspaceSelect folder… sets the folder where Tzara reads and writes files, without switching VS Code windows. Use VS Code workspace goes back to the open folder. Workspace trust opens VS Code's trust settings.
Workspace & Approvals › Automatically approve actionsApproves file changes, commands, and simulation runs without asking, in trusted workspaces.
Workspace & Approvals › Fast / Direct mode (compact)Enabled by default (tzara.agent.contextProfile: "compact"). Writes files directly with fewer tool calls for both local and cloud models. Turn off to use the multi-stage full pipeline planner & reviewer.
Isaac Sim (optional, off by default)Enable scene inspection and simulation, Isaac Sim bridge URL, and Simulation Python executable (your SDK environment with telekinesis-synapse and telekinesis-isaacsim-client). See Validate in Isaac Sim.
User ContextStanding context (hardware setup, preferences, instructions) sent with every request. See User Context.
Advanced & Legacy Overrides (collapsed by default)Isaac Sim scene override (USD) (leave empty for generated cells and built-in environments), Max output tokens (cloud/full mode; automatically capped in local Ollama compact mode), Run pyright on generated pipelines (cloud/full mode only), Task Rules Folder Override (optional — built-in task rules are already included; must be a folder, not a file), and Personal Skill Library Folder.

Output workspace and simulation changes apply to your next request.

Recommended Python & Settings Setup

  • Software-only / Vision / Rerun (macOS, Linux, Windows): Install telekinesis-ai into a Python 3.11/3.12 environment, select it via Python: Select Interpreter, keep Fast / Direct mode (compact) on, and leave Isaac Sim unchecked.
  • With Isaac Sim (Windows / Linux): Enable Isaac Sim in Tzara Settings, set Isaac Sim bridge URL to http://127.0.0.1:8766, and set Simulation Python executable to your Isaac Sim environment's python (with telekinesis-isaacsim-client >= 0.9.4 and telekinesis-synapse >= 0.10.19). Tzara automatically prepends that interpreter's folder to PATH inside run_command and run_simulation.

VS Code Settings ​

These settings are available under Settings › Extensions › Tzara.

SettingDefaultDescription
tzara.agent.contextProfile"compact""compact" (fast direct mode, default) or "full" (multi-stage pipeline planner & reviewer).
tzara.approvals.autoApprovefalseApprove file changes, commands, and simulation runs automatically in trusted workspaces.
tzara.tools.policy[]Allow/ask/deny rules per tool (user settings only).
tzara.pyrightCheck.enabledtrueRun Pyright on generated code and repair the errors it reports.
tzara.pyrightCheck.pythonPath""Interpreter for Pyright and Ruff. Empty uses VS Code's selected interpreter.
tzara.pipeline.repairsEnabledtrueAutomatically repair drafts after failed checks or review. Turn off for one-pass generation.
tzara.pipeline.timeoutSeconds1800Time limit for one code generation, including research, drafting, repairs, and review (60–3600).
tzara.ollama.baseUrlhttp://localhost:11434Ollama server used when an Ollama model is selected.
tzara.debug.traceEnabledfalseWrite a detailed debug trace for each request (see below).
tzara.simulation.*Isaac Sim settings. See Validate in Isaac Sim.

Commands ​

CommandWhat it does
Tzara: Open ChatOpens your latest conversation in an editor on the right.
Tzara: Open Chat in EditorSame as Tzara: Open Chat.
Tzara: New ChatStarts a new conversation.
Tzara: Chat HistoryPicks a saved conversation to open.
Tzara: Delete SessionDeletes a saved conversation.
Tzara: SettingsOpens Tzara Settings.
Tzara: Set API KeyStores an Anthropic, OpenAI, or Gemini API key in VS Code's secret storage.
Tzara: Open Debug LogOpens a saved debug trace.

Starter Prompts ​

For step-by-step walkthroughs of the built-in welcome prompts (webcam object detection, part counting, and software-only 3D UR10e trajectories in Rerun) with expected code and outputs on macOS, Linux, and Windows, see the Getting Started with Tzara tutorial.

Debug Traces ​

To see exactly what Tzara did on a request — the prompts it sent, the tools it called and what they returned, and the generated drafts — enable tzara.debug.traceEnabled, send the request, then run Tzara: Open Debug Log and pick the newest trace. The setting applies to new requests.

Traces are stored locally and are never uploaded. Known API keys are redacted, but traces can contain your source code and other private data: review a trace before sharing it, and turn the setting off when you're done.