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

- **GitHub URL**: https://github.com/hhyqhh/inno-agent
- **Official Docs / Website**: https://hhyqhh.github.io/inno-agent-website
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (95/100 · Maintenance 35/35 · Adoption 20/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.8.1 (2026-12-01) — https://github.com/hhyqhh/inno-agent/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, CLI, API
- **Momentum**: 1,661 ★ total (+5 24h / +67 7d) · 266 forks
- **Topics**: `cli`, `electron`, `learning-agent`, `llm-agent`, `memory`, `personal-knowledge-management`, `pi-sdk`, `typescript`
- **When to Use**: Best for: A single learner who wants an editable learning profile, a searchable study library, and scheduled follow-up, and can choose and configure a model endpoint. Skip if: You need a shared classroom service with authentication, tenant isolation, concurrent sessions, or verified offline operation across all integrations.

## Overview
```text
### Architecture & Core Mechanics
Inno Agent is a TypeScript application built on the unmodified `@earendil-works/pi-coding-agent` runtime. Its React 19/Tailwind 4 Web UI uses a Node HTTP API with SSE for streaming and WebSocket for the Practice Lab terminal. Electron shares the Web interface, while the `inno` CLI runs a terminal UI without HTTP. Messaging adapters are another route into the same application layer, not separate agent workers.

The `inno-extension.ts` extension registers providers and tools. Its `before_agent_start` hook injects an L1 learner context pack and threshold-gated L3 recall. L1 keeps an editable profile and evidence event log; L2 is a human-readable wiki with BM25 and knowledge-graph retrieval, exposed to tools and `/api/wiki/*`; L3 builds a SQLite FTS5 index over Pi session JSONL. These layers separate facts about the learner, reusable subject knowledge, and searchable dialogue history.

### Key Capabilities & Differentiators
The agent can document goals and misconceptions in L1, ingest PDF, Office, and image material into the L2 wiki, and recall relevant past dialogue from L3. Cron jobs can be created in natural language and initiated by the agent, UI, or daemon; reminders can go to Feishu or WeChat, with iLink QR login or a bridge available for WeChat. Practice Lab gives the learner an in-browser terminal and makes its run records available to the agent for feedback.

Providers use `openai-completions` or `anthropic-messages` endpoints, with model switching in the UI and options including Anthropic, OpenAI, DeepSeek, and local endpoints such as Ollama. Simple Mode offers workspace presets, and the content hub can supply additional presets and skills. The optional literature integration adds multi-source paper search, open-access PDF selection, and page-cited PDF Q&A. Search and downloads remain available without embeddings; PDF Q&A needs a separate OpenAI-compatible embeddings endpoint.

### Trade-offs & Limitations
Compared with a generic coding agent plus a notes app, Inno Agent does more to carry a learner's progress forward: it separates editable learner state from reference material and past dialogue, then ties those records to reminders and practice. The trade-off is more state and integrations to maintain. Self-hosting the Node service keeps application state under the operator's control, but remote model or embedding calls may still send selected inputs off-host. MIT permits commercial reuse subject to its notice requirement; third-party services have separate terms.

This is not a shared tutoring service. One process has one active agent session and serializes work across workspaces and channels. A long turn or an unanswered prompt can block switching, with `409 session_busy` exposing the reason rather than hiding the delay. There is no built-in authentication, tenant isolation, or horizontal scaling. Tool permission rules are enabled by default, but OS sandboxing is a separate opt-in; workspace scope alone is not a security boundary.

### Hardware & Deployment Guide
Use an Electron installer for the simplest desktop setup, or build from source on Node.js 20.6+ with `npm install` and `npm run build`. `npm run server` serves the API and built frontend on port 3000 by default; `npm run start` runs the CLI without HTTP. Docker Compose builds locally, publishes port 3000, and mounts config, data, skills, and workspace at `/etc/inno-agent`, `/var/lib/inno-agent/data`, `/var/lib/inno-agent/skills`, and `/srv/inno-workspace`. Keep the unauthenticated server on a trusted network or behind a separately managed access boundary.

Remote inference does not require a GPU on the application host; budget locally for Node, document processing, workspace activity, and state growth. A local model endpoint shifts inference sizing to the model host. Bundled presets work offline, but cloud providers, messaging, and scholarly search still depend on their respective services. The optional literature integration requires Node.js 22.19+ and a restart after enabling it. Release v0.8.0 added skill generation and long-context controls and restored macOS, Windows, and Linux release pipelines; v0.8.1 added optional literature tooling and expanded web research provider settings.
```

## Key Capabilities
```text
- Agent integration: The inno extension adds registered tools and a `before_agent_start` hook without modifying the Pi SDK kernel.
- Retrieval: L2 combines BM25 with knowledge-graph retrieval; L3 uses SQLite FTS5 over Pi session JSONL and gates recall by relevance.
- Scheduling: Natural-language cron jobs persist definitions in `jobs.json` and runs in `runs.jsonl`, with reminders delivered through personal messaging channels.
- Practice Lab: A workspace-scoped xterm.js terminal runs over WebSocket and exposes run records to the agent.
- Research: Optional scholarly search and open-access PDF selection work without Ollama; page-cited PDF Q&A requires an OpenAI-compatible embeddings endpoint.
- Single-user capacity: One active agent session serializes work; blocked cross-session operations report `409 session_busy` with blocker details.
```

## Quick Start / Clone
```bash
git clone https://github.com/hhyqhh/inno-agent.git
cd inno-agent

npm install      # pulls the Pi SDK from npm
npm run build    # compiles backend + web

mkdir -p runtime/config runtime/data runtime/skills workspace
cp config.example.json runtime/config/config.json
# Edit runtime/config/config.json and set providers[*].apiKey

npm run server -- --home ./runtime --workspace ./workspace --port 3000
```
