Friends System Overview
Friends are real people who interact with agents across multiple communication channels. The Friends system provides:
- Unified identity across all connected channels
- Magic-link authentication for portal access (no passwords)
- Personal k8s namespaces with resource quotas
- Personal secrets in isolated namespaces
- Persistent memory that both friends and agents can read/write
How It Works
Section titled “How It Works”Each friend has a single identity that maps to platform-specific IDs. When someone messages an agent on one channel, then later on another, the agent recognizes them as the same person.
Friend: alice ├── Channel A: 123456789012345678 ├── Channel B: a1b2c3d4-... ├── Channel C: +1-555-0100 └── Preferred channel: signalFriends are stored as workspace files (friends/<name>/profile.json) and relationships are tracked in the SQLite database.
Friend Lifecycle
Section titled “Friend Lifecycle”- Registration — Admin or agent creates a friend via
POST /api/friendswith platform IDs - Namespace provisioning — A
friend-<name>namespace is created with quotas and security policies - Portal access — Agent generates a magic link, friend clicks it, gets a 30-day session
- Ongoing interaction — Friends chat across channels, manage secrets, share memory
Example Friends
Section titled “Example Friends”A typical ManyClaws cluster might have friends like:
| Friend | Namespace |
|---|---|
| alice | friend-alice |
| bob | friend-bob |
| charlie | friend-charlie |
What’s Next
Section titled “What’s Next”- Friend Portal — How the portal UI works
- Cross-Platform Identity — Identity mapping details
- Secrets — Managing personal secrets