### Clone and run PandaCode Source: https://github.com/aicodeking/pandacode/blob/main/CONTRIBUTING.md Clone the repository, install dependencies, and start the Tauri development server. `npm run tauri dev` is the main command; `npm run desktop` is an alternative. ```sh git clone https://github.com/aicodeking/pandacode.git cd pandacode npm ci npm run tauri dev # or: npm run desktop ``` -------------------------------- ### Install DeepSeek CLI (dsh) via npm Source: https://github.com/aicodeking/pandacode/blob/main/README.md Install the DeepSeek CLI (dsh) globally using npm. PandaCode launches it with `dsh --profile acp`. An API key is optional; dsh can use its own stored credentials. ```bash npm i -g @deepseek-ai/dsh ``` -------------------------------- ### Install dependencies and start dev server Source: https://github.com/aicodeking/pandacode/blob/main/website/README.md Installs website dependencies and starts the Astro dev server with telemetry disabled. The site runs at http://127.0.0.1:4173 and requires Node 22.12 or later. Stop a background dev server with `npm --prefix website exec astro -- dev stop`. ```sh npm --prefix website ci ASTRO_TELEMETRY_DISABLED=1 npm run site:dev ``` -------------------------------- ### Install Pi coding agent via npm Source: https://github.com/aicodeking/pandacode/blob/main/README.md Install the Pi coding agent globally using npm. Sign in through Pi's own CLI afterward. PandaCode drives Pi over its RPC mode and enforces permission modes via a local loopback bridge extension. ```bash npm i -g @earendil-works/pi-coding-agent ``` -------------------------------- ### Clone, install, and run desktop app Source: https://github.com/aicodeking/pandacode/blob/main/README.md Build from source requires Node.js 22, stable Rust, and Tauri prerequisites for your OS. The `npm run desktop` command is equivalent to `npm run tauri dev`. ```sh git clone https://github.com/aicodeking/pandacode.git cd pandacode npm ci npm run desktop # same as: npm run tauri dev ``` -------------------------------- ### Install Linux Tauri dependencies Source: https://github.com/aicodeking/pandacode/blob/main/CONTRIBUTING.md Install required system packages for Tauri development on Debian/Ubuntu. Run this before setting up the project on Linux. ```sh sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file \ libxdo-dev libssl-dev libdbus-1-dev libayatana-appindicator3-dev librsvg2-dev ``` -------------------------------- ### start_task Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Starts a task and returns after the task is spawned. ```APIDOC ## start_task ### Description Starts a task and returns after the task is spawned. ### Method IPC Command ### Endpoint start_task ### Parameters #### Arguments - **sessionId** - Required - Session identifier ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### Build release for the host's target Source: https://github.com/aicodeking/pandacode/blob/main/docs/releasing.md Run after `npm ci` on each native OS to build the host's target. The script checks version file agreement, runs `tauri build`, verifies the macOS signature and disk image, and copies the installer to `release/X.Y.Z/` with its `.sha256`; it uploads nothing. On macOS, set `CI=true` to skip the DMG Finder styling step. ```sh npm run release:build # builds the host's target # or: node scripts/release/build.mjs darwin-aarch64|windows-x86_64|linux-x86_64 ``` -------------------------------- ### Run read-only provider catalog checks (installed_claude_catalog, installed_codex_catalog, installed_kimi_catalog) Source: https://github.com/aicodeking/pandacode/blob/main/docs/providers.md Runs ignored integration tests that query each provider's model catalog without consuming model inference usage. Use these to verify the installed provider executables and their available models. ```sh cargo test installed_claude_catalog -- --ignored --nocapture ``` ```sh cargo test installed_codex_catalog -- --ignored --nocapture ``` ```sh cargo test installed_kimi_catalog -- --ignored --nocapture ``` -------------------------------- ### Launch DeepSeek CLI with acp profile Source: https://github.com/aicodeking/pandacode/blob/main/README.md Command PandaCode uses to launch the DeepSeek CLI. Requires dsh installed globally. An API key is optional; dsh can use its own stored credentials. ```bash dsh --profile acp ``` -------------------------------- ### start_terminal Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Starts a terminal session with specified dimensions and returns a terminal ID. ```APIDOC ## start_terminal ### Description Starts a terminal session with specified dimensions and returns a terminal ID. ### Method IPC Command ### Endpoint start_terminal ### Parameters #### Arguments - **projectId** - Required - Project identifier - **sessionId** - Optional - Session identifier - **cols** - Required - Number of columns - **rows** - Required - Number of rows ### Response #### Success Response - **string** - Terminal ID ``` -------------------------------- ### architect_start Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Starts or queues the architect for a session with optional image attachments. ```APIDOC ## architect_start ### Description Starts or queues the architect for a session with optional image attachments. ### Method IPC Command ### Endpoint architect_start ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **text** - Required - Input text - **imageIds** (string[]) - Optional - Image identifiers ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### architect_profiles Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Returns the team library containing the default setup and named profiles. ```APIDOC ## architect_profiles ### Description Returns the team library containing the default setup and named profiles. ### Method IPC Command ### Endpoint architect_profiles ### Parameters #### Arguments None ### Response #### Success Response - **TeamLibrary** - The team library with default setup and named profiles ``` -------------------------------- ### Run Playwright tests for UI changes Source: https://github.com/aicodeking/pandacode/blob/main/CONTRIBUTING.md Install Playwright browsers and run UI tests in Chrome and WebKit. The app runs in WKWebView on macOS, so WebKit tests are important. ```sh npx playwright install chromium webkit # once npx playwright test tests/your-area.spec.ts npx playwright test -c playwright.webkit.config.ts tests/your-area.spec.ts ``` -------------------------------- ### Launch dev build with isolated identifier for bot smoke test Source: https://github.com/aicodeking/pandacode/blob/main/docs/bots.md Starts a Tauri dev build using an isolated identifier to avoid migrating the real database. Used for live smoke testing with a seeded bot and web channel. ```bash npx tauri dev --config '{"identifier":"ai.pandacode.botsmoke","build":{"beforeDevCommand":""}}' ``` -------------------------------- ### Build the website Source: https://github.com/aicodeking/pandacode/blob/main/website/README.md Builds the static site into `website/dist`. The build must not include app archives, installers, signatures, or checksum files in static assets; those belong on GitHub Releases. ```sh ASTRO_TELEMETRY_DISABLED=1 npm run site:build ``` -------------------------------- ### Run all checks before a pull request Source: https://github.com/aicodeking/pandacode/blob/main/CONTRIBUTING.md Execute typecheck, build, unit tests, release script tests, Rust tests, and Clippy lints. Run these before opening a pull request. ```sh npx tsc --noEmit # typecheck npm run build # typecheck + bundle; tests read dist/ npm test # Node unit tests (tests/*.test.mjs) npm run test:release # release script tests cargo test --manifest-path src-tauri/Cargo.toml # Rust tests cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warnings ``` -------------------------------- ### Run Tauri dev with custom identifier Source: https://github.com/aicodeking/pandacode/blob/main/CONTRIBUTING.md Use a different app identifier when running a development build to avoid pointing at real data with risky changes. The example uses `ai.pandacode.dev` as the identifier. ```sh npx tauri dev --config '{"identifier":"ai.pandacode.dev"}' ``` -------------------------------- ### create_worktree Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Creates a new worktree task from the source task's checkout, inheriting harness and model settings. Starts with 'ask' approval behavior and no provider resume ID. ```APIDOC ## create_worktree ### Description Creates a branch from the source task's checkout and saves a new, empty task in the same project. Inherits the harness/model, starts with `ask` approval behavior, and has no provider resume ID. ### Method invoke ### Endpoint create_worktree ### Parameters #### Request Body - **sourceTaskId** (string) - Required - The ID of the source task whose checkout is used. ### Response #### Success Response - **taskId** (string) - The ID of the newly created worktree task. #### Response Example { "taskId": "new-task-id" } ``` -------------------------------- ### architect_save_profile Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Saves a team setup as a named profile without applying it. ```APIDOC ## architect_save_profile ### Description Saves a team setup as a named profile without applying it. ### Method IPC Command ### Endpoint architect_save_profile ### Parameters #### Arguments - **id** (string) - Optional - Profile identifier - **name** - Required - Profile name - **setup** (TeamSetup) - Required - Team setup to save ### Response #### Success Response - **TeamLibrary** - Updated team library with the saved profile ``` -------------------------------- ### architect_configure Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Configures the architect for a session with optional team configuration, model selection, and profile. Atomically remembers the default configuration and manages pending setup for active parent sessions. ```APIDOC ## architect_configure ### Description Configures the architect for a session with optional team configuration, model selection, and profile. Atomically remembers the default configuration and manages pending setup for active parent sessions. ### Method IPC Command ### Endpoint architect_configure ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **config** (TeamConfig or null) - Required - Team configuration or null - **architect** (ModelSelection) - Optional - Model selection for the architect - **profileId** (string) - Optional - Profile identifier ### Response #### Success Response - **TeamSnapshot or null** - The updated team snapshot, or null if not applicable ``` -------------------------------- ### architect_delete_profile Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Deletes a named profile from the team library. Applied setup and histories are retained. ```APIDOC ## architect_delete_profile ### Description Deletes a named profile from the team library. Applied setup and histories are retained. ### Method IPC Command ### Endpoint architect_delete_profile ### Parameters #### Arguments - **id** - Required - Profile identifier ### Response #### Success Response - **TeamLibrary** - Updated team library after deletion ``` -------------------------------- ### Watch and verify release workflow runs Source: https://github.com/aicodeking/pandacode/blob/main/docs/releasing.md Use these commands after pushing a release tag to monitor the release workflow, watch a specific run, and confirm the release exists. The Windows and Linux jobs only check that the packaged app stays alive, not that the window rendered, so manual testing on real machines is still required. ```sh gh run list --workflow release.yml --limit 5 gh run watch RUN_ID gh release view "v$release_version" ``` -------------------------------- ### Prepare release version with npm run release:version Source: https://github.com/aicodeking/pandacode/blob/main/docs/releasing.md Run on main with a clean, reviewed tree. Updates package.json, package-lock.json, src-tauri/tauri.conf.json, src-tauri/Cargo.toml, the pandacode entry in src-tauri/Cargo.lock, and records today's date in website/src/data/release-dates.json. Versions must be plain numeric SemVer; prerelease suffixes are rejected. ```sh release_version=X.Y.Z npm run release:version -- "$release_version" ``` -------------------------------- ### Run typecheck, unit tests, release tests, Rust tests, and browser suites Source: https://github.com/aicodeking/pandacode/blob/main/README.md Commands for validating the project: typecheck with tsc, unit tests (some read dist/), release script tests, Rust tests, and browser suites for Chrome and WebKit. Ordinary tests make no paid model calls. ```sh npx tsc --noEmit # typecheck npm run build && npm test # unit tests (some read dist/) npm run test:release # release script tests npm run test:rust # cargo test npx playwright test # browser suite (Chrome) npx playwright test -c playwright.webkit.config.ts # WebKit ``` -------------------------------- ### Mark AppImage executable and run with extract-and-run Source: https://github.com/aicodeking/pandacode/blob/main/docs/platform-support.md Marks the downloaded AppImage as executable and runs it with APPIMAGE_EXTRACT_AND_RUN=1 for systems where FUSE is unavailable. Some distributions require FUSE 2 (libfuse2 on Ubuntu 22.04). ```sh chmod +x ./PandaCode-Linux-x86_64.AppImage APPIMAGE_EXTRACT_AND_RUN=1 ./PandaCode-Linux-x86_64.AppImage ``` -------------------------------- ### Make Linux AppImage executable Source: https://github.com/aicodeking/pandacode/blob/main/README.md Make the PandaCode Linux AppImage executable and run it. Some distributions need FUSE 2 (libfuse2) or set APPIMAGE_EXTRACT_AND_RUN=1. ```bash chmod +x PandaCode-Linux-x86_64.AppImage ``` -------------------------------- ### Run CI checks and browser suites Source: https://github.com/aicodeking/pandacode/blob/main/docs/releasing.md Run what CI runs, plus the browser suites for any UI change. Includes typecheck, frontend bundle, tests, release tests, cargo tests, and Playwright tests. ```sh npm run build # typecheck + frontend bundle (tests read dist/) npm test npm run test:release cargo test --manifest-path src-tauri/Cargo.toml npx playwright test # or a focused subset; see AGENTS.md ``` -------------------------------- ### pandacode-run.sh shell script for development server Source: https://github.com/aicodeking/pandacode/blob/main/docs/run-project.md POSIX shell script discovered by PandaCode in the task's checkout. Keeps the development server in the foreground and uses the optional `pandacode-preview` comment to declare a local URL (http://127.0.0.1:3000). Must stay inside the checkout, be UTF-8, and fit within 64 KiB. ```sh #!/bin/sh # pandacode-preview: http://127.0.0.1:3000 set -eu npm run dev -- --host 127.0.0.1 --port 3000 ``` -------------------------------- ### configure_window_appearance Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Configures window appearance settings and returns the platform and material. ```APIDOC ## configure_window_appearance ### Description Configures window appearance settings and returns the platform and material. ### Method IPC Command ### Endpoint configure_window_appearance ### Parameters #### Arguments - **reducedTransparency** (boolean) - Required - Whether to reduce transparency - **increasedContrast** (boolean) - Required - Whether to increase contrast - **darkMode** (boolean) - Optional - Whether to use dark mode ### Response #### Success Response - **{platform: "macos" or "other", material: "liquidGlass", "vibrancy" or "solid"}** - Platform and material settings ``` -------------------------------- ### Run all bots library tests Source: https://github.com/aicodeking/pandacode/blob/main/docs/bots.md Runs the full suite of bots library tests covering storage, memory, schedules, rules, pairing, the brief, channel parsers, signatures, and the HTTP parser. ```bash cargo test --lib bots:: ``` -------------------------------- ### Run smoke test for a specific provider (PANDACODE_SMOKE_PROVIDER) Source: https://github.com/aicodeking/pandacode/blob/main/docs/providers.md Runs the ignored live integration test for a provider, consuming provider usage. Set PANDACODE_SMOKE_PROVIDER to codex, claude, or kimi. The test creates a temporary Git repository, asks for one fixed token, resumes the conversation, and rejects all tool approval requests. ```sh PANDACODE_SMOKE_PROVIDER=codex cargo test smoke_provider_from_env -- --ignored --nocapture ``` -------------------------------- ### add_project Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Adds a project by path. ```APIDOC ## add_project ### Description Adds a project by path. ### Method IPC Command ### Endpoint add_project ### Parameters #### Arguments - **path** - Required - Project path ### Response #### Success Response - **Project** - The added project ``` -------------------------------- ### list_projects Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Lists all projects. ```APIDOC ## list_projects ### Description Lists all projects. ### Method IPC Command ### Endpoint list_projects ### Parameters #### Arguments None ### Response #### Success Response - **Project[]** - Array of projects ``` -------------------------------- ### Run ignored live services credential rejection tests Source: https://github.com/aicodeking/pandacode/blob/main/docs/bots.md Executes the ignored test that sends fake credentials to real Telegram, Slack, Discord, and Graph APIs to verify clear rejection messages. No account is required. ```bash cargo test --lib bots::tests::live_services_reject_fake_credentials_clearly -- --ignored --nocapture ``` -------------------------------- ### Tag and push release commit Source: https://github.com/aicodeking/pandacode/blob/main/docs/releasing.md Stages the release files, commits with a chore message, creates a tag, and pushes both main and the tag. The workflow refuses a tag that does not match the version in tauri.conf.json and a missing or empty releases/X.Y.Z.md. Never move a published tag; fix problems in a higher version. ```sh git add -A package.json package-lock.json src-tauri/tauri.conf.json src-tauri/Cargo.toml \ src-tauri/Cargo.lock website/src/data/release-dates.json "releases/$release_version.md" git commit -m "chore: release $release_version" git tag "v$release_version" git push origin main "v$release_version" ``` -------------------------------- ### create_board_task Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Creates a board task with project, provider, model, mode, title, and description. ```APIDOC ## create_board_task ### Description Creates a board task with project, provider, model, mode, title, and description. ### Method IPC Command ### Endpoint create_board_task ### Parameters #### Arguments - **projectId** - Required - Project identifier - **provider** - Required - Provider - **model** - Required - Model - **mode** - Required - Mode - **title** - Required - Task title - **description** - Required - Task description ### Response #### Success Response - **Session** - The created session ``` -------------------------------- ### list_files Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Lists files in a folder, up to 500 entries. ```APIDOC ## list_files ### Description Lists files in a folder, up to 500 entries. ### Method IPC Command ### Endpoint list_files ### Parameters #### Arguments - **projectId** - Required - Project identifier - **sessionId** - Optional - Session identifier - **path** - Optional - Folder path ### Response #### Success Response - **FileEntry[]** - Array of file entries (max 500) ``` -------------------------------- ### configure_session Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Configures a session with provider, model, and optional project. ```APIDOC ## configure_session ### Description Configures a session with provider, model, and optional project. ### Method IPC Command ### Endpoint configure_session ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **provider** - Required - Provider - **model** - Required - Model - **projectId** - Optional - Project identifier ### Response #### Success Response - **Session** - Updated session ``` -------------------------------- ### list_local_servers Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Lists local servers with port, process, and URL. ```APIDOC ## list_local_servers ### Description Lists local servers with port, process, and URL. ### Method IPC Command ### Endpoint list_local_servers ### Parameters #### Arguments None ### Response #### Success Response - **{port, process, url}[]** - Array of local server information ``` -------------------------------- ### get_task Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Retrieves the full task description for a session. ```APIDOC ## get_task ### Description Retrieves the full task description for a session. ### Method IPC Command ### Endpoint get_task ### Parameters #### Arguments - **sessionId** - Required - Session identifier ### Response #### Success Response - **Session** - Full task description ``` -------------------------------- ### Deploy to Cloudflare Worker Source: https://github.com/aicodeking/pandacode/blob/main/website/README.md Builds the site and deploys it as a static-assets-only Cloudflare Worker named `pandacode-site` serving `./dist` with `_headers` applied. Run from the `website/` directory. Login is required once unless CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID are set. ```sh ASTRO_TELEMETRY_DISABLED=1 npm run build npx wrangler login # once; or set CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID npx wrangler deploy ``` -------------------------------- ### create_session Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Creates a new session with project, provider, model, and mode. ```APIDOC ## create_session ### Description Creates a new session with project, provider, model, and mode. ### Method IPC Command ### Endpoint create_session ### Parameters #### Arguments - **projectId** - Required - Project identifier - **provider** - Required - Provider - **model** - Required - Model - **mode** - Required - Mode ### Response #### Success Response - **Session** - The created session ``` -------------------------------- ### list_slash_commands Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Lists slash commands for a session, optionally forcing a refresh. ```APIDOC ## list_slash_commands ### Description Lists slash commands for a session, optionally forcing a refresh. ### Method IPC Command ### Endpoint list_slash_commands ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **force** (boolean) - Optional - Force refresh ### Response #### Success Response - **{commands: SlashCommand[], warnings: string[]}** - Commands and warnings ``` -------------------------------- ### search_files Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Searches for files by project-relative filename matches, with configurable limit. ```APIDOC ## search_files ### Description Searches for files by project-relative filename matches, with configurable limit. ### Method IPC Command ### Endpoint search_files ### Parameters #### Arguments - **projectId** - Required - Project identifier - **sessionId** - Optional - Session identifier - **query** - Required - Search query - **limit** (number) - Optional - Maximum results (default 40, max 100) ### Response #### Success Response - **FileEntry[]** - Array of matching file entries ``` -------------------------------- ### browser_open Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Opens a browser with a URL and bounds. Restricted to the trusted main webview. ```APIDOC ## browser_open ### Description Opens a browser with a URL and bounds. Restricted to the trusted main webview. ### Method IPC Command ### Endpoint browser_open ### Parameters #### Arguments - **url** - Required - URL to open - **bounds** (object) - Required - Browser window bounds with x, y, width, height ### Response #### Success Response - **BrowserStatus** - Browser status ``` -------------------------------- ### create_worktree Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Creates a worktree for a session on a specified branch. ```APIDOC ## create_worktree ### Description Creates a worktree for a session on a specified branch. ### Method IPC Command ### Endpoint create_worktree ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **branch** - Required - Branch name ### Response #### Success Response - **Session** - Updated session ``` -------------------------------- ### architect_get Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Retrieves the team snapshot for a given session, or null if none exists. ```APIDOC ## architect_get ### Description Retrieves the team snapshot for a given session, or null if none exists. ### Method IPC Command ### Endpoint architect_get ### Parameters #### Arguments - **sessionId** - Required - Session identifier ### Response #### Success Response - **TeamSnapshot or null** - The team snapshot for the session, or null if not found ``` -------------------------------- ### get_metrics Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Retrieves metrics. ```APIDOC ## get_metrics ### Description Retrieves metrics. ### Method IPC Command ### Endpoint get_metrics ### Parameters #### Arguments None ### Response #### Success Response - **Metrics** - Metrics data ``` -------------------------------- ### Run Playwright tests Source: https://github.com/aicodeking/pandacode/blob/main/website/README.md Runs the Playwright test suite from the `website` directory with telemetry disabled. Tests cover Chrome and WebKit, desktop and mobile, reduced motion, and same-origin requests. Set PANDACODE_SITE_URL to test another server. Screenshots and traces go under `/private/tmp/pandacode-landing-checks`. ```sh cd website ASTRO_TELEMETRY_DISABLED=1 npx playwright test ``` -------------------------------- ### fork_session_at_message Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Creates a separate task with the saved conversation through a selected message, inclusive, for every harness. The fork retains source project, harness, model, effort, approval mode, and Codex preferences. ```APIDOC ## fork_session_at_message ### Description Creates a separate task with the saved conversation through the selected user or assistant message, inclusive, for every harness. The message must belong to the source task. Copying is atomic and can snapshot a running source without stopping it. ### Method invoke ### Endpoint fork_session_at_message ### Parameters #### Request Body - **sourceTaskId** (string) - Required - The ID of the source task. - **messageId** (string) - Required - The ID of the user or assistant message to fork through. ### Response #### Success Response - **taskId** (string) - The ID of the newly forked task. #### Response Example { "taskId": "forked-task-id" } ``` -------------------------------- ### list_providers Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Lists all providers. ```APIDOC ## list_providers ### Description Lists all providers. ### Method IPC Command ### Endpoint list_providers ### Parameters #### Arguments None ### Response #### Success Response - **Provider[]** - Array of providers ``` -------------------------------- ### respond_approval Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Responds to an approval request with approved or denied. ```APIDOC ## respond_approval ### Description Responds to an approval request with approved or denied. ### Method IPC Command ### Endpoint respond_approval ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **requestId** - Required - Request identifier - **approved** - Required - Approval decision ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### list_sessions Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Lists session metadata, up to a maximum of 500 sessions. ```APIDOC ## list_sessions ### Description Lists session metadata, up to a maximum of 500 sessions. ### Method IPC Command ### Endpoint list_sessions ### Parameters #### Arguments None ### Response #### Success Response - **Session[]** - Array of session metadata (maximum 500) ``` -------------------------------- ### list_provider_models Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Lists models for a provider, including identity, supported effort choices, and optional default effort/context window. ```APIDOC ## list_provider_models ### Description Lists models for a provider, including identity, supported effort choices, and optional default effort/context window. ### Method IPC Command ### Endpoint list_provider_models ### Parameters #### Arguments - **provider** - Required - Provider identifier ### Response #### Success Response - **ProviderModel[]** - Array of provider models ``` -------------------------------- ### git_stage Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Stages or unstages specified paths in a project. ```APIDOC ## git_stage ### Description Stages or unstages specified paths in a project. ### Method IPC Command ### Endpoint git_stage ### Parameters #### Arguments - **projectId** - Required - Project identifier - **sessionId** - Optional - Session identifier - **paths** (string[]) - Required - Paths to stage or unstage - **staged** (boolean) - Required - True to stage, false to unstage ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### browser_pick Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Enables or disables element picking in the browser. Restricted to the trusted main webview. ```APIDOC ## browser_pick ### Description Enables or disables element picking in the browser. Restricted to the trusted main webview. ### Method IPC Command ### Endpoint browser_pick ### Parameters #### Arguments - **enabled** - Required - Whether picking is enabled ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### write_terminal Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Writes data to a terminal. ```APIDOC ## write_terminal ### Description Writes data to a terminal. ### Method IPC Command ### Endpoint write_terminal ### Parameters #### Arguments - **terminalId** - Required - Terminal identifier - **data** - Required - Data to write ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### browser_bounds Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Sets browser bounds and visibility. Restricted to the trusted main webview. ```APIDOC ## browser_bounds ### Description Sets browser bounds and visibility. Restricted to the trusted main webview. ### Method IPC Command ### Endpoint browser_bounds ### Parameters #### Arguments - **bounds** (object) - Required - Browser window bounds with x, y, width, height - **visible** - Required - Visibility flag ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### fork_session_at_message Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Forks a session at a specific message, creating a new standalone task with inclusive saved history. ```APIDOC ## fork_session_at_message ### Description Forks a session at a specific message, creating a new standalone task with inclusive saved history. ### Method IPC Command ### Endpoint fork_session_at_message ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **messageId** (number) - Required - Message ID to fork at ### Response #### Success Response - **Session** - New standalone session ``` -------------------------------- ### resize_terminal Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Resizes a terminal to specified dimensions. ```APIDOC ## resize_terminal ### Description Resizes a terminal to specified dimensions. ### Method IPC Command ### Endpoint resize_terminal ### Parameters #### Arguments - **terminalId** - Required - Terminal identifier - **cols** - Required - Number of columns - **rows** - Required - Number of rows ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### update_task_details Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Updates the title and description of a task. ```APIDOC ## update_task_details ### Description Updates the title and description of a task. ### Method IPC Command ### Endpoint update_task_details ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **title** - Required - New title - **description** - Required - New description ### Response #### Success Response - **Session** - Updated session ``` -------------------------------- ### read_file Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Reads a file's content, up to 128 KiB. ```APIDOC ## read_file ### Description Reads a file's content, up to 128 KiB. ### Method IPC Command ### Endpoint read_file ### Parameters #### Arguments - **projectId** - Required - Project identifier - **sessionId** - Optional - Session identifier - **path** - Required - File path ### Response #### Success Response - **string** - File content (max 128 KiB) ``` -------------------------------- ### browser_action Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Performs a browser action: back, forward, reload, or stop. Restricted to the trusted main webview. ```APIDOC ## browser_action ### Description Performs a browser action: back, forward, reload, or stop. Restricted to the trusted main webview. ### Method IPC Command ### Endpoint browser_action ### Parameters #### Arguments - **action** ("back" or "forward" or "reload" or "stop") - Required - Action to perform ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### browser_capture Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Captures a browser screenshot. Restricted to the trusted main webview. ```APIDOC ## browser_capture ### Description Captures a browser screenshot. Restricted to the trusted main webview. ### Method IPC Command ### Endpoint browser_capture ### Parameters #### Arguments None ### Response #### Success Response - **BrowserScreenshot** - Screenshot data ``` -------------------------------- ### close_terminal Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Closes a terminal. ```APIDOC ## close_terminal ### Description Closes a terminal. ### Method IPC Command ### Endpoint close_terminal ### Parameters #### Arguments - **terminalId** - Required - Terminal identifier ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### git_diff Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Retrieves the git diff for a project, optionally for a specific session, path, or staged changes. ```APIDOC ## git_diff ### Description Retrieves the git diff for a project, optionally for a specific session, path, or staged changes. ### Method IPC Command ### Endpoint git_diff ### Parameters #### Arguments - **projectId** - Required - Project identifier - **sessionId** - Optional - Session identifier - **path** - Optional - File path - **staged** (boolean) - Optional - Whether to show staged changes ### Response #### Success Response - **string** - Diff output (max 256 KiB) ``` -------------------------------- ### remove_project Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Removes a project by ID. ```APIDOC ## remove_project ### Description Removes a project by ID. ### Method IPC Command ### Endpoint remove_project ### Parameters #### Arguments - **projectId** - Required - Project identifier ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### resolve_slash_command Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Resolves a slash command from text, returning the action, arguments, and attachment acceptance. ```APIDOC ## resolve_slash_command ### Description Resolves a slash command from text, returning the action, arguments, and attachment acceptance. ### Method IPC Command ### Endpoint resolve_slash_command ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **text** - Required - Input text ### Response #### Success Response - **{action: string or null, arguments: string, acceptsAttachments: boolean}** - Resolved command details ``` -------------------------------- ### set_task_stage Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Sets the stage of a task to pending, review, or completed. ```APIDOC ## set_task_stage ### Description Sets the stage of a task to pending, review, or completed. ### Method IPC Command ### Endpoint set_task_stage ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **stage** ("pending" or "review" or "completed") - Required - New stage ### Response #### Success Response - **Session** - Updated session ``` -------------------------------- ### send_message Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Sends a message in a session with optional image attachments, returning after the task is spawned. ```APIDOC ## send_message ### Description Sends a message in a session with optional image attachments, returning after the task is spawned. ### Method IPC Command ### Endpoint send_message ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **text** - Required - Message text - **imageIds** (string[]) - Optional - Image identifiers ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### get_messages Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Retrieves messages for a session, returning the latest 100 in chronological order with pagination support. ```APIDOC ## get_messages ### Description Retrieves messages for a session, returning the latest 100 in chronological order with pagination support. ### Method IPC Command ### Endpoint get_messages ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **beforeId** (number) - Optional - Message ID to fetch messages before ### Response #### Success Response - **{messages: Message[], hasOlder: boolean}** - Messages and whether older messages exist ``` -------------------------------- ### browser_close Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Closes the browser. Restricted to the trusted main webview. ```APIDOC ## browser_close ### Description Closes the browser. Restricted to the trusted main webview. ### Method IPC Command ### Endpoint browser_close ### Parameters #### Arguments None ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### git_status Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Retrieves the git status for a project, optionally for a specific session. ```APIDOC ## git_status ### Description Retrieves the git status for a project, optionally for a specific session. ### Method IPC Command ### Endpoint git_status ### Parameters #### Arguments - **projectId** - Required - Project identifier - **sessionId** - Optional - Session identifier ### Response #### Success Response - **GitStatus** - Git status information ``` -------------------------------- ### set_reasoning_effort Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Sets the reasoning effort for a session. ```APIDOC ## set_reasoning_effort ### Description Sets the reasoning effort for a session. ### Method IPC Command ### Endpoint set_reasoning_effort ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **reasoningEffort** (string or null) - Required - Reasoning effort level or null ### Response #### Success Response - **Session** - Updated session ``` -------------------------------- ### get_message_content Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Retrieves the complete saved user or assistant text for a specific message. ```APIDOC ## get_message_content ### Description Retrieves the complete saved user or assistant text for a specific message. ### Method IPC Command ### Endpoint get_message_content ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **messageId** (number) - Required - Message identifier ### Response #### Success Response - **string** - Complete saved user/assistant text ``` -------------------------------- ### stop_session Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Stops a session. ```APIDOC ## stop_session ### Description Stops a session. ### Method IPC Command ### Endpoint stop_session ### Parameters #### Arguments - **sessionId** - Required - Session identifier ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### architect_control Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Controls the architect with pause, resume, or stop actions. ```APIDOC ## architect_control ### Description Controls the architect with pause, resume, or stop actions. ### Method IPC Command ### Endpoint architect_control ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **action** ("pause", "resume", or "stop") - Required - Control action ### Response #### Success Response - **TeamSnapshot** - The updated team snapshot ``` -------------------------------- ### get_message_content Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Reads the complete saved text of one user message or assistant response on demand for copying, without display truncation. Validates message ownership and rejects internal coordination prompts. ```APIDOC ## get_message_content ### Description Reads the complete saved text of one user message or assistant response on demand for copying, without the history page's display truncation. It validates that the message belongs to the selected task and rejects internal coordination prompts. ### Method invoke ### Endpoint get_message_content ### Parameters #### Request Body - **taskId** (string) - Required - The ID of the task containing the message. - **messageId** (string) - Required - The ID of the message to read. ### Response #### Success Response - **content** (string) - The complete saved text of the message. #### Response Example { "content": "Full message text" } ``` -------------------------------- ### git_commit Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Commits staged changes with a commit message. ```APIDOC ## git_commit ### Description Commits staged changes with a commit message. ### Method IPC Command ### Endpoint git_commit ### Parameters #### Arguments - **projectId** - Required - Project identifier - **sessionId** - Optional - Session identifier - **message** - Required - Commit message ### Response #### Success Response - **string** - Commit result ``` -------------------------------- ### update_session Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Updates session metadata such as title, archived status, model, or mode. ```APIDOC ## update_session ### Description Updates session metadata such as title, archived status, model, or mode. ### Method IPC Command ### Endpoint update_session ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **title** - Optional - New title - **archived** - Optional - Archived status - **model** - Optional - New model - **mode** - Optional - New mode ### Response #### Success Response - **void** - No return value ``` -------------------------------- ### architect_worker_messages Source: https://github.com/aicodeking/pandacode/blob/main/docs/ipc.md Retrieves parent-scoped worker history for a specific worker in a session. ```APIDOC ## architect_worker_messages ### Description Retrieves parent-scoped worker history for a specific worker in a session. ### Method IPC Command ### Endpoint architect_worker_messages ### Parameters #### Arguments - **sessionId** - Required - Session identifier - **workerId** - Required - Worker identifier - **beforeId** - Optional - Message ID to fetch messages before ### Response #### Success Response - **MessagePage** - Page of worker messages ```