KunAgent/Kun

Local-first AI agent workspace for coding, writing, design, research, and automation — one runtime for desktop GUI and TUI.

What it solves

Kun is a local-first AI agent workbench designed to move AI from simply answering questions to executing real-world work. It solves the fragmentation between planning and execution by providing a unified environment where agents can plan, execute, verify, and deliver software and content projects while keeping evidence of their work tied to the task.

How it works

Kun operates via a shared local runtime (kun serve) that powers both a desktop GUI and a terminal TUI, ensuring continuity across different interfaces. It organizes work into two primary modes:

  • Code Mode: Focused on software delivery, providing project context, file editing, terminal access, Git/Worktree integration, and a Design canvas for prototyping.
  • Work Mode: Focused on content creation, allowing for Markdown editing, PDF/Office document analysis, spreadsheet processing, and presentation generation.

Agents follow a structured workflow: clarifying goals, forming a plan, executing with tool calls and file modifications, and providing evidence (like Diffs or test results) for final delivery.

Who it’s for

It is built for developers and knowledge workers who want an AI agent capable of handling end-to-end tasks within their local environment, supporting a wide variety of LLM providers (including OpenAI, Claude, Gemini, DeepSeek, and local models via Ollama).

Highlights

  • Unified Runtime: Shared state between GUI and TUI for seamless switching between visual and keyboard-centric work.
  • Local-First Architecture: Sessions, preferences, and logs are stored locally by default.
  • Multi-Modal Workflows: Integrated support for both coding (Code mode) and general productivity/writing (Work mode).
  • Extensibility: Supports Scheduled tasks, Loops, Hooks, MCP (Model Context Protocol), and a dedicated extension platform.
  • Provider Agnostic: Compatible with a vast array of cloud and self-hosted model providers.

Related

  • Project
  • Project
  • Project
  • Project
  • Project