Kan-Agent: The native agent subsystem of Kan-Linux, powered by local AI community.
It autonomously builds, deploys, audits, rolls back and troubleshooting system components, replacing traditional package managers and app stores in traditional Linux distributions.
2026 marks a turning point: local AI is widely accepted, consumer hardware and local inference stacks are mature. Kan-Agent cuts out the centralized binary distribution middleman, pulling source code directly from upstream repositories. Auditing, patching, building and deployment all happen locally, an analogy similar to Dell’s direct‑sale model.
A core feature of Kan-Linux is the absence of traditional package managers (apt, dnf, pacman, ...). Kan-Agent is an agent-first system orchestrator. No conventional package manager required. Local inference, reproducible builds, fine-grained permission control, safe rollback.
| Document | Link |
|---|---|
| Kan-Agent High Level Design (Chinese) | HIGH_LEVEL_DESIGN.zh-CN.md |
| Kan-Agent High Level Design (English) | HIGH_LEVEL_DESIGN.md |
| Kan-Agent Tool Schema | TOOL_SCHEMA.json |
Kan-Agent runs on a managed llama-server runtime built from the sibling ggml-hexagon project. Clone both repositories — side by side or the engine inside this tree, either layout works:
npm install -g bun # the only extra build tool (or: curl -fsSL https://bun.sh/install | bash)
git clone https://github.com/kan-linux/kan-agent
git clone https://github.com/kan-linux/ggml-hexagon
cd ggml-hexagon && ./scripts/build-run-ggmlvulkan-x86-linux.sh build && cd ../kan-agent
./build.sh build./build.sh build builds kan-agent and assembles the self-contained release tree in out/kan-agent
(runnable in place or installable with sudo ./build.sh deploy to /opt/kan-agent). Place exactly
one .gguf model in its llm/ directory, then:
sudo /opt/kan-agent/kan-agent "帮我安装go"./build.sh help lists every verb. KAN_GGMLHEXAGON_PATH / KAN_GGMLHEXAGON_BIN point the build
at an engine checkout in any other location.
- Contributors can open PRs
- Collaborators will be invited based on contributions
- Maintainers can push to branches in the
kan-agentrepo and merge PRs into themasterbranch - Any help with managing issues, PRs and projects is very appreciated!
- Read the CONTRIBUTING.md for more information
- To facilitate clear and effective communication, all discussions, comments, documentation, and PRs in this project should be conducted in English, this ensures that all contributors can participate and collaborate effectively.
- English and Chinese are both fine for issues and discussions.
- Discussions, issues and PRs should include human-written content. AI-assisted polish is accepted and welcomed(many of us are non-native English speakers). What matters is not who typed the content but whether a human understands it.
- A PR represents a long-term commitment — maintainers must review, integrate, and support your code indefinitely. What matters is not who wrote the code but whether a human understands it: either fully, or at the 60–90% level, and is able to explain major change to reviewers, even with AI assistance(many of us are not AI experts).
- Fully automated AI-generated content and fully automated PRs are not permitted. We value human connection and communication over fully AI-driven interaction, in other words: Human-in-the-Loop.
- Thanks to llama.cpp
- Thanks to Pi
- Thanks to the entire local AI community
- Special thanks to the AI assistant for extensive technical discussions, architectural advice, and writing assistance throughout the development of Kan-Agent
-
master https://github.com/kan-linux/kan-agent/tree/master, the default branch
-
initial https://github.com/kan-linux/kan-agent/tree/initial, initial branch
This project may include trademarks or logos belonging to third parties. Use of any third-party trademarks is governed by their respective policies.