A minimal Node.js application that connects Claude Agent SDK to WhatsApp using baileys. Features per-group memory via CLAUDE.md files, session continuity, scheduled tasks, and Gmail integration via MCP. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
37 lines
936 B
Markdown
37 lines
936 B
Markdown
# NanoClaw
|
|
|
|
Personal Claude assistant via WhatsApp.
|
|
|
|
## Structure
|
|
|
|
- `src/index.ts` - Main application (WhatsApp + routing + agent)
|
|
- `package.json` - Dependencies and scripts
|
|
- `.mcp.json` - MCP server configuration (gmail, scheduler)
|
|
- `groups/CLAUDE.md` - Global memory
|
|
- `groups/{name}/CLAUDE.md` - Per-group memory
|
|
|
|
## Configuration
|
|
|
|
Set environment variable `ASSISTANT_NAME` to change the trigger (default: "Andy").
|
|
|
|
Or edit the CONFIG object in `src/index.ts`.
|
|
|
|
## Skills
|
|
|
|
- `/setup` - Install dependencies, authenticate, start services
|
|
- `/customize` - Modify behavior
|
|
|
|
## Architecture
|
|
|
|
```
|
|
WhatsApp (baileys) ─┬─> SQLite (messages.db)
|
|
│ ↓
|
|
│ Polling loop
|
|
│ ↓
|
|
│ Claude Agent SDK
|
|
│ ↓
|
|
└─< Send response
|
|
```
|
|
|
|
Single Node.js process handles everything.
|