An open-source AI coding agent that runs in your terminal, with companion desktop, web, editor, and chat interfaces.
linghungegeg/Linghun
A local-first, evidence-first AI coding terminal that connects LLMs to real project files, tools, permissions, verification and context.
Open-source alternative to:Claude Code
Cursor
- Stars
- 464
- Forks
- 21
- Open issues
- 1
- Last commit
- 2 months ago
What is it?
Linghun is a TypeScript command-line coding assistant installed via npm as @linghun/cli. It runs in a terminal UI inside your project and lets a language model read code, edit files, run builds, tests and scripts, and inspect Git state, with file writes and shell commands going through a permission and path-safety layer.
Its main focus is reducing hallucinated conclusions. Key claims are tied to files read, tool output, verification records and Git status, and the final answer distinguishes what was verified from what was only inferred. Features such as a code index, prompt-cache management, durable background jobs, multi-agent workflows, per-role model routing and controlled memory are aimed at longer real-world tasks.
It supports OpenAI-compatible, DeepSeek and Anthropic-style endpoints, has MCP, skills, plugins and hooks for extension, and includes a local HTTP connector model for exposing external app capabilities. Node.js 22+ is required, and Windows is treated as a primary platform.
Key features
- 01Terminal UI where the model reads, edits and verifies code in your project
- 02File writes and shell commands gated by permissions and path checks
- 03Verification states distinguish PASS, PARTIAL, FAIL and unverified claims
- 04Code index and workspace snapshots to reduce repeated file reads
- 05Git stable points for checkpoints, rollback and handoff
- 06Per-role model routing and support for several provider API styles
Use cases
- Diagnosing and fixing a failing build or test suite in a local repository
- Making multi-file changes while keeping a Git checkpoint before risky edits
- Running a long task in the background and reviewing its evidence afterward
- Connecting a local internal tool to an AI coding session through the app bridge
Quick start
- 1
Install the CLI globally with npm
npm install -g @linghun/cli - 2
Start Linghun inside your project
linghun - 3
In Linghun, configure a model provider
/model setup
Things to know
- Requires Node.js 22 or newer.
- Needs your own model provider API key to run the AI features.
- The README describes Windows as the first-class platform.
Topics
FAQ
- What is Linghun?
- A local-first, evidence-first AI coding terminal that connects LLMs to real project files, tools, permissions, verification and context. Linghun is a TypeScript command-line coding assistant installed via npm as @linghun/cli. It runs in a terminal UI inside your project and lets a language model read code, edit files, run builds, tests and scripts, and inspect Git state, with file writes and shell commands going through a permission and path-safety layer.
- Is Linghun free to use? What license does it have?
- Linghun is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is Linghun still maintained?
- Updated within 6 months. The last commit to Linghun was on Aug 19, 2026.
- What can I use Linghun for?
- Diagnosing and fixing a failing build or test suite in a local repository Making multi-file changes while keeping a Git checkpoint before risky edits Running a long task in the background and reviewing its evidence afterward Connecting a local internal tool to an AI coding session through the app bridge
- How do I install Linghun?
- Install the CLI globally with npm: npm install -g @linghun/cli Start Linghun inside your project: linghun In Linghun, configure a model provider: /model setup
- Where can I get Linghun?
- The source code and installation instructions are on GitHub: https://github.com/linghungegeg/Linghun
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A terminal coding agent with built-in LSP, debugger, browser and subagent tools, supporting 60+ model providers.
An open-source coding agent that reads your project, edits files and runs tests from your terminal, desktop, browser or editor.
An open-source coding-agent CLI that runs in the terminal and works with cloud APIs and local model backends like Ollama.
Open source AI coding agent that runs in VS Code, JetBrains IDEs, or the terminal, with access to 500+ models.
Apache Maka (Incubating) is an agent workspace for desktop, TUI and CLI that records every model message, tool call and permission decision as an append-only event log.