pixie

agent
Security Audit
Pass
Health Pass
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 11 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

A native desktop workspace for pluggable AI agents — a general-purpose agent that handles programming, office documents, data analysis, news, writing, and more. Run autonomous agents against any folder, swap engines per session, and watch them work in real time. Built with Tauri v2, React, TypeScript, and Rust.

README.md

Pixie

English | 简体中文 | 日本語

A native desktop workspace for pluggable AI agents — a general-purpose agent that handles programming, office documents, data analysis, news, writing, and more. Run autonomous agents against any folder, swap engines per session, and watch them work in real time. Built-in knowledge base auto-summarizes conversations into searchable, linkable notes. Built with Tauri v2, React, TypeScript, and Rust.

License: MIT
Tauri
Agents
Platforms

Pixie

Pixie is a thin, fast desktop shell for agent CLIs you already have installed. It does not ship its own model or API client — it spawns an external agent process, streams its JSON output, and renders it as a polished native app.

Each conversation binds to an engine (today: Claude Code, Cursor Agent, or CodeBuddy). You can mix engines across workspaces and sessions: one chat on Claude, another on Cursor, both running in parallel.

Use Pixie for programming, office documents, data analysis, news, writing — wherever a headless agent CLI can act on files and tools in a folder you choose.


Highlights

  • Pluggable engines — Pick an engine per session. Claude Code and Cursor Agent are supported today; the backend is built to add more.
  • Multi-workspace agents — Add any number of folders as workspaces. Each becomes the agent's working directory, and many sessions can stream in parallel.
  • Live agent activity — Streaming markdown with syntax highlighting, real-time tool-call cards, extended-thinking text (engine-dependent), and token / cost / duration readouts.
  • Conversation continuity — Follow-up messages resume the same CLI session so context carries across turns.
  • Per-engine model config — Override API keys, models, and env vars separately for each engine in Settings.
  • Scheduled tasks — Run prompts on a schedule (daily, weekdays, or every N minutes / hours) headlessly against a workspace. Results appear in the sidebar with desktop notifications.
  • Workspace panel — A resizable side panel with Files, Preview, Git, Browser, and a real Terminal (PTY-backed). Useful when you need deeper file and version control access.
  • Knowledge base — Conversations are summarized to Obsidian-compatible markdown notes with YAML frontmatter. A built-in BM25 search engine (with CJK tokenization via jieba) indexes the vault for fast retrieval. KB context is injected into agent messages so agents can leverage past conversations. Related notes are linked via [[wiki-links]] for discoverability.
  • Skills & plugin marketplace — Discover skills on disk, insert /skill invocations from the composer, and browse or install plugins from marketplaces. Pixie follows the Claude agent standard for skills and plugins (.claude/skills, .claude-plugin/, etc.) — a de-facto convention shared by Claude Code, Cursor Agent, and other compatible engines.
  • System-tray resident — Closing the window hides to the tray so scheduled tasks keep firing.
  • Dark & light themes, system prompt, keyboard shortcuts.
  • 🌐 Multilingual — Supports English, Simplified Chinese, and Japanese.

Supported engines

Engine CLI Notes
Claude Code claude Reference implementation; skills, plugins, MCP
Cursor Agent cursor-agent / agent Multi-model loops; supports the same skills & plugin ecosystem
CodeBuddy cbc Tencent AI coding agent; supports skills & plugins standard

Both engines speak the same skills / marketplace conventions (Claude-format SKILL.md, plugin marketplaces, /skill-name invocations). Pixie surfaces them engine-agnostically in the UI.

Install at least one engine and authenticate it before using Pixie. See Prerequisites.


Prerequisites

Pixie searches PATH plus common locations (/usr/local/bin, Homebrew, ~/.local/bin, nvm, ~/.cursor/bin) for engine binaries. It sources your interactive login shell so env vars (ANTHROPIC_*, CURSOR_*, etc.) are picked up even when launched from a .app bundle.

Installation

git clone https://github.com/white1or1black/pixie.git
cd pixie

pnpm install      # frontend dependencies

Running

pnpm tauri dev   # development mode with hot reload

To produce a distributable bundle:

pnpm tauri build                       # all bundle formats for your OS
pnpm tauri build --debug --bundles app # a quick debug .app / executable

Note — Engines run in headless mode with permission prompts skipped so agents can act autonomously within the selected workspace. Only point Pixie at folders you trust the agent to read and modify. See Security & data.


Usage

  1. Add a workspace — Sidebar → workspace switcher → Add workspace, then pick a folder. This is the agent's working directory (project, notes, ops scripts, anything on disk).
  2. Choose an engine — Use the Engine dropdown in the sidebar (default for new sessions) or rely on each conversation's bound engine.
  3. Start an agent — Type a message and press Enter. The first message starts a new session; later messages resume it.
  4. Watch it work — Tool calls, results, thinking text, and usage update live beneath the reply.
  5. Open the workspace panel — Toggle the panel in the header for files, diffs, terminal, and previews when you need them.
  6. Skills & plugins — Click ✨ in the composer to pick a /skill invocation, or open Skills in the sidebar to manage plugin marketplaces. Works with any engine that follows the Claude agent skills standard (Claude Code, Cursor, etc.).
  7. Automate — Scheduled Tasks runs prompts on a timer. Completed runs appear in the sidebar and notify you.
  8. Change language — Open Settings and select your preferred language (English, 简体中文, or 日本語).

Keyboard shortcuts

Action Shortcut
New chat Ctrl/Cmd + N
Toggle sidebar Ctrl/Cmd + B
Toggle settings Ctrl/Cmd + ,
Search knowledge base Ctrl/Cmd + K
Send message Enter
New line Shift + Enter
Stop generation Esc

Knowledge Base

Pixie includes a local-first knowledge base that turns your conversation history into a searchable vault of notes. It's designed to work with (but does not require) Obsidian.

How it works

  1. Summarize — After a conversation, click "Summarize" to write it as a markdown note to <vault>/Pixie/<slug>-<convId>.md. The note includes YAML frontmatter (title, conversation_id, workspace, engine, tags, created) and the full transcript.
  2. Index — A Rust-based inverted-index search engine scans all *.md files in the vault's Pixie/ directory. It builds a BM25 scoring index with CJK tokenization (jieba-rs) for Chinese, Japanese, and Korean text.
  3. Search — Press Ctrl/Cmd + K to open the search palette. Type a query (minimum 2 characters) and get debounced BM25-ranked results with snippets, tags, and dates. Press Enter to open a note in Obsidian, or copy content inline.
  4. Inject — Toggle the knowledge base (database cylinder icon in the input bar) to inject relevant snippets from search results into agent messages as context. This lets agents reference past work without re-explaining.
  5. Related links — When a new note is written, the summarizer searches for related notes via BM25 and appends [[wiki-link]] references at the bottom, creating a navigable knowledge graph.

Setup

  • Configure vault path — Open Settings (Ctrl/Cmd + ,) and set your Obsidian vault path (default: ~/Documents/Obsidian).
  • Backfill existing conversations — Use the "Backfill" button in Settings to summarize all past conversations into notes.
  • Obsidian integration is optional — The KB works entirely within Pixie. Obsidian is only needed for external viewing/editing.

Keyboard shortcut

Action Shortcut
Search knowledge base Ctrl/Cmd + K

Architecture

Pixie is a Tauri v2 app: a Rust backend that owns process and PTY lifecycle, plus a React frontend over the IPC bridge.

┌───────────────────────────────────────────────────────┐
│  Frontend  ·  React + TypeScript + Tailwind CSS        │
│                                                        │
│  hooks (useChat / useScheduledTasks)                   │
│      │  invoke()  ────────►  Tauri commands            │
│      │  listen()  ◄────────  Tauri events (streaming)  │
└──────────────────────────┬────────────────────────────┘
                           │  Tauri IPC bridge
┌──────────────────────────┴────────────────────────────┐
│  Backend  ·  Rust (tokio)                              │
│                                                        │
│  Chat         send_message(engine) / stop_generation   │
│  Engines      check_engines_available / model config   │
│  Workspaces   select / set_active / list_directory     │
│  KB           search_kb / index_kb / summarize / …     │
│  Git / Files / Terminal / Skills / Plugins / Schedules │
│                                                        │
│  Events: agent-response · agent-tool · agent-done · …    │
└──────────────────────────┬────────────────────────────┘
                           │  tokio::process (one child per conversation)
┌──────────────────────────┴────────────────────────────┐
│  engine/  ·  pluggable agent backends                  │
│    claude.rs   Claude Code  (--print stream-json)      │
│    cursor.rs   Cursor Agent (--print stream-json)      │
│    mod.rs      NormalizedEvent · spawn · parse_line    │
└───────────────────────────────────────────────────────┘

How a message flows:

  • The frontend calls invoke("send_message", { engine, conversationId, … }). The backend picks the engine, spawns one process per conversation, and returns immediately.
  • Each NDJSON line is parsed into a normalized event (text delta, tool start/result, usage, done). The backend emits unified agent-* Tauri events.
  • useChat routes updates by conversation_id so parallel sessions stay independent.
  • stop_generation kills the child by PID without blocking the stream reader.

Where state lives: conversations (including per-session engine), workspaces, theme, and per-engine model config live in localStorage. Scheduled tasks and run history are persisted under the OS app-data directory. Session history is owned by each engine's CLI (--session-id / --resume for Claude; Cursor session ids tracked by Pixie).

Adding a new engine

  1. Add the engine id to ENGINE_IDS in src-tauri/src/engine/mod.rs and AGENT_ENGINES in src/types.ts.
  2. Implement engine/<name>.rs: check_available, spawn_single, spawn_continue, parse_line.
  3. Wire dispatch in engine/mod.rs.
  4. Add model-config fields in ENGINE_MODEL_FIELDS if the engine needs env overrides.

Project structure

pixie/
├── src/                         # Frontend (React + TypeScript)
│   ├── components/              # ChatView, Sidebar, Settings, RightPanel, …
│   ├── hooks/                   # useChat, useScheduledTasks
│   ├── i18n/                    # Multilingual support
│   │   ├── index.ts
│   │   └── locales/
│   │       ├── en.json
│   │       ├── zh.json
│   │       └── ja.json
│   ├── App.tsx
│   └── types.ts                 # EngineModelConfigs, AgentEngineId, …
├── src-tauri/
│   ├── src/
│   │   ├── engine/              # Pluggable agent backends
│   │   │   ├── mod.rs           # NormalizedEvent, AgentProcess, dispatch
│   │   │   ├── claude.rs
│   │   │   ├── cursor.rs
│   │   │   ├── codebuddy.rs
│   │   │   ├── persistent.rs    # Long-lived session management
│   │   │   └── shared.rs        # Shell env, binary discovery
│   │   ├── search/              # Knowledge base search engine
│   │   │   ├── mod.rs           # Index lifecycle, Tauri commands
│   │   │   ├── bm25.rs          # BM25 scoring + jieba-rs CJK tokenizer
│   │   │   ├── index.rs         # Inverted-index search engine
│   │   │   └── parser.rs        # Obsidian YAML frontmatter parser
│   │   ├── summarizer.rs        # Conversation → KB note writer
│   │   ├── lib.rs               # Tauri commands, scheduler, tray
│   │   └── pty.rs
│   └── tauri.conf.json
├── package.json
└── vite.config.ts

Development

pnpm dev                  # Vite dev server only (no Tauri shell)
pnpm tauri dev            # Full app with hot reload

pnpm lint                 # ESLint

cd src-tauri
cargo check               # Type-check Rust
cargo clippy              # Lint Rust
cargo test                # Unit tests

Key technologies

Layer Technology
Desktop framework Tauri v2
Frontend React 19, TypeScript
Styling Tailwind CSS 4
Build tool Vite
Backend Rust, tokio
i18n i18next, react-i18next
Markdown react-markdown + remark-gfm
Terminal xterm.js + portable-pty
Scheduling chrono
CJK search jieba-rs (Chinese word segmentation)
BM25 search custom inverted-index engine

Configuration

Open Settings (Ctrl/Cmd + ,):

  • Agent engines — availability, version, and binary path for each engine.
  • Default engine — used when creating new sessions.
  • Model configuration — per-engine env overrides (collapsed by default). Claude: ANTHROPIC_*, CLAUDE_CODE_*. Cursor: CURSOR_API_KEY, CURSOR_MODEL. CodeBuddy: CODEBUDDY_*.
  • Knowledge base — Obsidian vault path, backfill existing conversations, and index rebuild.
  • System prompt — optional prompt for agent sessions.
  • Theme — dark or light.
  • Language — English, 简体中文, or 日本語.

Security & data

  • Engines run headless with auto-approved tool execution within the active workspace. Only add workspaces you trust the agent to operate on.
  • Claude's AskUserQuestion tool is disabled in streaming mode (no channel to answer it); the model is steered to ask in plain prose instead.
  • Chat content, workspaces, and settings stay local. Scheduled tasks and run history live in the app-data directory. Nothing is sent anywhere except through the agent CLI you configure.

Troubleshooting

No engine available — Install at least one CLI (claude, cursor-agent, or cbc). Check Settings → Refresh. Verify with claude --version, cursor-agent --version, or cbc --version.

Env vars not picked up — Pixie sources your login shell ($SHELL -i -l -c env). Restart the app after editing .zprofile / .zshrc.

Wrong engine on a session — Each conversation keeps its bound engine. Start a new session or pick a different default engine for new chats.

Build errors — rustup update, cd src-tauri && cargo clean, rm -rf node_modules && pnpm install.

Scheduled task didn't fire — Pixie must be running (tray is fine). Overdue tasks more than 5 minutes are skipped to avoid catch-up bursts. Use Run now to test.

Knowledge base search returns no results — Ensure the vault path in Settings points to a valid directory containing .md files under a Pixie/ subfolder. Use "Rebuild Index" in Settings if the index is stale. Minimum query length is 2 characters.

KB notes not appearing — Summarize a conversation first. Notes are written to <vault>/Pixie/. If you moved or renamed the vault, update the path in Settings and rebuild the index.


Contributing

Contributions are welcome — especially new engines and general-agent UX improvements:

  1. Fork the repo and create a feature branch.
  2. Rust: cargo fmt / cargo clippy. Frontend: pnpm lint.
  3. Keep Tauri commands typed end-to-end (Rust ↔ src/types.ts).
  4. Open a pull request describing the change.

Adding translations

To contribute translations:

  1. Edit src/i18n/locales/en.json, src/i18n/locales/zh.json, or src/i18n/locales/ja.json.
  2. Follow the existing JSON structure.
  3. Open a pull request.

For more details, see i18n documentation.

License

Released under the MIT License.

Reviews (0)

No results found