Hetu
本地优先的 AI 知识与 Agent 工作台:Markdown 笔记 + 对话/编码会话,配向量检索、知识图谱、Wiki、记忆、看板与工作流,支持 MCP / 技能 / 多模型 · Local-first AI knowledge & agent workspace with semantic search, knowledge graph, memories, kanban, workflows & MCP
Install / Use
claude mcp add wosledon -- npx -y github:wosledon/HetuIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AutomationSupported Platforms
Our assessment of Hetu
Hetu scores 84/100 on our quality scale, 2099th of 2,896 Automation skills we index.
Its MCP Server is 16 KB long, well organised into 45 sections with 8 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated today, so Hetu is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Hetu compared with similar skills
All 4 of these similar skills score higher than Hetu; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| Hetu (this skill)by wosledon | 84 | 10 | today | MCP Server |
| claude-memby thedotmack | 100 | 100.6k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 97.2k | 6d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 75.3k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.4k | today | CLAUDE.md |
Frequently asked questions
- How do I install Hetu?
- Run
claude mcp add wosledon -- npx -y github:wosledon/Hetu. The install tabs above show the steps for each supported agent. - Which AI agents does Hetu work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is Hetu safe to use?
- It is Apache-2.0-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is Hetu still maintained?
- The repository was last updated today, so Hetu is actively maintained.
Skill content
View source on GitHubHetu
A local-first AI knowledge & agent workspace — notes, conversations and coding sessions that settle into one searchable, connected knowledge base.
简体中文 | English
🌐 官网与文档(GitHub Pages):https://wosledon.github.io/Hetu/
Hetu is a local-first knowledge and agent workspace: Markdown notes, chat and coding sessions share one store, and a vector index, knowledge graph, long-term memory plus tasks/workflows tie everything into a living network. All data and model calls stay on your machine — no account, no uploads.
- Two engines:
Notes(write) and theAgent workspace(ask & do) sit on the same knowledge base, so any note can be searched, indexed or turned into graph entities on demand. - It actually works on your code: Code sessions run inside your repositories — isolated worktrees, branches, Git sync, file/terminal/browser panels and PR creation, all conversation-driven.
- Composable: MCP tools, skills, agents, workflows and kanban tasks all plug into the same agent loop.
- Local-first: SQLite +
sqlite-vecout of the box, or PostgreSQL +pgvector.
🖼️ Gallery
| Notes | Agent workspace (chat + Code) |
| --- | --- |
|
|
|
| Knowledge base | Knowledge graph |
| --- | --- |
|
|
|
| Memories (with Dream) | Wiki generation |
| --- | --- |
|
|
|
| Kanban board | Usage & cost |
| --- | --- |
|
|
|
| Projects (local / SSH) | Background tasks |
| --- | --- |
|
|
|
✨ Features
📝 Notes
- WYSIWYG Markdown (Milkdown) plus a CodeMirror source view — edit / preview / split modes.
- AI writing: select text to polish / translate / condense / expand / explain / custom-prompt; a whole-note assistant panel with per-call model selection.
- In-note AI actions: generate index, extract knowledge graph, add tags, render flowcharts.
- Infinitely nested notebooks (including "Uncategorized"), tags with colors, rename, merge and sidebar filtering.
- 3-second autosave with save indicators; version history snapshotted on update, with preview, diff and one-click restore.
- Share links (permanent / 24h / 3-day) with view counters and a public read-only page at
/share/:code. - Trash (soft delete) plus Markdown export / database backup.
🤖 Agent workspace (/code)
Chat and coding sessions live in one workspace: a session/topic tree on the left, the message stream on the right.
- Sessions & topics: grouped topics, each with its own model, system prompt, context window and history; messages can be copied / edited / deleted and topics forked for branching exploration.
- SSE streaming with rich events:
delta, thinking traces, web-search results, knowledge-base and memory hits, tool calls/results, interactive questions, live to-dos, checkpoints and approval requests. - Deep thinking toggle with reasoning effort (low / medium / high) and a collapsible thinking trace.
- Input toolbelt: web search · knowledge base · memory · permission mode · model · agent · skills (type
/to invoke). - Five permission modes:
plan/readonly/ask/auto/bypass. Code sessions additionally have a run mode: interactive step-by-step or Autopilot. - Queue & steering: messages sent while a reply is streaming are queued (edit / delete / send now), and "steer" injects new instructions into the running turn immediately.
- Attachments & long text: images, files, and collapsed blocks for pasted logs/JSON.
- Distill to note: turn a topic into a Markdown note (summary / detailed / Q&A / custom prompt) with streaming preview and notebook picker.
- Context usage ring with automatic compression records.
🧑💻 Code sessions
- Projects: local directories or SSH remotes, organized in groups.
- Two workspace modes: work on the current branch, or give the session an isolated worktree (defaults to
parent-of-repo/.hetu-worktrees/<repo>/<worktree>, configurable root; finished worktrees are auto-cleaned by idle threshold). - Branches: local + remote branches (checking out a remote ref creates a local tracking branch), a persistent workspace/branch badge next to the title, and one-button Git sync (pull / push / refresh chosen from state).
- Work panel:
Files(browser + built-in editor) /Changes(line diff and rollback) /Checkpoints(pre-task snapshots, restorable) /Git(stage, commit, diff) /PR(auto-selectsghorglab: current-branch PR, open PR list, one-click create; gives platform-specific install hints when missing) /Browser(embedded preview) /Terminal(real PTY — vim/htop work). - Title as status: the session title carries the workspace, branch and PR badges.
🧠 Knowledge base
- Chunk and embed notes / files / URLs with three tabs:
Overview,Index management,Search test. - Live indexing progress (auto-polling while items remain unindexed), per-item chunk counts and re-index actions, coverage and dimensions.
- Built-in semantic search playground with adjustable Top-K and highlighted chunk previews.
- Vectors live in local
sqlite-vec, or PostgreSQLpgvector.
🕸️ Knowledge graph
- Force-directed visualization with zoom, pan, search and layout reset; entity types (concept / technology / project / person / organization / custom) with distinct colors.
- Relation types: belongs-to, related-to, depends-on, contains, compared-with, custom.
- AI extraction from any note with merge/dedup; click an entity to see linked notes and jump back to the editor.
📚 Wiki generation
- Pick a project and let AI generate a Wiki suite from its material (README, directory structure, code snippets, optionally semantic search): module pages plus a project overview.
- Suites are grouped with generation time, page count and an "updated" hint; each run is visible in background tasks with status and duration.
🧬 Memories & Dream
- Long-term memory store: content, category (preference / identity / work / habit / knowledge …), importance stars, search and scope filters (global / session / project).
- Memory graph visualization;
Dreamconsolidation periodically merges, decays and forgets memories based on decay/forget days. - Recalled in chat through the Memory toggle and the
search_memorytool.
🗂️ Kanban / Workflows / Tasks
- Kanban board: in-progress / review / blocked / done / archived columns; tasks can be assigned to agents and executed by them, recording run steps, comments and artifacts.
- Workflows: visually orchestrate multi-step agent flows (nodes, enable/disable, run history).
- Background & scheduled tasks: status, duration and failure reasons for embedding generation, graph extraction, Wiki generation, etc.; Cron-scheduled jobs included.
- Inbox: notification center with an unread badge in the navigation.
🧩 Agents / Skills / Tools / MCP
- Agents: system-prompt presets with categories, search, an explicit tool whitelist and per-tool approval policy; JSON import/export.
- Skills: built-in skills (translate / summarize / explain / polish) plus custom ones (prompt template + system prompt); Markdown / JSON skill files can also be loaded from disk directories. Invoke from chat with
/skill-name. - Tools: built-in tools (note read/write/search, web search, memory & graph search, todos, command execution, file operations …) individually toggleable.
- MCP: manage Model Context Protocol servers (
stdiofully supported,sseconfigurable), auto-discover tools viatools/listand invoke them viatools/call— they join the chat toolbelt.
⚙️ Models / Proxy / Usage
- Models & providers: OpenAI-compatible and Anthropic protocols with encrypted API keys, plus per-scenario default models (chat / code / Wiki / graph / organize / note AI …).
- Proxy service: expose configured models through OpenAI- / Anthropic-compatible endpoints for external clients (point your editor at Hetu).
- Usage: tokens, cached tokens, compression before/after, average latency, active days, distribution by model and source, week×hour and year×day heatmaps.
- Compression pipeline: context compression policy with saved-token accounting.
⚙️ Settings
App & assistant identity, navigation menu and style, default models, providers, cost control, memory, MCP servers, data & backup, workspace (worktree root + auto-cleanup) and about.

🖥️ Desktop app (Tauri 2, optional)
- Native window with system tray (close-to-tray by default, configurable); the backend is launched as a sidecar and readiness is polled via
/api/health. - Auto-update: GitHub primary endpoint with three mirror fallbacks, two channels (
fatbundles the .NET runtime,slimneeds system .NET 10). - The data directory is injected by the shell through
HETU_DATA_DIR(SQLite and logs live in the OS user data dir).
🔐 Privacy & storage
- Runs 100% locally, no account required; API keys encrypted with ASP.NET DataProtection (DPAPI on Windows).
- Vectors in local
sqlite-vecor PostgreSQLpgvector; both databases support the same feature set.
🧱 Tech Stack
| Layer | Stack |
| --- | --- |
| Backend | ASP.NET Core 10 · EF Core 10 · Serilog · Scalar (OpenAPI at /scalar/v1) |
| Storage | SQLite (default, sqlite-vec) / PostgreSQL 16+ (pgvector) |
| Frontend | React 19 · TypeScript 6 · Vite 8 · Tailwind CSS 4 · react-router 7 |
| State | Zustand (client) + TanStack Query (server) |
| Editors | Milkdown (WYSIWYG) / CodeMirror / xterm.js / react-markdown + KaTeX + Mermaid + DOMPurify |
| Visuals | ECharts · XYFlow + dagre (graph & workflow) |
| AI | OpenAI-compatible & Anthropic protocols · embeddings · SSE streaming · MCP (JSON-RPC 2.0) |
| Desktop | Tauri 2 (Rust shell + sidecar backend + updater) |
| i18n | i18next (简体中文 / English) |
📂 Project Structure
Hetu/
├── src/
│ ├── Hetu.Api/ # Web API host + background workers
│ ├── Hetu.Core/ # Domain entities, services, repository interfaces
│ ├── Hetu.Infrastructure/ # EF Core, AI providers, MCP, sqlite-vec
│ ├── Hetu.Infrastructure.PostgresMigrations/ # PostgreSQL migrations
│ └── Hetu.Shared/ # DTOs and shared models
├── frontend/ # React + Vite app
├── shell/hetu-desktop/ # Tauri 2 desktop shell (Rust + bundling)
├── scripts/ # start / publish / release / smoke-test scripts
├── docs/ # PRD and screenshots
└── AGENTS.md # Implementation conventions
Routes (frontend/src/App.tsx)
| Route | Page | What it does |
| --- | --- | --- |
| / | Notes | Notebook tree + note list + editor |
| /code | Agent workspace | Chat and Code sessions (/chat and /work redirect here) |
| /projects | Projects | Local / SSH projects and groups |
| /kanban, /kanban/:taskId | Kanban | Board and task detail (run steps, comments) |
| /wiki | Wiki | Generated suites and pages |
| /knowledge-base | Knowledge base | Overview / index management / search test |
| /graph | Knowledge graph | Entity & relation visualization |
| /memories | Memories | Memory store, memory graph and Dream |
| /tasks/background, /tasks/scheduled | Tasks | Background job monitor a
Truncated for display — read the full file on GitHub.
Related Skills
claude-mem
100.6kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
97.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
75.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.4kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
