Skip to content
プロジェクト

概要

Your personal AI agent

AI・機械学習

この数値の測り方

できること

  • Code Knowledge Base (CKB). The agent indexes your repository into a chaptered knowledge base, verifies it against the source, and keeps it in sync as the project evolves.
  • Cross-session experience ledger. Corrections, constraints, and preferences you express during work become evidence-backed entries in a local SQLite ledger. Later turns recall the relevant ones by full-text relevance plus tool and path context, and superseded entries are retired automatically. Capture and recall run on rules, not extra model calls.
  • Snapshot & rollback. Every write is snapshotted before it happens; diffs are tracked per file, and you can roll back a single file or an entire change set — with an undo for the rollback itself.
  • Permission & audit system. Three permission modes (manual, auto, read-only), rule sets with tool:pattern matching, a path whitelist, fail-closed checks, and a tamper-evident audit log (chained checksums) for every sensitive operation.

計測したスター増加

24時間
0
7日間
0
15日間
+1
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

PEBBLE-AGENT

English  |  简体中文

A light, extensible desktop AI agent with tools, skills, MCP servers, a self-maintained code knowledge base, and cross-session memory.

Latest Release Downloads checks License: AGPL-3.0 Python 3.11+ Vue 3 Tauri 2 Platform: Windows | macOS (Web)

Download Windows Installer (Bundled Backend, Ready to Run)  ·  Getting Started  ·  macOS Web UI

Platform support:

  • Windows 10/11 (64-bit): Fully supported for both the Tauri 2 desktop app (recommended via Releases) and Web UI source mode.
  • macOS: Verified and running cleanly in Web UI mode (start_backend.sh + Vite frontend). Desktop shell bundling is currently Windows-only because sidecar management relies on Win32 APIs.
  • Linux: Uses the same Python + Node Web UI workflow (untested).

Changelog

Current Version: v1.4.8 — View full release notes in CHANGELOG.md.

v1.4.8 fixes MCP session persistence visibility on restart (cli/src/mcp.rs) by resolving Pebble's active project via project.list whenever pebble_run_task omits cwd (instead of inheriting the MCP host's binary directory), so conversations initiated from external agents stay visible in the desktop sidebar after restart—and updates the Windows NSIS installer/uninstaller hooks (hooks.nsh) to stop running pebble.exe MCP processes cleanly before overwriting files during upgrades.

Previous release summary (v1.4.7)

v1.4.7 makes MCP single-session continuity the default (cli/src/mcp.rs, cli/src/ops.rs): pebble_run_task automatically remembers and resumes the active Pebble session across turns when external agents omit session_id (falling back to creating a new one if deleted or busy), and exposes a new_session: true parameter only when an isolated fresh conversation is genuinely needed or explicitly requested—while keeping CLI pebble run invocations isolated per run unless -s/--session is passed. Also fixes CI ruff linting and adds automatic pebble.exe builds on fresh checkouts in tests/test_cli_e2e.py.


Features

  • Code Knowledge Base (CKB). The agent indexes your repository into a chaptered knowledge base, verifies it against the source, and keeps it in sync as the project evolves.
  • External agent orchestration (CLI & MCP Server). Ships with a lightweight standalone pebble.exe (~517 KB) so other AI clients (Claude Desktop, Claude Code, DSH, Codex, Antigravity, etc.), scripts, and automation workflows can delegate tasks to Pebble Agent. Supports both a console CLI (pebble run --cwd ... --permission-mode read-only|auto --json|--stream-json, daemon, sessions, path-install) and a standard MCP stdio server (pebble mcp) exposing 7 self-describing tools (pebble_run_task, pebble_status, pebble_list_agents, pebble_list_models, pebble_list_sessions, pebble_get_session, pebble_interrupt_session) — automatically attaching to an open Pebble desktop window for live UI visibility and built-in browser access, or spawning the backend headlessly when the app is closed.
  • Cross-session experience ledger. Corrections, constraints, and preferences you express during work become evidence-backed entries in a local SQLite ledger. Later turns recall the relevant ones by full-text relevance plus tool and path context, and superseded entries are retired automatically. Capture and recall run on rules, not extra model calls.
  • Snapshot & rollback. Every write is snapshotted before it happens; diffs are tracked per file, and you can roll back a single file or an entire change set — with an undo for the rollback itself.
  • Permission & audit system. Three permission modes (manual, auto, read-only), rule sets with tool:pattern matching, a path whitelist, fail-closed checks, and a tamper-evident audit log (chained checksums) for every sensitive operation.
  • Skills and MCP servers. Two bundled skills (ckb and frontend-design) load on demand; MCP servers over stdio, SSE, HTTP, or WebSocket are installed with sha256 verification and approved per project. Both are extensible from the installed app with no source build required, and you do not have to touch a file yourself: ask the agent to add a skill or an MCP server and it writes the SKILL.md under ~/.pebble/skills/<name>/ or the mcpServers entry in ~/.pebble/.mcp.json for you. A user skill with the same name overrides the bundled one, and a new MCP entry waits in the MCP panel until you approve it before anything is launched.
  • Real-time cost tracking. Per-model pricing with peak/off-peak tiers (including Chinese statutory holidays) and cache-hit accounting, updated live per conversation.
  • HTML preview with feedback bridge. Generated HTML pages render in a sandboxed preview; click any element to leave a comment, and the agent iterates on the page from your annotations.
  • Streaming agent chat with full execution visibility. Reasoning, tool calls, file changes, and results unfold as a step-by-step timeline instead of a black box.
  • Full UI theming. Pick any color and the whole palette adapts instantly across the entire interface.
  • Desktop-grade shell. A frameless Tauri 2 window, a WebSocket JSON-RPC 2.0 protocol, and a self-contained Python backend shipped as a sidecar.

Screenshots

PebbleAgent desktop interface

PebbleAgent desktop interface, conversation view

PebbleAgent desktop interface, current release

PebbleAgent desktop interface, current release

Architecture

flowchart LR
    UI["Vue 3 + Pinia<br/>(Tauri 2 webview)"] -->|"WebSocket · JSON-RPC 2.0"| GW["Python Gateway"]
    GW --> AG["Agent Core"]
    AG --> TL["Tool System"]
    AG --> MCP["MCP Servers"]
    AG --> LLM["LLM Providers"]
    GW --> DB[("SQLite")]

Getting Started

Option 1: Windows Desktop Installer (Recommended)

The fastest way to use PebbleAgent on Windows — no Python, Node.js, or Rust required, as the Python backend is bundled directly inside the installer:

  1. Download the latest Windows installer (.exe) from Releases.
  2. Run the installer (if Windows SmartScreen prompts for an unsigned build, click More info → Run anyway) and launch PebbleAgent.
  3. Open Settings in the app to configure your LLM provider & API key (or edit llm_providers.json in %USERPROFILE%\.pebble\), choose a workspace folder, and start chatting.

(Note: Node.js is only needed later if you install npx-based MCP servers.)


Option 2: Run Web UI from Source (Windows & macOS)

Prerequisites

  • Python 3.11+
  • Node.js 18+ (for the Vue frontend and optional npx-based MCP servers)

1. Clone & Install Dependencies

git clone https://github.com/5235aa-web/pebbleagent.git
cd pebbleagent

pip install -r requirements.txt

cd frontend
npm install
cd ..

requirements.txt includes everything needed to start the backend and chat. Optional extras (pypdf for PDF attachments, psutil for CPU/memory telemetry, and playwright for optional browser automation) can be installed with:

pip install -r requirements-optional.txt

2. Launch Backend + Web UI

On Windows (one-click script):

start_gui.bat

This starts the Python backend (ws://127.0.0.1:19876) and the Vite dev server (http://localhost:5180).

On macOS (verified Web UI workflow — two terminals):

Terminal 1 (Python backend):

chmod +x start_backend.sh
./start_backend.sh

Terminal 2 (Vite Web UI):

cd frontend
npm run dev

Open http://localhost:5180 in your browser. The dev server injects the gateway token automatically, so no extra configuration is needed. On macOS, powershell is omitted and execute_code (language="bash") handles shell execution.


Option 3: Desktop Development & Installer Build (Windows Only)

For developers: run Tauri in dev mode or build the Windows NSIS installer from source

Requires the Rust toolchain. Sidecar management in frontend/src-tauri/src/lib.rs uses Win32 APIs, so the desktop shell builds on Windows only.

To launch the Tauri shell in development mode, start the Python backend first (start_backend.bat) and then run:

cd frontend
npx tauri dev

To package a standalone Windows installer:

  1. Bundle the Python backend with PyInstaller:
pyinstaller pebble-backend.spec
  1. Copy the binary next to the Tauri shell with the Windows target triple:
copy dist\pebble-backend.exe frontend\src-tauri\binaries\pebble-backend-x86_64-pc-windows-msvc.exe
  1. Build the Tauri bundle:
cd frontend
npx tauri build

Configuration

All runtime data lives in ~/.pebble/ (%USERPROFILE%\.pebble\ on Windows; override with the PEBBLE_HOME environment variable).

  • LLM providers — providers, API keys, models, and reasoning effort are configured in llm_providers.json or from the in-app settings.
  • Skills — bundled skills ship inside the app. Ask the agent to add one and it writes ~/.pebble/skills/<name>/SKILL.md; a user skill with the same name overrides the bundled copy.
  • MCP servers — the MCP panel installs and manages servers; tokens and executable paths are stored in ~/.pebble/.mcp.json. Ask the agent to add a server and it writes the entry, which then appears in the panel and waits for your approval before it is launched.
  • Permissions — modes and tool:pattern rules live in permission_rules.json; the path whitelist in path_whitelist.json.
  • Pricing — the per-model price table (with peak/off-peak tiers) is in model_pricing.json; holiday data in cn_holidays.json.

Project Structure

gateway/          Python WebSocket gateway (JSON-RPC, sessions, permissions)
agent_core/       Agent core (chat service, built-in tools, orchestration, experience ledger, snapshots)
skills/           Bundled skills (ckb, frontend-design)
knowledgesource/  Code knowledge base (chaptered)
frontend/         Orbit frontend (Vue 3) + Tauri 2 desktop shell
tests/            Standalone verification tests (python tests/run_all.py)

Tests

Standalone verification tests live in tests/ and need no framework — each file runs on its own and exits non-zero on failure:

python tests/run_all.py    # Python tests (tool policy, compaction, billing, ...)
node tests/run_all.mjs     # JS tests (fold algorithm, WS recovery, UI formulas, ...)

Three billing/holiday regression scripts (peb_check_*.py) sit at the repo root and follow the same exit-code convention. All of the above, plus a full compileall syntax check and a vue-tsc type check, run in CI on every push (.github/workflows/checks.yml).

License

Licensed under the GNU Affero General Public License v3.0.

関連プロジェクトを探す

読み込み中…