Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kimi Agent System Analysis

Kimi Agent System Analysis Banner

License: Mixed Type: Research Repo Size Last Commit

An analysis of Moonshot AI's Kimi agent architecture (K2.5 model).


Table of Contents


Overview

This is an analysis of Moonshot AI's Kimi agent architecture and source code. Kimi K2.5 is the underlying model; the agents at kimi.com/chat, kimi.com/agent, and specialized endpoints are different interfaces that use this model.

Proof of source: when this repo was shared on Reddit about a bug in the extracted code, Kimi publicly confirmed this was the production code being used. See the comment below. (fixed January 2026)

Comment
by u/Appropriate_Goal_360 from discussion
in kimi
<script async="" src="https://embed.reddit.com/widgets.js" charset="UTF-8"></script>

Repository Structure

kimi-agent-internals/
├── README.md                 # Main entry point
├── GLOSSARY.md               # Terms and definitions
├── LICENSE                   # Mixed: CC0 + CC BY 4.0 + Apache 2.0
│
├── deep-dives/               # Technical reference documentation
│   ├── README.md
│   ├── architecture/         # System architecture
│   │   ├── container.md
│   │   ├── filesystem.md
│   │   ├── security.md
│   │   └── workspaces.md
│   ├── runtime/              # Runtime components
│   │   ├── browser-automation.md
│   │   ├── code-execution.md
│   │   ├── control-plane.md
│   │   ├── chrome-profile.md
│   │   ├── pdf-viewer.md
│   │   └── utils.md
│   └── binaries/             # Binary analysis
│       └── tectonic.md
│
├── prompts/                  # System prompts for 6 agent types
│   ├── README.md
│   ├── base-chat.md
│   ├── ok-computer.md
│   ├── docs.md
│   ├── sheets.md
│   ├── websites.md
│   ├── slides.md
│   └── memory-format.txt
│
├── analysis/                 # Research findings and analysis
│   ├── README.md
│   ├── execution-flows.md
│   ├── how-kimi-works.md
│   ├── skills-vs-personas.md
│   └── skills/              # Skill system analysis
│       ├── README.md
│       ├── docx/analysis.md
│       ├── pdf/analysis.md
│       ├── webapp/analysis.md
│       └── xlsx/analysis.md
│
├── source-code/       # Extracted source from Kimi system
│   ├── README.md
│   ├── browser_guard.py      # 41KB - Browser automation
│   ├── jupyter_kernel.py     # 17KB - Code execution
│   ├── kernel_server.py      # 10KB - Control plane
│   ├── utils.py              # 1.2KB - Helper functions
│   ├── etc/                  # System configuration (~8KB)
│   │   ├── chromium/         # Chrome security settings
│   │   ├── chromium.d/       # Chrome launch flags
│   │   └── ImageMagick-6/    # Image processing policy
│   ├── pdf-viewer/          # ~4MB - PDF.js Chrome extension (viewer only)
│   │   ├── manifest.json    # Extension manifest (v3)
│   │   └── content/web/     # Viewer core with CJK font support
│   └── skills/              # Skill system source code
│       ├── docx/            # Word document generation
│       │   ├── SKILL.md
│       │   ├── scripts/     # Python/C# toolchain
│       │   ├── assets/templates/  # C# templates
│       │   └── validator/   # .NET validator configs
│       ├── pdf/             # PDF generation
│       ├── xlsx/            # Excel processing
│       └── webapp-building/ # React webapp template
│
└── tools/                    # Tool schemas and documentation
    ├── README.md
    ├── base-chat.json        # Base Chat tool schemas
    ├── ok-computer.json      # OK Computer tool schemas
    ├── base-chat/            # 9 tool docs
    └── ok-computer/          # 29 tool docs

Quick Start

If you want to... Start here
Understand the architecture analysis/how-kimi-works.md
Learn the terminology GLOSSARY.md
Compare agent types prompts/base-chat.md vs prompts/ok-computer.md
See a skill definition source-code/skills/docx/SKILL.md
Explore technical details deep-dives/README.md

What This Repository Contains

System prompts for six agent types: Base Chat, OK Computer, Docs, Sheets, Slides, and Websites. Skill definitions for DOCX, XLSX, PDF, and WebApp output formats. Tool schemas documenting 38 distinct tools. Source code for the runtime environment. Technical analysis of the architecture, security model, and design patterns.


License

This repository uses mixed licensing. Extracted material (prompts, source code, tool schemas) is released under CC0 1.0 — the maintainer does not claim copyright over Moonshot AI's work. Original analysis and documentation is licensed under CC BY 4.0. Third-party components (PDF.js) retain their upstream licenses. See LICENSE and NOTICE.md for details.

About

Extracted artifacts from Kimi OK-Computer (and other agents) system for AI studies in agentic architecture.

Topics

Resources

Stars

332 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages