Initial commit: NanoClaw - Personal Claude assistant via WhatsApp

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>
This commit is contained in:
gavrielc
2026-01-31 18:54:24 +02:00
commit c17823a732
16 changed files with 4375 additions and 0 deletions

36
CLAUDE.md Normal file
View File

@@ -0,0 +1,36 @@
# 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.