Developing Tarsk
This guide covers running the Tarsk monorepo locally. End users should use Installation instead.
Prerequisites
Section titled “Prerequisites”- Bun (pinned in the repo)
- git on your PATH
Clone and Install
Section titled “Clone and Install”git clone https://github.com/damiant/tarsk.gitcd tarskbun installDevelopment Modes
Section titled “Development Modes”| Command | What it does |
|---|---|
bun run dev:web | CLI server + app Vite dev with hot reload (recommended) |
cd cli && bun run dev | Sync models, build app, start Electrobun desktop dev |
cd cli && bun run dev:web | Debug API on port 462 + app Vite on 8100 |
bun run dev:app | Frontend only (port 8100; API calls go to 462) |
bun run dev:docs | Documentation site (Astro) |
bun run dev:cli | CLI server with built assets |
When the app runs on Vite port 8100, API requests proxy to the debug server on 462.
bun run buildBuild order: shared → app → cli → postbuild (copies app/dist into the CLI public assets).
For npm publish without Electrobun native targets:
bun run build:npmQuality Checks
Section titled “Quality Checks”bun run check:allRuns lint, build, tests, and Vite Plus checks. bun run check:all now performs the signed desktop build path; use bun run check:all:unsigned when you need the full pipeline without codesigning or notarization, and bun run check:all:quiet for a one-line pass/fail summary.
Repository Layout
Section titled “Repository Layout”| Directory | Purpose |
|---|---|
app/ | React frontend (Vite Plus) |
cli/ | Bun/Hono server, agent orchestration, Electrobun desktop shell |
shared/ | @tarsk/shared types, constants, utilities |
docs/ | This documentation site (Astro + Starlight) |
website/ | Marketing site |
mobile/ | Capacitor iOS/Android wrapper |
extensions/vscode/ | VS Code extension |
ai-data/ | Provider and model catalog data |
specs/ | Product specifications |
Sync Model Data
Section titled “Sync Model Data”bun run sync-modelsRefreshes the model catalog in ai-data/. Full sync needs ARTIFICIAL_ANALYSIS_TOKEN.
VS Code Extension Development
Section titled “VS Code Extension Development”cd extensions/vscodebun installbun run compileIn VS Code/Cursor, select Run Tarsk VS Code Extension and press F5.
Related
Section titled “Related”- AGENTS.md — contributor rules for agents
- cli/README.md — published CLI reference