Skip to content
zAcherttpPublic

About

A local-first personal AI virtual assistant daemon running as a Telegram bot and CLI app. Built with LangGraph and TypeScript to manage schedules, tasks, and files.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

MiniClaw

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.

Features

  • 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.md loading 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).

Prerequisites

  • 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 gws and lark-cli for office integrations

Setup

git clone <repository_url>
cd miniclaw
pnpm install --frozen-lockfile
pnpm dev init

After initialization, edit the generated files under ~/.miniclaw:

  • .env: add Telegram and model credentials.
  • config.json: enable Telegram, set allowFrom, model, workspace, and skill directories.

Start MiniClaw:

pnpm dev start

View the current configuration:

pnpm dev config

Run tests:

pnpm test

Test readiness

Install the locked dependencies before running checks:

pnpm install --frozen-lockfile
pnpm verify
pnpm test:coverage

verify 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.

Telegram Commands

  • /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.

Data Directory

MiniClaw stores user configuration and runtime state in ~/.miniclaw:

~/.miniclaw/
├── config.json
├── .env
├── state.json
├── workspace/
└── sessions/

License

This repository is maintained for academic project work.

About

A local-first personal AI virtual assistant daemon running as a Telegram bot and CLI app. Built with LangGraph and TypeScript to manage schedules, tasks, and files.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages