PanCode
All tutorials

Getting started5 min read

Your first session with PanCode

Connect a model, open a repository, and ask PanCode to explain how it builds and runs its tests.

Written for
v0.9.0
Works in
Terminal · Desktop alpha
Basis
Recorded session
Updated
Terminal recording of the first pancode launch in ~/projects/calibration-lab: with no model target configured, setup starts, says it sends one short test message before saving, and offers GitHub Copilot SDK, signed in, with model gpt-6-luna recommended, or Set up something else. Chat then opens on copilot-sdk · gpt-6-luna; asked how the repository builds and runs its tests, Panos reads package.json, README.md, temperature.mjs and calibration.test.mjs, says there is no build step and npm test runs node --test calibration.test.mjs, suggests npm test as the check, and notes without running it that kelvinToCelsius rejects 0 K while the absolute-zero test expects a value.
First launch: setup finds the stored GitHub Copilot sign-in, chat opens, and the first question is answered from the files it read. Terminal · v0.9.1 Recording · 0:20
Transcript
First launch of PanCode: setup finds a stored login and chat opens
Recorded with PanCode 0.9.1. Each section is the terminal screen at that moment.

== setup

~/projects/calibration-lab $ pancode
No model target is configured. PanCode needs a model before it can do anything else, so setup starts now.

┌  Welcome to PanCode
│
│  Choose what you already use. PanCode checks the endpoint and model list when the provider allows it.
│  Before saving, PanCode sends the model one short test message (a few tokens; paid providers bill it).
│  Esc goes back a step, and from the first step leaves without saving. Your choices are written to your PanCode
│  settings only after the test message, except a browser sign-in you complete.
│
│  PanCode found a way to reach a model:
│
│  ❯ GitHub Copilot SDK, signed in  model gpt-6-luna (recommended)
│    Set up something else          an API key, a subscription, or a server
│
│  ↑↓ move · Enter select · Esc cancel · q quit

== chat










   ██████  ██    ██ ███   ██
   ██   ██ ████████ ████  ██
   ██████  ██    ██ ██ ██ ██
   ██      ██    ██ ██  ████       ▐∀▌ PanCode 0.9.1 · Systems software for coding agents
   ██       ██████  ██   ███         awareness  not indexed yet · /context init
                                     last here  no earlier session here
 ██████  ██████  ██████  ███████
██      ██    ██ ██   ██ ██          Ask Panos how to use or extend PanCode.
██      ██    ██ ██   ██ █████
██      ██    ██ ██   ██ ██
 ██████  ██████  ██████  ███████










━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Ask Panos…
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 i No PANCODE.md detected. Run /context init to explore the repo and bootstrap context.                Ctrl+G X dismiss
 ▐∀▌ default · ~/…/calibration-lab · main │ ✓ ready                   ctx 272k │ low ● ○ ○ ○ │ copilot-sdk · gpt-6-luna
 ? keys · / commands                                              Try /run to dispatch parallel workers │ Alt+U details

== sent

▐∀▌ PanCode 0.9.1

▌ Explain how this repository builds and runs its tests. Identify the main entry points and suggest one verification
▌ task. Do not change files yet.

▸ navigated project · 1 result ✓
▸ navigated entries · 0 results ✓
▸ listed workspace · 5 entries ✓

$ listed checks · 5 lines ✓
  │ … 3 earlier lines · /view
  │
  │ Run one with verify(check="<id>"). verify(check="frontend", path=<file>) validates an HTML/CSS/JS artifact.

▸ searched for `"(scripts|build|test|main|bin)"|vitest|jest|mocha|tsx|ts-node` · 2 matches ✓
▸ read package.json · lines 1-9 of 9 · 196B ✓
▸ read README.md · lines 1-24 of 24 · 938B ✓

▸ read · 4.8KB ✓
  │ paths › temperature.mjs · calibration.test.mjs

■ This is a small JavaScript ES module project. package.json declares no build script or TypeScript compiler; the code
  runs directly on Node.js, with no extra dependencies. The main entry point is temperature.mjs, which exports four
  conversion functions. calibration.test.mjs is the test entry point, using Node’s built-in node:test and
  node:assert/strict. Run the tests with npm test (equivalent to node --test calibration.test.mjs).

  Suggested verification task: run the declared test check and confirm the conversion, input-validation, and
  absolute-zero tests pass. I inspected the setup but have not run the tests. No files were changed.

✓ Done · 6.6s · 4 calls · in 12 · out 389 · cached 45.7k · cache write 3.1k · 12:16

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Ask Panos…
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 ▐∀▌ default · ~/…/calibration-lab · main │ ✓ ready              ctx ▰▱▱▱▱▱ 5% │ low ● ○ ○ ○ │ copilot-sdk · gpt-6-luna
 /view inspects recorded tool calls and full outputs                                                      Alt+U details
On this page1. Install PanCode 2. Connect a model 3. Open a workspace 4. Ask a focused question 5. Make the next task specific Keep going

PanCode works in the repository you open. For your first session, give it a small, concrete task: explain how the project builds and runs its tests. That lets you see how it reads code and uses tools before asking it to make a change.

1. Install PanCode

The installer brings its own Node.js and needs no root. Linux, macOS, and WSL are the primary platforms. Native Windows is best effort, so use the current stable release. On Linux, the installer offers to add the desktop app when it finishes.

Shell

curl -fsSL https://pancode.dev/install.sh | sh

2. Connect a model

Open a terminal in a repository you know and start PanCode:

Shell

cd /path/to/your/project
pancode

With no model configured, setup starts on its own:

No model connection is configured. PanCode needs a model before it can do anything else, so setup starts now.

Setup looks for a provider key in your environment, a stored sign-in and a local model server, and lists what it found. Pick one, or choose Set up something else and answer what you have: an API key, a subscription, a model server or gateway, or a setup file from your lab or team. Use a model that supports tool calling.

PanCode sends the model one short test request and saves only when it answers; a browser sign-in you complete is the exception. In the recording of pancode configure on a fresh profile, setup found the stored GitHub Copilot sign-in and recommended gpt-6-luna. Choosing it printed these lines:

◇  Testing copilot-sdk / gpt-6-luna ... answered in 3.2 s.
◇  connection copilot-sdk saved, runtime copilot-sdk
◇  chat runs on copilot-sdk, model gpt-6-luna
◇  fleet default is copilot-sdk
◇  settings written to ~/.config/pancode/settings.yaml
◇  Saved. Chat and workers use this model. Change it any time with /model or /config.
Guided setup in the terminal after choosing GitHub Copilot SDK: it notes that researcher's GitHub Copilot subscription on github.com is used under the organization's Copilot policies, tests copilot-sdk / gpt-6-luna (answered in 3.2 s), saves target copilot-sdk as the chat and fleet default, writes ~/.config/pancode/settings.yaml, and ends with how to start pancode and change the setup later with pancode configure.
Accepting the offer tests the recommended model and saves it as the default for chat and workers. Terminal · v0.9.1

pancode configure runs setup again at any time. Its Connect by endpoint is the shortcut when you already know the URL. LM Studio commonly serves at http://localhost:1234; Ollama commonly serves at http://localhost:11434. The connection guide covers setup and credentials.

If you have used PanCode before, you can skip this step. A chat route you already chose stays in use, and PanCode will not swap it for another when it stops working.

If a connection fails, run:

Shell

pancode doctor

3. Open a workspace

When setup saves, the terminal workspace opens in the same folder. In the recording, its status line read ✓ ready and ended with copilot-sdk · gpt-6-luna. Later, pancode opens the workspace directly.

Or open the desktop alpha in your browser:

Shell

pancode gui --open

In the desktop, open a workspace folder and start a task. If you have not configured a model, Guided setup is also available in the browser; terminal configuration is optional. For this tutorial, either interface gives you a place to enter the first request.

4. Ask a focused question

Try this request:

Explain how this repository builds and runs its tests. Identify the main entry points and suggest one verification task. Do not change files yet.

Follow the tool activity as PanCode reads the repository. In the recording, the agent read package.json, README.md, temperature.mjs and calibration.test.mjs, then named npm test as the test command and the two files as the main entry points. If an approval card appears, read the call before allowing it. If the answer misses an important directory or build system, name it in a follow-up.

5. Make the next task specific

Once you understand the project, ask for one change you can check. Name the problem, what to do and how to verify it. The recording below gave this request for the project's one failing test:

The absolute-zero test fails. Find the cause, fix it, and run the test check.

Terminal recording of a first task on copilot · gpt-6-luna: asked to fix the failing absolute-zero test, Panos searches the project (19 matches), reads temperature.mjs and calibration.test.mjs, changes if (kelvin <= 0) to if (kelvin < 0) on line 21 of temperature.mjs, and runs the test check, which exits 0 with pass 7 and fail 0. It reports that all 7 tests passed (Done · 12s · 8 calls), and a notice says checks passed but coverage of the change was not measured.
A first task at default autonomy: the agent finds the guard that rejects 0 K, edits one line, and runs the project's declared test check without asking. Terminal · v0.9.1 Recording · 0:22
Transcript
A first task in PanCode: fix a failing test and verify
Recorded with PanCode 0.9.1. Each section is the terminal screen at that moment.

== ready










   ██████  ██    ██ ███   ██
   ██   ██ ████████ ████  ██
   ██████  ██    ██ ██ ██ ██
   ██      ██    ██ ██  ████       ▐∀▌ PanCode 0.9.1 · Systems software for coding agents
   ██       ██████  ██   ███         awareness  not indexed yet · /context init
                                     last here  no earlier session here
 ██████  ██████  ██████  ███████
██      ██    ██ ██   ██ ██          /view shows every tool call and its full output.
██      ██    ██ ██   ██ █████
██      ██    ██ ██   ██ ██
 ██████  ██████  ██████  ███████










━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Ask Panos…
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 i No PANCODE.md detected. Run /context init to explore the repo and bootstrap context.                Ctrl+G X dismiss
 ▐∀▌ default · ~/…/calibration-lab · main │ ✓ ready                       ctx 272k │ low ● ○ ○ ○ │ copilot · gpt-6-luna
 ? keys · / commands                                              Try /run to dispatch parallel workers │ Alt+U details

== tui-verify



▐∀▌ PanCode 0.9.1

▌ The absolute-zero test fails. Find the cause, fix it, and run the test check.

▸ navigated project · 1 result ✓
▸ navigated entries · 0 results ✓
▸ searched for `absolute|kelvin|Kelvin|273\.15|273.15` · 40+ matches · truncated ✓

▸ read · 4.8KB ✓
  │ paths › temperature.mjs · calibration.test.mjs

│ Thinking · I see there’s an issue with how Kelvin values are handled—specifically, that they should allow zero. I ne…

▸ navigated symbol `kelvinToCelsius` · 2 results ✓

± edited temperature.mjs · +1 -1 ✓
  │ -21    if (kelvin <= 0) {
  │ +21    if (kelvin < 0) {
  │  22       throw new RangeError(`Kelvin temperature ${kelvin} is below absolute zero (0 K)`);
  │  23    }
  │  24    return kelvin - CELSIUS_KELVIN_OFFSET;
  │  25 }
  │     ...

$ checked test · exit 0 · 19 lines ✓
  │ … 16 earlier lines · /view
  │ ℹ pass 7
  │ ℹ fail 0

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Ask Panos…
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 ▐∀▌ default · ~/…/calibration-lab · main* │ ● waiting for model · 1s              ctx ▰▱▱▱▱▱ 6% │ copilot · gpt-6-luna
 Esc stops · Type while running to steer at the next step · Alt+Q manages queue                           Alt+U details

== tui-verify-result

▸ navigated project · 1 result ✓
▸ navigated entries · 0 results ✓
▸ searched for `absolute|kelvin|Kelvin|273\.15|273.15` · 40+ matches · truncated ✓

▸ read · 4.8KB ✓
  │ paths › temperature.mjs · calibration.test.mjs

│ Thinking · I see there’s an issue with how Kelvin values are handled—specifically, that they should allow zero. I ne…

▸ navigated symbol `kelvinToCelsius` · 2 results ✓

± edited temperature.mjs · +1 -1 ✓
  │ -21    if (kelvin <= 0) {
  │ +21    if (kelvin < 0) {
  │  22       throw new RangeError(`Kelvin temperature ${kelvin} is below absolute zero (0 K)`);
  │  23    }
  │  24    return kelvin - CELSIUS_KELVIN_OFFSET;
  │  25 }
  │     ...

$ checked test · exit 0 · 19 lines ✓
  │ … 16 earlier lines · /view
  │ ℹ pass 7
  │ ℹ fail 0

■ Fixed: kelvinToCelsius rejected 0 K because its absolute-zero check used <= 0. Changed it to reject only values below
  zero. The test check passes: all 7 tests passed.

✓ Done · 12s · 8 calls · in 24 · out 365 · cached 101k · cache write 5.1k · 12:17

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 Ask Panos…
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 i checks passed; coverage of the change not measured                                                  Ctrl+G X dismiss
 ▐∀▌ default · ~/…/calibration-lab · main* │ ✓ ready                 ctx ▰▱▱▱▱▱ 6% │ low ● ○ ○ ○ │ copilot · gpt-6-luna
 /view inspects recorded tool calls and full outputs                                                      Alt+U details

The agent changed kelvin <= 0 to kelvin < 0 in temperature.mjs, ran the declared test check (checked test · exit 0), and ended its report with The test check passes: all 7 tests passed.

Use your project's real test name. Read the diff and the check output yourself before you commit the change.

Keep going

In the terminal, /help lists commands, /model selects a model, /settings opens the settings center, and /config opens your connections, where Add a connection runs setup again without leaving the session.

When you quit, PanCode prints a summary of the session and a pancode --resume <id> line. Run that line to return to the conversation, pancode --continue to reopen the most recent one, or pancode --resume alone to pick from a list.

The commands guide covers shortcuts and session controls. The tools guide explains the repository tools and their permissions.

By Anthony Kougkas · PanCode

Continue with the documentation