# Repository Briefing: raroque/boop-agent
> Source: https://repoforai.com/repo/raroque/boop-agent (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/raroque/boop-agent
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: B (58/100 · Maintenance 12/35 · Adoption 20/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Self-Hosted, API
- **Momentum**: 1,395 ★ total (+0 24h / +4 7d) · 299 forks
- **When to Use**: Best for: A technically comfortable operator who wants to text a Claude- or Codex-backed agent, preserve preferences, and receive scheduled updates while retaining control over integrations. Skip if: You need an offline or turnkey managed assistant, hardened multi-tenant isolation, or a setup without a publicly reachable webhook and external service accounts.

## Overview
```text
### Architecture & Core Mechanics
Boop is a self-hosted TypeScript agent server. Express accepts signed Sendblue callbacks at `POST /sendblue/webhook` and direct requests at `POST /chat`; `/ws` is its WebSocket endpoint. `server/interaction-agent.ts` handles conversation context, memory, drafts, and schedules. It either answers directly or delegates to `server/execution-agent.ts`, which creates a separate worker per task. The dispatcher is denied web, file, and integration tools; workers load only the integration toolkits named at dispatch.

Setup selects the Claude Agent SDK or the local Codex app-server. Convex supplies realtime state for memory, agents, and drafts; the React/Vite dashboard surfaces that state for debugging. `server/integrations/registry.ts` exposes custom MCP tools through the same named-toolkit pattern as Composio connectors, so adding a connector does not require expanding the dispatcher's own toolset.

### Key Capabilities & Differentiators
Sendblue handles two-way iMessage with typing indicators, signed ingress, and webhook deduplication. Memory spans short, long, and permanent tiers, with post-turn extraction, decay, and vector recall. Embeddings can use local BGE-large as a fallback or Voyage or OpenAI. A three-stage proposer–adversary–judge process merges duplicates, reconciles contradictions, and prunes noise. It runs every 24 hours by default and can be triggered via `POST /consolidate`.

`server/automations.ts` polls every 30 seconds for due jobs, delegates them to workers, and returns results over iMessage. The draft-and-send flow stages external actions for user confirmation, while a heartbeat mechanism marks stalled workers as failed and the dashboard supports retries. Optional Patchright-backed Chrome access extends workers to logged-in websites; optional local iMessage and Apple Notes access is read-only and macOS-only.

### Trade-offs & Limitations
Compared with using Claude Code or Codex directly, Boop adds persistent memory, an iMessage front end, and proactive delivery, at the cost of running a reachable service and maintaining several accounts. Compared with a hosted assistant, the self-hosted server gives you control over dispatch and toolkit registration, but you own uptime, credentials, and access controls. The subscription path avoids a separate model API key for the chosen runtime, not necessarily for optional embeddings or integrations.

Separate workers narrow the tools loaded per task, but that split is not evidence of a security sandbox. Before exposing the service, verify which HTTP and WebSocket routes are reachable and how they authenticate independently of the signed Sendblue webhook. Check that each write-capable tool path is covered by the intended confirmation policy, especially before granting an agent access to a logged-in browser. Worker concurrency, recurring jobs, and consolidation all add load; this MIT-licensed starter is not a hardened multi-user service.

### Hardware & Deployment Guide
Use Node.js 20+, install and sign in to the Claude Code or Codex CLI, provision Sendblue credentials and a Convex deployment, and add a Composio key only if needed. `npm run setup` writes `.env.local` and prepares Convex. `npm run dev` starts the Express server, Convex development process, Vite dashboard, and ngrok when configured and no static `PUBLIC_URL` is set. Both rotating and stable URLs support boot-time webhook registration and signing-secret synchronization; `SENDBLUE_AUTO_WEBHOOK=false` opts out and leaves initial signing-secret setup to the operator.

The Express application is self-hosted, but iMessage delivery and subscription-backed inference are not offline. There is no stated GPU requirement; measure host headroom with the actual worker concurrency, embedding setup, and optional browser profile. The experimental macOS desktop launcher runs the same stack; `npm run desktop:setup` configures its separate runtime folder. There is no tagged release available as a versioned deployment baseline.
```

## Key Capabilities
```text
- Runtime choice: Claude Agent SDK or local Codex app-server, authenticated through the corresponding CLI login.
- Task-scoped tools: Workers load named toolkits from Composio or a custom MCP registry; the dispatcher does not use those tools directly.
- Memory lifecycle: Short-, long-, and permanent-tier storage in Convex, with vector recall and daily proposer–adversary–judge consolidation.
- Scheduled delivery: A 30-second due-job poll spawns workers and pushes results back over iMessage.
- Action review: External actions can be staged as drafts for confirmation; heartbeats fail stalled workers and the dashboard offers retries.
- Webhook operations: Signed Sendblue ingress with deduplication and boot-time registration for rotating or stable public URLs.
```

## Quick Start / Clone
```bash
# 1. Clone + install
git clone https://github.com/raroque/boop-agent.git
cd boop-agent
npm install

# 2. Install one agent runtime (one-time, global) and sign in
npm install -g @anthropic-ai/claude-code
claude  # sign in, then Ctrl-C to exit
# or:
npm install -g @openai/codex
codex login

# 3. Interactive setup — writes .env.local, creates Convex deployment, offers optional local browser use
npm run setup

# 4. Install ngrok (one-time) and authorize it
brew install ngrok
# or grab from https://ngrok.com/download
ngrok config add-authtoken <your-token>   # free at https://dashboard.ngrok.com

# 5. Start everything with one command — server, Convex, debug UI, and ngrok
npm run dev
```
