MiniClaw is a local-first personal AI assistant daemon built for Course Project 1. It runs as a Telegram bot and CLI app, using LangGraph, TypeScript, and a secure tool harness to help manage schedules, reminders, tasks, files, and external office tools.
Project topic: Integrating LLMs to Develop a Virtual Assistant for Daily Schedule and Task Management.
- Telegram bot interface for daily interaction.
- LangGraph-based ReAct agent loop.
- Short-term checkpoints and long-term semantic memory.
- Reminder scheduler that can send outbound Telegram notifications.
- Dynamic
SKILL.mdloading for tool and workflow instructions. - Human-in-the-loop workflow extraction during context compaction.
- Secure file boundary checks and allow-listed command execution.
- Optional integrations through Google Workspace CLI (
gws) and Lark CLI (lark-cli).
- Node.js 24
- pnpm 12.4.2 (pinned in
package.json) - Git
- Telegram bot token from BotFather
- Optional: Ollama or cloud LLM API keys
- Optional: authenticated
gwsandlark-clifor office integrations
git clone <repository_url>
cd miniclaw
pnpm install --frozen-lockfile
pnpm dev initAfter initialization, edit the generated files under ~/.miniclaw:
.env: add Telegram and model credentials.config.json: enable Telegram, setallowFrom, model, workspace, and skill directories.
Start MiniClaw:
pnpm dev startView the current configuration:
pnpm dev configRun tests:
pnpm testInstall the locked dependencies before running checks:
pnpm install --frozen-lockfile
pnpm verify
pnpm test:coverageverify runs strict TypeScript checking over production code and tests, the
Vitest suite, then TypeScript compilation. Coverage includes production files
under src/, excludes test fixtures, and writes JSON, JSON-summary and HTML
reports to coverage/. Vitest and its V8 coverage provider are both pinned to
4.1.10.
The tests mock Telegram and model calls and use temporary directories for
application state. They do not require a Telegram token, LLM key, Ollama server,
or access to your real ~/.miniclaw configuration.
For benchmark comparisons, pin an exact Git commit and retain its lockfile. The handwritten suite is a baseline; coverage alone does not establish its ability to detect faults. Run mutation measurements from the external benchmark harness, using the same source snapshot and test selection for every adapter.
/help: show available commands./status: show current bot and session status./stop: stop the active agent run./compact: compact the current conversation context./clear: clear the current chat history.
MiniClaw stores user configuration and runtime state in ~/.miniclaw:
~/.miniclaw/
├── config.json
├── .env
├── state.json
├── workspace/
└── sessions/
This repository is maintained for academic project work.