{"id":48746646,"url":"https://github.com/fluo10/sapphire-agent","last_synced_at":"2026-05-23T07:10:41.102Z","repository":{"id":349680465,"uuid":"1200242518","full_name":"fluo10/sapphire-agent","owner":"fluo10","description":"My personal AI assistant","archived":false,"fork":false,"pushed_at":"2026-05-20T05:58:29.000Z","size":1152,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-20T09:09:31.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluo10.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-03T07:27:59.000Z","updated_at":"2026-05-20T05:58:26.000Z","dependencies_parsed_at":"2026-04-19T07:02:55.480Z","dependency_job_id":null,"html_url":"https://github.com/fluo10/sapphire-agent","commit_stats":null,"previous_names":["fluo10/sapphire-agent"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/fluo10/sapphire-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluo10%2Fsapphire-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluo10%2Fsapphire-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluo10%2Fsapphire-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluo10%2Fsapphire-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluo10","download_url":"https://codeload.github.com/fluo10/sapphire-agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluo10%2Fsapphire-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33380807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T01:21:08.577Z","status":"online","status_checked_at":"2026-05-23T02:00:05.530Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-12T12:02:37.112Z","updated_at":"2026-05-23T07:10:41.096Z","avatar_url":"https://github.com/fluo10.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sapphire-agent\n\nA personal AI assistant agent that lives in a [`sapphire-workspace`](https://crates.io/crates/sapphire-workspace) and talks to me through Matrix and Discord.\n\n\u003e **Status: personal project.** This is something I built for my own use. It only has to work in my environment, and that is the only environment I test it in. You are welcome to use it, fork it, or send pull requests, but I am not going to maintain providers, channels, or features I do not personally use. If your use case overlaps with mine, great; if not, fork freely.\n\u003e\n\u003e The reason this exists at all is that other agents I tried (openclaw, zeroclaw, …) either did not support what I needed, were not actually tested for the parts I cared about, or did not accept fixes. So I wrote my own. Please calibrate expectations accordingly.\n\n## What it does\n\n- **Channels**: Matrix (E2EE via `matrix-sdk`) and Discord (`serenity`), running concurrently.\n- **Providers**: Anthropic Messages API with SSE streaming and a multi-round tool-use loop, plus OpenAI-compatible backends (local LLMs, OpenRouter, …) selectable per room/session via the `[providers]` / `[profiles]` / `[room_profile]` schema.\n- **Workspace**: backed by [`sapphire-workspace`](https://crates.io/crates/sapphire-workspace) — file index, full-text + vector search (LanceDB), git sync.\n- **Built-in tools**: `file_read`, `file_write`, `file_append`, `file_delete`, `dir_list`, `dir_walk`, `web_search`, `weather`, `shell`, `timer_set` / `timer_preset` / `timer_cancel` / `timer_status` (incl. Pomodoro presets), plus workspace memory / search / sync tools.\n- **Sessions**: human-readable [`grain-id`](https://crates.io/crates/grain-id) aliases, auto-generated titles, history dump on resume.\n- **Background**: heartbeat cron tasks, periodic memory compaction, periodic workspace sync, daily / weekly / monthly / yearly logs with catch-up.\n- **Voice**: optional `sapphire-call voice` satellite with local STT/TTS (via `sherpa-onnx`), Silero VAD, and an openWakeWord wake detector. See [crates/sapphire-call](crates/sapphire-call/).\n- **Agent-to-agent**: `/a2a` endpoint speaks the v1 A2A protocol (JSON-RPC `SendMessage`, AgentCard) with per-profile bearer-token auth — enable via `[a2a].enabled = true`.\n- **External AI integration**: `/mcp` endpoint publishes `write_report` and `recall_memory` tools so Claude Code (and other MCP clients) can share project context with the agent — see [docs/mcp-integration.md](docs/mcp-integration.md).\n- **Commands**:\n  - `sapphire-agent` — start the channel listeners + JSON-RPC HTTP control API (`/rpc`, `/mcp`, `/a2a`)\n  - `sapphire-agent verify` — validate config and report loaded workspace files\n  - `sapphire-call` — interactive REPL / voice satellite client (separate crate; see [crates/sapphire-call](crates/sapphire-call/))\n\n## Install\n\n```sh\ncargo install sapphire-agent\n```\n\nOr from source:\n\n```sh\ngit clone https://github.com/fluo10/sapphire-agent\ncd sapphire-agent\ncargo build --release\n```\n\n## Configure\n\nCopy `config.example.toml` to your config directory (`~/.config/sapphire-agent/config.toml` on Linux) and fill in the Anthropic API key, workspace path, and whichever channels you actually want.\n\nThen:\n\n```sh\nsapphire-agent verify   # sanity-check config and workspace\nsapphire-agent          # start the channel listeners + HTTP control API\nsapphire-call           # one-off interactive session (separate crate)\n```\n\n## License\n\nLicensed under either of:\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE))\n- MIT License ([LICENSE-MIT](LICENSE-MIT))\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluo10%2Fsapphire-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluo10%2Fsapphire-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluo10%2Fsapphire-agent/lists"}