Chika 2.0 — group chat agent
A self-hosted AI assistant for Facebook groups with tool calling, memory, moderation and games.
Problem
Large community groups need moderation and engagement around the clock, but classic command bots feel robotic and pure LLM bots are unpredictable.
How it flows
- Group event
- Router
- Commands / agent loop
- Tools & memory
- Reply
What I built
- An agent loop that mixes free conversation with deterministic commands and event handlers, so critical actions never depend on model mood.
- Tool calling via OpenRouter models, long-term memory, moderation actions, games and community features.
- Durable MongoDB or JSON storage, a typed config, and a Vitest suite; runs with Docker Compose.
- Built on top of Facebook API MCP as its transport.
Stack
TypeScriptOpenRouterTool callingMongoDBVitestDocker