Jeeves

mcp
Guvenlik Denetimi
Uyari
Health Gecti
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 112 GitHub stars
Code Uyari
  • network request — Outbound network request in compose.yaml
  • network request — Outbound network request in control-plane/src/proxy.ts
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Joy — a local-first personal assistant. Rust core (loop / memory / tools / graph / evals), TypeScript gateways + dashboard, Python thin SDK.

README.md

English | 简体中文

Jeeves — a local agent whose memory you can open

CI
License: MIT
Stars
Release

A personal assistant that runs entirely on your own machine — with a memory you can actually inspect.
The focus is planning, executing, recovering, verifying and delivering complex personal tasks; everyday conversation is supporting interaction.
Rust owns the agent loop, memory and 33 tools; TypeScript carries the shared clients, chat gateways and isolated browser adapter. Conversations, state.db and API keys never leave your laptop. The dashboard speaks both English and Chinese — switch it from the sidebar.

Most agents keep memory in a black box. Jeeves writes one append-only ledger row per turn. Open any row and you see that turn's full entry stream: the retrieval decision, which tools ran, which model answered, and what it cost. The memory library links back to source turns via ledger:… chips, and the FTS5 index can be rebuilt from the ledger. Nothing is hidden, nothing is silently lost.

Jeeves Web workbench

New here? Install the Mac app or run docker compose up -d, then follow the getting started guide: a three-step wizard connects a model, sets permissions and introduces you to Jeeves in about three minutes.

The Mac app is a thin shell around the Runtime's own front end: run just desktop-install, build the Rust CLI, then just desktop-dev (it starts joy dashboard; JOY_RUNTIME_URL attaches to a running Runtime instead); just desktop-build bundles the Runtime into a Mac app. Browser, phone (PWA) and desktop are the same front end (joy-ts/packages/dashboard). The rounded green Jeeves mark is shared by the app, Web favicon/install icons and interface; just desktop-icons regenerates platform icon assets from its SVG source. The composer supports server-enforced read-only, standard (confirm effects once) and full-access session modes; full access requires confirmation and preserves capability/sandbox limits. just desktop-check and just smoke-desktop validate the desktop foundation. See the architecture and implementation specification for current status.

The Web workbench now matches the desktop while preserving attachments, conversation branches, tasks, memory ledgers, skills, MCP, schedules and remote sign-in. Build with just dashboard-build, then start or restart joy dashboard; just smoke-web checks authentication, configuration and session permissions with a local model fixture. Narrow screens use drawer navigation and full-screen preferences, with shared bilingual controls. The composer’s plus button adds local files or images directly; the adjacent workspace button is the only project-folder entry and saves to the current conversation. These controls preserve the message draft. If the backend is older, the permission menu explains how to restart it and offers a retry.

The Mac composer’s + button shares its component with Web and directly adds local files or images (20MB each). The adjacent workspace button selects the project folder using the system picker. Attachments can be removed before sending; images use the existing vision contract, while documents are passed as readable file paths. Image requests require a vision-enabled model. just desktop-build regenerates the application bundle.

Web and Mac now open one persistent main conversation. Explicit work becomes independent tasks in the shared Task progress panel. New tasks automatically receive <JOY_HOME>/workspaces/YYYY-MM-DD-title-id folders; choose an existing project only when needed. A task card's follow-up retains its files and context. Task effects inherit the main conversation's current permission policy; results without objective checks await acceptance. just smoke-interaction checks the flow with a local fixture. CLI/gateway conversations retain their existing APIs. Reopening the task panel recovers still-live approvals from the Runtime; requests already answered, expired or revoked disappear without being recreated.

Run it in two minutes

Prebuilt binary — no Rust toolchain needed (pick the right asset for your platform from Releases):

curl -fL -o joy.tar.gz https://github.com/ChrisVip001/Jeeves/releases/download/v0.17.0/joy-v0.17.0-aarch64-apple-darwin.tar.gz
tar -xzf joy.tar.gz && chmod +x joy
DEEPSEEK_API_KEY=… ./joy dashboard        # -> http://localhost:7777

Assets: aarch64-apple-darwin · x86_64-apple-darwin · x86_64-unknown-linux-gnu · aarch64-unknown-linux-gnu.
No API key? Ollama works fully offline (JOY_PROVIDER=ollama). Twelve providers are pre-adapted, and /model add adds one without a restart.

Docker (one command; the dashboard walks you through the model, permissions and chat connections, nothing else to configure):

JOY_OPS_TOKEN=$(openssl rand -hex 24) docker compose up -d   # -> http://<host>:7777

From source:

cd joy-rs && cargo build
JOY_PROVIDER=deepseek DEEPSEEK_API_KEY=… ./target/debug/joy            # terminal REPL
JOY_PROVIDER=deepseek DEEPSEEK_API_KEY=… ./target/debug/joy dashboard  # -> localhost:7777

A turn over the raw protocol:

ANTHROPIC_API_KEY=sk-… JOY_HOME=/tmp/joy-demo ./target/debug/joy app-server <<'JSONRPC'
{"jsonrpc":"2.0","id":1,"method":"turn/start","params":{"message":"Remember that Alex likes morning meetings"}}
JSONRPC

The response follows a notification stream: turnStarted → textDelta* → toolStarted → toolCompleted* → turnCompleted. turnCompleted.meta records tool timing, which model answered, and token usage — persisted with the conversation.

Why it is built this way

Jeeves Hosted assistant Minimal agent framework
State Local SQLite + FTS5, one process owns state.db Vendor cloud You build it
Memory Append-only ledger, inspectable, rebuildable Opaque DIY
Contract 65 JSON-RPC methods from one generated definition N/A Varies
Providers 12 pre-adapted + models.dev catalog + Ollama Fixed DIY
Release gate Deterministic replay evals + judge N/A DIY
Cost control Stable prompt prefix for caching, deferred tool loading N/A DIY

What's open, and how to help

P0–P20 of the original roadmap are done. What remains is the real-world work I'd like help with: real-platform gateway integrations, Windows write boundaries, more eval cases, and docs/screenshots. Start with the good first issue list — each one has acceptance criteria. See CONTRIBUTING.md and docs/limitations.md for known boundaries.

Releases ship every 1–2 weeks with real notes. If you want those without the noise, Watch → Custom → Releases.

What Jeeves can do

  • Converse on the terminal, in the dashboard, or through chat gateways
    (WeChat, Lark — Lark can share Web's runtime via JOY_GATEWAY_URL; see docs/guide.md)
  • Use Feishu business capabilities through the official CLI and the feishu-cli
    skill (just install-feishu-cli); existing exec permissions and approvals apply.
  • Remember: semantic facts (FTS5, CJK-capable), dated episodes, and
    procedural Skills — with a retrieval gate so memory is consulted only when
    relevant (docs/architecture.md)
  • Show its memory: the drawer's 记忆 tab opens the append-only ledger (one row per
    turn; open it for that turn's entry stream), the memory library (catalog, one page at a
    time, and ledger:… chips back to the source turns), and the context meter (six
    sections, with a notice before the window fills). One button compacts on demand
    (docs/operations.md)
  • Act: 21 built-in tools (13 always on, 8 behind switches) plus MCP servers
    (docs/configuration.md)
  • Stay cheap: the system prompt is a stable prefix plus a per-turn tail, so the
    provider can cache it; the skill catalog is one line per skill with bodies on demand, and
    JOY_TOOL_POLICY=deferred keeps only the always-on tool schemas in the request
    (docs/configuration.md)
  • Grow itself, on your say-so: the dashboard's capability center lists Skills, MCP
    connectors and scheduled jobs side by side — add your own, delete your own; what
    ships with the install, and the jobs a skill declares, are greyed out and read-only
    (docs/guide.md, docs/operations.md)
  • Morning brief as a skill: the bundled morning-briefing skill scans GitHub, the web,
    the calendar and memory, and only writes a draft
    (docs/operations.md)
  • Follow the project's own rules: AGENTS.md / AGENTS.override.md / CLAUDE.md are
    discovered upwards from the working directory, joined root-first into the per-turn tail
    (32KB budget, outermost dropped first) with their source paths named
    (docs/internals/09-app-server.md)
  • Never hand back half-finished work: when the step budget runs out it reads the todo list it
    wrote itself — if items are open it keeps going (carrying the steps so far, not starting over),
    up to JOY_AUTO_CONTINUE_MAX continuations, then says plainly what is left
    (docs/configuration.md)
  • Be examined: deterministic evals gate every release; joy eval --replay pins the event
    order of compaction, approval timeouts, streamed output, MCP reconnects and step-budget
    continuations; a judge grades answer quality and rejects invalid scores before averaging
    (docs/internals/14-testing.md)
  • Be observed: every turn lands a trace line and a usage row
    (docs/architecture.md)

Built-in tools

Tool Purpose
memory memory: action = save / forget / search / list / update / delete / delete_episode / create_skill (ask the user before writing a skill)
send_message message drafts into the outbox — never actually sends
search_web Parallel MCP first; bounded built-in fallback to Tavily / Brave or DDG Lite → Bing; source URLs, excerpts and deduplication
read_page read the full text behind a catalog line: kind=memory reads a memory-library page (with its sources), kind=skill reads a skill's full steps; on by default
read_file read a text file: paginated (2000 lines / 50KB, never mid-line), line numbers, a continuation protocol, and a re-read short-circuit; on by default
glob with no pattern it lists a directory (directories first, files with sizes, 500 entries); with a pattern it find files by name pattern (** across directories, */? inside one; a pattern with no / matches the file name at any depth), skipping .git, node_modules, target, dist, build and friends; on by default
grep search file contents and return path:line: text (plain text, optional ignore_case and a glob filter), skipping the same trees plus binaries and anything over 2 MB, capped at 200 matches; on by default
fetch_url Parallel MCP page extraction first, local HTTP fallback; 50k cap, public-target validation and untrusted-content wrapping; local redirects rechecked
job read, list and stop background jobs (action = output / list / kill; jobs start with run_command's background=true); needs JOY_EXEC=1
todo_write keep a per-session todo list, re-injected every turn (whole-table replace; one in_progress at a time)
write_file / edit write a text file / one exact-match replacement with a change hunk — off unless JOY_WRITE=1; writable boundary = the working directory bound to the session (or named for this turn when the session has none) + JOY_EXEC_WRITABLE_ROOTS
apply_patch apply a patch: several files and several hunks in one call, all or nothing (one hunk that does not fit means nothing is written); same boundary and approval as write_file / edit
run_command shell commands — sandboxed, allowlisted, off unless JOY_EXEC=1 (SECURITY.md)
delegate_task hand one self-contained job to a subagent (tasks: [...] fans out up to 4 independent jobs concurrently, merged in order) — off unless JOY_DELEGATE=1, cannot delegate again; pass result_schema for a structured answer (retried once, then prose)
browser_observe / browser_act Optional task browser: fresh DOM references, finite inputs, standard once-only approval and same-window human takeover. Requires installed components and a browser opened by a human for that task
find_tools search the deferred shelf by keyword and open what it finds for this session (JOY_TOOL_POLICY=deferred); on by default
schedule_job create or replace a scheduled job in the state database — name, five-field cron, one prompt; on by default
list_schedules every declared job with its cron and prompt (skill-declared ones included); on by default
cancel_schedule delete a file-declared job by name — a skill's job is refused with the way out; on by default

Providers and keys

Twelve LLM providers are pre-adapted in code (joyczl-provider), switchable at will — and extendable without code: <home>/models-catalog.json patches built-in defaults or adds a provider, and scripts/gen_catalog.py generates those rows from models.dev (context limits, vision, tool-call — joy's wire and key-env mappings included). See docs/configuration.md. /model lists configured profiles, /model add ds deepseek deepseek-flash --env DEEPSEEK_API_KEY adds one, /model use ds switches — no need to retype the key, effective immediately, no restart. Configuration lives in models.json, edited through the REPL's /model or the model menu in the Web and desktop preferences. Keys go to the OS keychain first (macOS Keychain, Linux secret-tool, Windows Credential Manager), falling back to <home>/secrets.json (0600, plaintext) when there is none — the save response says which one it was, honestly. Key writes go through the SecretVault seam, so a server-side KMS backend can slot in without touching callers. The old JOY_API_KEY / JOY_BASE_URL env vars are no longer read — configuration has exactly one path: models.json. The dashboard also self-hosts: JOY_OPS_HOST=0.0.0.0 demands JOY_OPS_TOKEN at startup, /api/* is Bearer-gated (docs/operations.md).

Tool failures return to the model as text — the loop never crashes on one.

Documentation

Document Content
docs/architecture.md principles, crate dependency graph, one turn's data flow, key mechanisms, design decisions
docs/protocol.md the 65 JSON-RPC methods, notification sequence, error codes, clients
docs/configuration.md every JOY_* variable, gateway variables, mcp.json, settings.json
docs/guide.md WeChat / Lark setup, quirks, and security notes
docs/internals/14-testing.md the four-layer quality system and the latest test report
docs/operations.md running every shape, backups, troubleshooting
docs/limitations.md every known boundary — deliberate or not — with the file to open next
docs/internals/ the tutorial: every crate's algorithms, data flow and invariants, chapter by chapter
docs/guide.md skill authoring: format, triggers, install and export
CONTRIBUTING.md engineering discipline and commit rules
SECURITY.md the security model: credentials, capability boundaries, OAuth
CHANGELOG.md changelog

Roadmap

Next up (help wanted): real-platform gateway integrations · Windows writable-boundary support · more replay eval cases · provider coverage beyond the 12 built in · publishing the existing Homebrew / npm packaging. See open issues for the concrete list.

Shipped: phases P0–P20 (click to expand)
Phase Content
P0 ✅ protocol layer + generation pipeline (63 types)
P1 ✅ state (SQLite+FTS5), app-server (JSON-RPC over stdio), joy CLI
P2 ✅ config / provider (12, incl. Ollama) / tools / loop / memory (gate + consolidation)
P2b ✅ provider streaming, MCP, graph + triage front door
P3 ✅ dashboard, WeChat / Lark gateways (Telegram and Discord were later removed; Lark private-chat receive/reply verified live, WeChat still unverified)
P4 ✅ terminal REPL, turn/interrupt, config/write + model/list, full tool set, Skills, trace/usage, gather, MCP OAuth, evals + gate + judge
P5 ✅ local inference (Ollama, no key), joy mcp serve (memory as an MCP server), Homebrew formula + Dockerfile
P6 ✅ sandboxed execution behind JOY_EXEC (deny list + allowlist + seatbelt/bwrap), context compaction (rolling summaries), declarative schedules (joy schedule)
P7 ✅ temporary-statement filter, skill updates (joy skill update)
P8 ✅ startup config validation, tool-argument schema checks, a stall guard, token budgets, sandboxed-and-offline execution, visible retries, output spilling, subagents, interactive approval, skill policy fields, memory kinds
P9 ✅ tool-result budgets (line-aware spilling + observed-prefill calibration), subagent report scanning and result_schema, MCP circuit breaking and name de-duplication, memory write de-duplication, twelve lifecycle hooks (JOY_HOOKS), a todo list, background jobs, and a goal loop (/goal)
P10 ✅ file-writing tools (write_file/edit), image input, model catalog, HTTP hooks, declarative workflows, per-session write lock, Windows boundary (Unix-only), distribution materials (npm shim / brew / release workflow)
P11 ✅ multi-device (accounts, hub and remote mode removed in the simplification): cross-device event sync, PWA skeleton, Tauri desktop shell
P12 ✅ long-task engine (turn-level checkpoints): working memory persisted at tool boundaries, kill -9 → startup reconcile auto-resumes (finished tools never re-run), task_* event pings, dashboard resume notice
P13 ✅ long tasks as entities (agent_tasks): the goal loop becomes their engine, one active task per session, create/pause/resume/cancel, a pause keeps the checkpoint (resume continues it), boot reconcile marks suspended, dashboard task-card switches
P14 ✅ connectors (M4): Feishu (app identity; the email connector was later removed) — allowlist hard boundary, drafts by default, one approval per live send; joy connector for humans; read-only dashboard panel
P15 ✅ business form (M5): task API (POST /api/run, one turn in, one JSON answer out), inbound webhooks (webhooks.json + X-Joy-Secret, no config = no door), tier routing (a task or a caller declares tier and it wins even in fixed mode; the table lives in model-routes.json / REPL /route)
P16 ✅ task entities (0.14): done decided by facts — three deterministic acceptance checks before the judge, task-level budgets, runs / steps / events / artifacts, idempotency that blocks but never replays, long-task benchmarks with a recovery rate, an optional execution plan (JOY_PLAN)
P17 ✅ session metadata (0.15): the sessions table (migration 0018), session/get / session/update / turn/list, the working directory follows the session
P18 ✅ session gate (0.16): one turn per session at a time (SESSION_BUSY), turn/steer for a running turn, turn/follow-up to queue the next one (migration 0019, survives a restart), the turnSteered notification
P19 ✅ secrets & productization: Windows Credential Manager + the SecretVault seam, self-hosting security (non-loopback demands JOY_OPS_TOKEN), the models.dev catalog generator (scripts/gen_catalog.py), dashboard streams Markdown block-incrementally, a one-line session sidebar with a draggable edge and hover marquee
P20 ✅ memory & context (0.17): the append-only ledger (a digest per row, oversized payloads spooled under ledger/, turns rebuilt from rows), the OKF bundle in <home>/memory with a rebuildable FTS5 index, a background worker that consolidates and mirrors (claim-first, one flight, backoff), the dashboard's memory center (ledger / library / meter), a split system prompt with an Anthropic cache breakpoint and cached-token accounting, thin/full souls, a skill catalog with on-demand bodies (read_page), deferred tool loading (find_tools), oldest-first result trimming, and /compact [focus]

Naming

Purpose Name
GitHub repository ChrisVip001/Jeeves
Existing package name joyczl-agent
Rust crate prefix joyczl-
CLI binary joy
Persona Jeeves
Env vars JOY_*
State directory .joy/
Design principles (expanded)

Design principles

  1. Rust owns logic and state. The agent loop, memory, tools, and
    state.db live in Rust; crates are split by responsibility (target <500
    lines per module), with no joy-core mega-crate.
  2. The protocol has one definition. joyczl-protocol is the single
    source of truth for the cross-language contract: types generate the
    TypeScript bindings, and the artifacts are checked in.
  3. Clients only translate. The CLI, dashboard and chat gateways are all
    clients of joy app-server (JSON-RPC over stdio); state.db is
    owned by the app-server runtime. Independently started runtimes still lack
    cross-process turn coordination; see the runtime limits.

Runtime reliability

Execution ownership, crash recovery, acceptance receipts and delivery guarantees are described in the changelog and docs/architecture.md.

English | 简体中文 · Code is MIT.

Yorumlar (0)

Sonuc bulunamadi