# Repository Briefing: DojoCodingLabs/hermit
> Source: https://repoforai.com/repo/DojoCodingLabs/hermit (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/DojoCodingLabs/hermit
- **Official Docs / Website**: https://joinhermit.com
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: Apache-2.0
- **Engineering Health**: A (80/100 · Maintenance 35/35 · Adoption 14/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Local AI, Self-Hosted
- **Momentum**: 21 ★ total (+0 24h / +6 7d) · 12 forks
- **Topics**: `ai-agent`, `android`, `expo`, `llama-cpp`, `local-llm`, `on-device-ai`, `open-source`, `privacy`, `react-native`, `typescript`
- **When to Use**: Best for: Early adopters testing private Android workflows such as reminders, notification replies, and mail drafts, with local inference and explicit oversight of consequential actions. Skip if: You need production-grade cross-device support, unrestricted browser automation, real-money payments, or predictable responsiveness across a mixed phone fleet.

## Overview
```text
### Architecture & Core Mechanics
Hermit is a TypeScript/pnpm workspace with an Expo/React Native app in `apps/mobile` and an evaluation harness in `packages/eval`. The app runs a 4-bit BotPsy-0.8B model through QVAC and llama.cpp. A router narrows the available skills and can require a tool call when the request clearly warrants one. The model selects a typed skill and fills its arguments; deterministic code handles date and time parsing and validates execution steps. The model has no shell, filesystem, or unrestricted browser access.

The TypeScript policy engine, called the cage, owns the allow/ask/deny decision. It generates the approval view from the proposed action rather than trusting model-written confirmation text, and app responses re-enter the harness as untrusted content. The activity log is signed and hash-chained, memories and logs stay in a SQLCipher-backed local database, and the wallet runs in a separate worklet. Experimental MCP and connected services extend the available integrations without giving the model general device control.

### Key Capabilities & Differentiators
English and Spanish chat, memory, reminders, and local calendar operations work after initial model setup without a connection. WhatsApp integration reads incoming notifications and can reply while the notification is still present. Mail supports IMAP and Gmail or Outlook with a user-supplied sign-in client. Vault autofill is scoped to the exact site or app and keeps passwords out of model input. USD₮ and x402 payments are testnet-only, with per-payment and daily caps. The charging-time briefing job cannot send, pay, or sign in.

The evaluation isolates the harness from the model: with the same BotPsy-0.8B Q4_K_M file, core-task results on a Galaxy S26 Ultra rose from 21/40 to 39/40, and the blind held-out score rose from 73/100 to 93/100. That set is now public and no longer suitable as a fresh blind test. The project measured 13.5 seconds median to first action and 37–42 tokens per second on that handset; neither figure establishes performance on other phones.

### Trade-offs & Limitations
Compared with a cloud assistant, Hermit avoids sending prompts to a hosted model, but the handset carries inference latency, memory pressure, and heat. Compared with a general browser or computer-use agent, typed skills are easier to validate and approve, but they cannot improvise across arbitrary apps and websites. This is pre-alpha software tuned on one handset, and WhatsApp's notification-based integration is not a full account connector. Review any approval exceptions before relying on a send prompt.

Local inference is not the same as an air-gapped workflow. Sends, calendar sync, mail, experimental web access, connected services, and testnet payments may contact their respective providers. The privacy screen lists contacted hosts, which helps an operator check the network footprint. The code is Apache-2.0, but artwork and bundled dependencies have their own licensing considerations for redistribution.

### Hardware & Deployment Guide
The published Android preview is `v0.1.0-preview.1`, distributed as a signed APK with a published SHA-256 and signing-certificate fingerprint. The runtime floor is Android 13+, arm64, 8 GB RAM, and ARMv8.2 dot-product instructions. First launch fetches a roughly 530 MB model over Wi-Fi and verifies its pinned SHA-256. There is no Hermit server to deploy; a desktop `llama-server` instance is for evaluation, not a dependency of the mobile app.

For source builds, use Node.js 24.9 or later within the 24.x line and pnpm through Corepack. The Android build additionally needs JDK 17, SDK platform 37, build-tools 37.0.0, CMake 3.22.1, NDK 29.0.14206865, and about 15 GB of free disk. Expo prebuild is followed by the QVAC and wallet bundle steps, then Gradle `:app:assembleDebug`; the development app loads JavaScript from Metro. Use a real arm64 phone because QVAC inference does not run on emulators. An iPhone development build supports limited chat and Device lab use, not full Android feature parity.
```

## Key Capabilities
```text
- On-device runtime: QVAC runs llama.cpp with the 4-bit BotPsy-0.8B model; the first-run download is about 530 MB and checked against a pinned SHA-256.
- Action boundary: A TypeScript allow/ask/deny engine evaluates typed skill calls and generates approval prompts independently of the model.
- Local state: SQLCipher encrypts the on-device database, and the signed, hash-chained activity log exposes a chain verification status.
- Android integration: WhatsApp replies use the active notification thread; the vault restricts autofill to the exact site or app without exposing passwords to the model.
- Harness evaluation: With the same model file, blind held-out accuracy rose from 73/100 to 93/100; the Galaxy S26 Ultra core-task score rose from 21/40 to 39/40.
- Device validation: Device lab benchmarks speed and accuracy on the phone and lets the user review the report before sharing it.
```

## Quick Start / Clone
```bash
git clone https://github.com/DojoCodingLabs/hermit.git
cd hermit
corepack enable
pnpm install
pnpm check:privacy && pnpm typecheck && pnpm lint && pnpm test
```
