// Guía Completa — Windows 11 Nativo · Abril 2026

Kimi Code + Gentle-AI

Instalación nativa en Windows 11. El agente de coding de Moonshot AI potenciado con el ecosistema Gentleman: memoria persistente, workflow SDD, skills, MCP y code review automático.

⊞ Windows 11 Nativo
Kimi Code CLI
gentle-ai · soporte nativo
256K contexto · K2.6
Python 3.13 · uv
// Complete Guide — Native Windows 11 · April 2026

Kimi Code + Gentle-AI

Native installation on Windows 11. The Moonshot AI coding agent powered by the Gentleman ecosystem: persistent memory, SDD workflow, skills, MCP, and automatic code review.

⊞ Native Windows 11
Kimi Code CLI
gentle-ai · native support
256K context · K2.6
Python 3.13 · uv
Nuevo:New: Kimi CLI 1.39.0 · gentle-ai v1.23.0 · 256K tokens · Installer PowerShell · Scoop · Go install

🙌 Guía gratuita y open-source para la comunidad

Esta guía fue creada para ayudar a desarrolladores hispanohablantes a dominar Kimi Code con el ecosistema Gentleman. Si te sirvió, compartila en tus redes o dejá una ⭐ en el repo de GitHub.

🙌 Free and open-source guide for the community

This guide was created to help Spanish-speaking developers master Kimi Code with the Gentleman ecosystem. If you found it useful, share it on social media or leave a ⭐ on the GitHub repo.

// Kimi Code CLI

Agente de coding de Moonshot AI

Moonshot AI Coding Agent

Corre directo en tu terminal (PowerShell). Lee tu codebase, edita archivos, ejecuta comandos, busca en la web y entiende el proyecto completo via lenguaje natural. Powered by Kimi K2.6 con 256K tokens de contexto, soporte MCP, modo thinking con Tab, y modo shell con Ctrl-X.

Runs directly in your terminal (PowerShell). Reads your codebase, edits files, executes commands, searches the web, and understands the full project via natural language. Powered by Kimi K2.6 with 256K context tokens, MCP support, thinking mode with Tab, and shell mode with Ctrl-X.

// Gentle-AI

Configurador del ecosistema Gentleman

Gentleman Ecosystem Configurator

No instala Kimi Code — lo superpotencia. Un binario de Go que inyecta memoria persistente (Engram), workflow SDD de 9 fases, 21 skills de código moderno, docs en tiempo real (Context7), code review automático (GGA) y persona mentora. Soporta Kimi Code de forma nativa con detección automática.

Does not install Kimi Code — it supercharges it. A Go binary that injects persistent memory (Engram), a 9-phase SDD workflow, 21 modern code skills, real-time docs (Context7), automatic code review (GGA), and a mentor persona. Native Kimi Code support with automatic detection.

// stack completo en Windows 11
// full stack on Windows 11
Kimi Code CLI (nativo en Windows · PowerShell · kimi K2.6 · 256K contexto) │ ├── Engram Memoria persistente · SQLite + FTS5 · ~/.engram/engram.db ├── SDD Spec-Driven Dev · 9 fases · explore→propose→spec→apply→archive ├── Context7 MCP server · docs de librerías en tiempo real ├── Skills 21 patrones · React 19, Next.js 15, TypeScript, Tailwind 4 └── GGA Guardian Angel · code review automático en cada commit ────────────────────────────────────────────────────── Requisitos: Python 3.13+ (via uv, auto-instalado) · Go 1.24+ (para gentle-ai go install) Sin Node.js · Sin WSL2 · Sin Docker · Kimi CLI detectado automáticamente por gentle-ai
Kimi Code CLI (native on Windows · PowerShell · kimi K2.6 · 256K context) │ ├── Engram Persistent memory · SQLite + FTS5 · ~/.engram/engram.db ├── SDD Spec-Driven Dev · 9 phases · explore→propose→spec→apply→archive ├── Context7 MCP server · real-time library docs ├── Skills 21 patterns · React 19, Next.js 15, TypeScript, Tailwind 4 └── GGA Guardian Angel · automatic code review on every commit ────────────────────────────────────────────────────── Requirements: Python 3.13+ (via uv, auto-installed) · Go 1.24+ (for gentle-ai go install) No Node.js · No WSL2 · No Docker · Kimi CLI auto-detected by gentle-ai


// por qué usar estas dos herramientas juntas
// why use these two tools together
Ventajas de la combinación
Advantages of the combination

Kimi Code por sí solo es un agente de coding capaz con 256K contexto. Gentle-AI lo transforma en un sistema de desarrollo completo con memoria, estructura y criterio propio.

Kimi Code alone is a capable coding agent with 256K context. Gentle-AI transforms it into a complete development system with memory, structure, and its own judgment.

🧠
Kimi K2.6 — 256K de contexto
Kimi K2.6 — 256K context
El modelo comprende proyectos enteros: estructura, dependencias, patrones y cómo se conecta todo. Ideal para refactors multi-archivo, debugging complejo y cambios de arquitectura sin perder contexto.
The model understands entire projects: structure, dependencies, patterns, and how everything connects. Ideal for multi-file refactors, complex debugging, and architecture changes without losing context.
💾
Engram — Memoria entre sesiones
Engram — Memory across sessions
Kimi Code no recuerda nada entre sesiones. Engram persiste decisiones, bugs, patrones y contexto de proyecto en SQLite. Al volver, el agente ya conoce todo el historial sin que repitas nada.
Kimi Code remembers nothing between sessions. Engram persists decisions, bugs, patterns, and project context in SQLite. When you return, the agent already knows the entire history without you repeating anything.
Hasta 100 tokens/s — Respuesta ultra-rápida
Up to 100 tokens/s — Ultra-fast response
Kimi Code tiene uno de los throughputs más altos del mercado. Combinado con el workflow SDD de gentle-ai, los ciclos de desarrollo se vuelven significativamente más rápidos que con otros agentes.
Kimi Code has one of the highest throughputs on the market. Combined with the gentle-ai SDD workflow, development cycles become significantly faster than with other agents.
🏗️
SDD — Desarrollo guiado por spec
SDD — Spec-Driven Development
El workflow Spec-Driven Development de 9 fases convierte a Kimi Code de un chatbot que escribe código en un agente que propone, diseña, implementa y verifica con un proceso estructurado y repetible.
The 9-phase Spec-Driven Development workflow turns Kimi Code from a chatbot that writes code into an agent that proposes, designs, implements, and verifies with a structured and repeatable process.
📚
Context7 — Documentación en tiempo real
Context7 — Real-time documentation
Kimi K2.6 fue entrenado hasta cierta fecha. Context7 via MCP le da acceso a la documentación actualizada de librerías como Next.js 15, React 19, Tailwind 4 o cualquier framework que uses.
Kimi K2.6 was trained up to a certain date. Context7 via MCP gives it access to updated documentation for libraries like Next.js 15, React 19, Tailwind 4, or any framework you use.
🔍
GGA — Code review automático
GGA — Automatic code review
El Guardian Angel de gentle-ai ejecuta un code review con Kimi Code en cada git commit. Detecta errores, malas prácticas y sugiere mejoras antes de que lleguen al repositorio.
The gentle-ai Guardian Angel runs a code review with Kimi Code on every git commit. Detects errors, bad practices, and suggests improvements before they reach the repository.
🎯
Modo Thinking — Razonamiento profundo
Thinking Mode — Deep reasoning
Inicia Kimi con --thinking para activar el modo thinking. Ideal para decisiones de arquitectura complejas, debugging difícil o planificar refactors grandes. Kimi razona antes de responder. Se desactiva con --no-thinking.
Start Kimi with --thinking to activate thinking mode. Ideal for complex architecture decisions, difficult debugging, or planning large refactors. Kimi reasons before responding. Disable with --no-thinking.
💰
Costo — Membership con quota semanal
Cost — Membership with weekly quota
Kimi Code usa un modelo de membership (no pay-per-token). La cuota se renueva cada 7 días. Con gentle-ai optimizando el contexto y la memoria, cada token del modelo rinde mucho más.
Kimi Code uses a membership model (not pay-per-token). The quota renews every 7 days. With gentle-ai optimizing context and memory, every model token goes much further.


0
Prerequisitos — qué necesitas instalar primero
Prerequisites — what you need to install first
Cuenta Kimi + uv (Python package manager) · Go 1.24 opcional para gentle-ai
Kimi account + uv (Python package manager) · Go 1.24 optional for gentle-ai
ℹ️
Requisitos reales para Windows 11
Real requirements for Windows 11

Kimi Code CLI: requiere Python 3.13+ administrado por uv. El installer oficial instala uv automáticamente si no lo tienes.

Gentle-AI: binario de Go autocontenido. Con el installer PowerShell no necesitas Go. Con go install sí necesitas Go 1.24+.

Cuenta Kimi: requiere membresía activa de Kimi (plan con acceso a Kimi Code). Sin esto, el login no funcionará.

Kimi Code CLI: requires Python 3.13+ managed by uv. The official installer installs uv automatically if you don't have it.

Gentle-AI: self-contained Go binary. With the PowerShell installer you don't need Go. With go install you do need Go 1.24+.

Kimi account: requires an active Kimi membership (plan with Kimi Code access). Without it, login will not work.

Paso 1 — Verificar / instalar PowerShell 7

PowerShell 7 — recomendado
# Instalar PowerShell 7 vía winget si no lo tienes
winget install --id Microsoft.PowerShell -e

# Verificar versión
$PSVersionTable.PSVersion   # debe ser 7.x.x

# Abrir siempre desde Windows Terminal (instalar desde Microsoft Store si no lo tienes)
# Buscá "Windows Terminal" en la tienda de Microsoft

Step 1 — Verify / Install PowerShell 7

PowerShell 7 — recommended
# Install PowerShell 7 via winget if you don't have it
winget install --id Microsoft.PowerShell -e

# Verify version
$PSVersionTable.PSVersion   # must be 7.x.x

# Always open from Windows Terminal (install from Microsoft Store if you don't have it)
# Search "Windows Terminal" in the Microsoft Store

Paso 2 — Cuenta Kimi y membresía activa

# 1. Crear cuenta en kimi.com si no tienes una
#    → https://www.kimi.com/membership/pricing

# 2. Suscribirse a un plan que incluya Kimi Code
#    → Los planes de Kimi con acceso a Kimi Code incluyen cuota semanal de requests
#    → La cuota se renueva cada 7 días desde la fecha de suscripción

# 3. Obtener API Key para configuración avanzada (opcional)
#    → https://www.kimi.com/code/console
#    → Crear hasta 5 API Keys (cada una se muestra una sola vez, guardarla bien)

Step 2 — Kimi account and active membership

# 1. Create an account at kimi.com if you don't have one
#    → https://www.kimi.com/membership/pricing

# 2. Subscribe to a plan that includes Kimi Code
#    → Kimi plans with Kimi Code access include a weekly request quota
#    → The quota renews every 7 days from the subscription date

# 3. Get an API Key for advanced configuration (optional)
#    → https://www.kimi.com/code/console
#    → Create up to 5 API Keys (each is shown only once, save it securely)
💳
Kimi Code requiere membresía activa
Kimi Code requires an active membership

El plan gratuito de Kimi no incluye acceso a Kimi Code CLI. Necesitas una suscripción con Kimi Code benefits activados. Verificá en kimi.com/membership/pricing los planes disponibles.

La cuota semanal es compartida entre CLI, VS Code y API Keys. Todos los dispositivos y keys comparten el mismo pool de quota.

The free Kimi plan does not include access to Kimi Code CLI. You need a subscription with Kimi Code benefits activated. Check kimi.com/membership/pricing for available plans.

The weekly quota is shared across CLI, VS Code, and API Keys. All devices and keys share the same quota pool.



1
Instalar Kimi Code CLI en Windows 11
Install Kimi Code CLI on Windows 11
Installer oficial vía PowerShell · Instala uv y Kimi CLI automáticamente
Official installer via PowerShell · Installs uv and Kimi CLI automatically

Instalación oficial (recomendada)

PowerShell 7 — NO necesitas ejecutar como Administrador
# Installer oficial de Moonshot AI
# Descarga e instala uv (Python package manager) y luego Kimi Code CLI
Invoke-RestMethod https://code.kimi.com/install.ps1 | Invoke-Expression

# Cerrar y reabrir PowerShell (necesario para que el PATH tome efecto)

# Verificar instalación
kimi --version

# Verificar que uv también quedó instalado
uv --version

Official installation (recommended)

PowerShell 7 — NO need to run as Administrator
# Official Moonshot AI installer
# Downloads and installs uv (Python package manager) and then Kimi Code CLI
Invoke-RestMethod https://code.kimi.com/install.ps1 | Invoke-Expression

# Close and reopen PowerShell (needed for PATH to take effect)

# Verify installation
kimi --version

# Verify uv was also installed
uv --version

Instalación alternativa vía uv (si ya tienes uv)

PowerShell 7
# Si ya tienes uv instalado, podés instalar Kimi CLI directamente
uv tool install --python 3.13 kimi-cli

# Verificar
kimi --version

Alternative installation via uv (if you already have uv)

PowerShell 7
# If you already have uv installed, you can install Kimi CLI directly
uv tool install --python 3.13 kimi-cli

# Verify
kimi --version
🐍
Kimi Code CLI usa Python — pero no lo gestionás vos
Kimi Code CLI uses Python — but you don't manage it

A diferencia de Claude Code (que es un binario Go), Kimi Code CLI está escrito en Python. Sin embargo, uv gestiona el entorno por completo. No necesitás instalar Python manualmente, no hay conflictos con tu Python del sistema, y no hay pip install manual. Todo es automático.

Kimi Code soporta Python 3.12–3.14. Python 3.13 es el recomendado para mejor compatibilidad.

Unlike Claude Code (which is a Go binary), Kimi Code CLI is written in Python. However, uv manages the environment completely. You don't need to install Python manually, there are no conflicts with your system Python, and no manual pip install. Everything is automatic.

Kimi Code supports Python 3.12–3.14. Python 3.13 is recommended for best compatibility.

Dónde instala Kimi Code en Windows

# El binario (script entry point) queda en:
C:\Users\TuUsuario\.local\bin\kimi.exe  # (o vía uv tool bin path)

# La configuración principal queda en:
C:\Users\TuUsuario\.kimi\config.toml

# Las sesiones, logs y config MCP en:
C:\Users\TuUsuario\.kimi\

# Si kimi no se reconoce como comando, verificar que el PATH incluya:
uv tool bin-path   # muestra dónde instala los binarios uv

# Agregar al PATH manualmente si es necesario:
[Environment]::SetEnvironmentVariable(
    "PATH",
    "$env:PATH;$env:USERPROFILE\.local\bin",
    "User"
)

Where Kimi Code installs on Windows

# The binary (script entry point) goes to:
C:\Users\YourUser\.local\bin\kimi.exe  # (or via uv tool bin path)

# Main configuration goes to:
C:\Users\YourUser\.kimi\config.toml

# Sessions, logs, and MCP config in:
C:\Users\YourUser\.kimi\

# If kimi is not recognized as a command, verify PATH includes:
uv tool bin-path   # shows where uv installs binaries

# Add to PATH manually if needed:
[Environment]::SetEnvironmentVariable(
    "PATH",
    "$env:PATH;$env:USERPROFILE\.local\bin",
    "User"
)

Login y autenticación con tu cuenta Kimi

PowerShell 7 — dentro del directorio de tu proyecto
# Navegar a tu proyecto y abrir Kimi Code
cd C:\Users\TuUsuario\Projects\mi-proyecto
kimi

# En la primera sesión, ejecutar el comando de login
/login

# Seleccionar "Kimi Code" como plataforma (recomendado)
# → Abre el browser automáticamente para OAuth
# → Iniciar sesión con tu cuenta Kimi → autorizar → volver al terminal
# → La sesión queda guardada en ~/.kimi/

# Alternativa — API Key manual (para CI/CD o uso headless)
# En /login seleccionar "Custom" y pegar tu API Key del console

Login and authentication with your Kimi account

PowerShell 7 — inside your project directory
# Navigate to your project and open Kimi Code
cd C:\Users\YourUser\Projects\my-project
kimi

# On the first session, run the login command
/login

# Select "Kimi Code" as the platform (recommended)
# → Opens the browser automatically for OAuth
# → Log in with your Kimi account → authorize → return to terminal
# → Session is saved in ~/.kimi/

# Alternative — Manual API Key (for CI/CD or headless use)
# In /login select "Custom" and paste your API Key from the console
Verificar que Kimi Code está activo
Verify that Kimi Code is active

Una vez autenticado, ejecutá /usage (alias /status) para ver tu cuota restante. Deberías ver el modelo activo apuntando automáticamente al más reciente (actualmente K2.6).

Once authenticated, run /usage (alias /status) to see your remaining quota. You should see the active model pointing automatically to the latest one (currently K2.6).

Comandos esenciales de Kimi Code CLI

Comando Descripción
kimi Inicia sesión interactiva en el directorio actual
kimi login Login OAuth con tu cuenta Kimi (alternativa a /login)
kimi web Abre interfaz gráfica en el browser local
kimi --thinking Inicia con modo thinking activado (razonamiento profundo)
kimi --agent-file PATH Carga el agente de gentle-ai
/login Configurar o cambiar fuente de API
/usage Ver cuota restante (alias: /status)
/init Analizar el proyecto y generar AGENTS.md
/sdd-init Iniciar workflow SDD — detecta stack y testing
/compact Comprimir historial manteniendo contexto clave
/sessions Ver y cambiar entre sesiones (alias: /resume)
/undo Rollback a un turno anterior y reintentar
/fork Bifurcar sesión actual para probar otra dirección
/plan Modo planificación (solo lectura + plan de implementación)
/yolo Auto-aprobar todas las operaciones (con precaución)
/help Ver todos los comandos disponibles
Ctrl-X Cambiar entre modo agente y modo shell directo
Shift-Tab Activar/desactivar modo plan
Ctrl-J / Alt-Enter Insertar saltos de línea al pegar código o logs

Essential Kimi Code CLI commands

Command Description
kimi Start interactive session in current directory
kimi login OAuth login with your Kimi account (alternative to /login)
kimi web Open graphical interface in local browser
kimi --thinking Start with thinking mode enabled (deep reasoning)
kimi --agent-file PATH Load the gentle-ai agent
/login Configure or change API source
/usage View remaining quota (alias: /status)
/init Analyze project and generate AGENTS.md
/sdd-init Start SDD workflow — detects stack and testing
/compact Compress history keeping key context
/sessions View and switch between sessions (alias: /resume)
/undo Rollback to a previous turn and retry
/fork Fork current session to try another direction
/plan Planning mode (read-only + implementation plan)
/yolo Auto-approve all operations (use with caution)
/help View all available commands
Ctrl-X Switch between agent mode and direct shell mode
Shift-Tab Toggle plan mode on/off
Ctrl-J / Alt-Enter Insert line breaks when pasting code or logs


2
Instalar Gentle-AI en Windows 11
Install Gentle-AI on Windows 11
Binario nativo de Go · Installer PowerShell oficial · Sin dependencias runtime
Native Go binary · Official PowerShell installer · No runtime dependencies
¿Qué hace gentle-ai exactamente?
What does gentle-ai actually do?

Gentle-AI no instala Kimi Code. Lo que hace es detectar los agentes que tenés instalados y configurarles el ecosistema Gentleman completo: inyecta el archivo de configuración del agente (~/.kimi/agents/gentleman.yaml), crea el prompt KIMI.md, instala MCP servers (Context7), y configura el hook de git para GGA.

Gentle-AI does not install Kimi Code. What it does is detect the agents you have installed and configure the complete Gentleman ecosystem for them: injects the agent configuration file (~/.kimi/agents/gentleman.yaml), creates the KIMI.md prompt, installs MCP servers (Context7), and configures the git hook for GGA.

Opción A — Installer PowerShell (recomendada, sin Go)

PowerShell 7
# Descarga el binario compilado directamente desde GitHub Releases
# No necesitás Go instalado
irm https://raw.githubusercontent.com/Gentleman-Programming/gentle-ai/main/scripts/install.ps1 | iex

# Verificar
gentle-ai --version

Option A — PowerShell Installer (recommended, no Go)

PowerShell 7
# Download the compiled binary directly from GitHub Releases
# You don't need Go installed
irm https://raw.githubusercontent.com/Gentleman-Programming/gentle-ai/main/scripts/install.ps1 | iex

# Verify
gentle-ai --version

Opción B — Scoop (gestor de paquetes Windows)

PowerShell 7 — si usás Scoop
# Agregar el bucket de Gentleman Programming
scoop bucket add gentleman https://github.com/Gentleman-Programming/scoop-bucket

# Instalar gentle-ai
scoop install gentle-ai

# Verificar
gentle-ai --version

Option B — Scoop (Windows package manager)

PowerShell 7 — if you use Scoop
# Add the Gentleman Programming bucket
scoop bucket add gentleman https://github.com/Gentleman-Programming/scoop-bucket

# Install gentle-ai
scoop install gentle-ai

# Verify
gentle-ai --version

Opción C — Go install (siempre el latest, si tenés Go 1.24+)

PowerShell 7 — requiere Go instalado
# Instalar Go 1.24+ primero si no lo tenés
winget install --id GoLang.Go -e

# Compilar e instalar desde fuente (garantiza el latest)
go install github.com/gentleman-programming/gentle-ai/cmd/gentle-ai@latest

# El binario queda en: C:\Users\TuUsuario\go\bin\gentle-ai.exe
# Verificar
gentle-ai --version

Option C — Go install (always latest, if you have Go 1.24+)

PowerShell 7 — requires Go installed
# Install Go 1.24+ first if you don't have it
winget install --id GoLang.Go -e

# Compile and install from source (guarantees latest)
go install github.com/gentleman-programming/gentle-ai/cmd/gentle-ai@latest

# Binary goes to: C:\Users\YourUser\go\bin\gentle-ai.exe
# Verify
gentle-ai --version
gentle-ai es un binario estático — cero dependencias en runtime
gentle-ai is a static binary — zero runtime dependencies

Una vez instalado, el binario funciona solo. Sin Python, sin Node.js, sin Docker, sin ningún runtime adicional. Solo el ejecutable gentle-ai.exe de ~10MB.

Once installed, the binary works on its own. No Python, no Node.js, no Docker, no additional runtime. Just the gentle-ai.exe executable of ~10MB.



3
Configurar Gentle-AI para Kimi Code
Configure Gentle-AI for Kimi Code
Detección automática del agente · Un solo comando para configurar todo
Automatic agent detection · One command to set everything up
🔍
Detección automática de Kimi Code
Automatic Kimi Code detection

Gentle-AI detecta Kimi Code automáticamente buscando el directorio de configuración ~/.kimi y el binario kimi en el PATH. Si ambos existen, el agente "kimi" aparece disponible en el instalador.

Importante: Kimi Code CLI debe estar instalado y con /login completado antes de correr gentle-ai install.

Gentle-AI detects Kimi Code automatically by looking for the configuration directory ~/.kimi and the kimi binary in PATH. If both exist, the "kimi" agent appears available in the installer.

Important: Kimi Code CLI must be installed and /login completed before running gentle-ai install.

Instalación del ecosistema para Kimi

PowerShell 7
# Opción A — TUI interactivo (recomendado para primera vez)
# Abre un menú visual donde elegís "kimi" como agente y seleccionás los componentes
gentle-ai install

# Opción B — Instalación directa para Kimi Code
gentle-ai install --agent kimi

# Opción C — Con componentes específicos
gentle-ai install --agent kimi --component engram --component context7 --component gga

# Verificar qué agentes detectó gentle-ai
gentle-ai agents list

Install the ecosystem for Kimi

PowerShell 7
# Option A — Interactive TUI (recommended for first time)
# Opens a visual menu where you choose "kimi" as the agent and select components
gentle-ai install

# Option B — Direct installation for Kimi Code
gentle-ai install --agent kimi

# Option C — With specific components
gentle-ai install --agent kimi --component engram --component context7 --component gga

# Verify which agents gentle-ai detected
gentle-ai agents list

Qué crea gentle-ai en tu sistema para Kimi

# Archivo de agente principal — define el comportamiento del Gentleman
C:\Users\TuUsuario\.kimi\agents\gentleman.yaml

# Prompt principal del agente (Jinja template)
C:\Users\TuUsuario\.kimi\KIMI.md
# Incluye: persona.md, output-style.md, engram-protocol.md, sdd-orchestrator.md

# Base de datos de memoria persistente
C:\Users\TuUsuario\.engram\engram.db

# Config MCP — Context7 y otros servidores
C:\Users\TuUsuario\.kimi\mcp.json

# Git hook para GGA (code review automático)
# Se instala en: .git/hooks/pre-commit (dentro de cada proyecto)

What gentle-ai creates on your system for Kimi

# Main agent file — defines the Gentleman's behavior
C:\Users\YourUser\.kimi\agents\gentleman.yaml

# Main agent prompt (Jinja template)
C:\Users\YourUser\.kimi\KIMI.md
# Includes: persona.md, output-style.md, engram-protocol.md, sdd-orchestrator.md

# Persistent memory database
C:\Users\YourUser\.engram\engram.db

# MCP config — Context7 and other servers
C:\Users\YourUser\.kimi\mcp.json

# Git hook for GGA (automatic code review)
# Installed at: .git/hooks/pre-commit (inside each project)

Iniciar Kimi Code con el agente Gentleman

PowerShell 7 — dentro de tu proyecto
# Opción A — Cargar el agente gentleman directamente
kimi --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"

# Opción B — Configurar el agente como default en config.toml
# Editar C:\Users\TuUsuario\.kimi\config.toml y agregar:
# [agent]
# default_agent_file = "C:/Users/TuUsuario/.kimi/agents/gentleman.yaml"

# Luego simplemente:
kimi

# Opción C — Con modo thinking activado desde el inicio
kimi --thinking --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"

Start Kimi Code with the Gentleman agent

PowerShell 7 — inside your project
# Option A — Load the gentleman agent directly
kimi --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"

# Option B — Set the agent as default in config.toml
# Edit C:\Users\YourUser\.kimi\config.toml and add:
# [agent]
# default_agent_file = "C:/Users/YourUser/.kimi/agents/gentleman.yaml"

# Then simply:
kimi

# Option C — With thinking mode enabled from the start
kimi --thinking --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"
Crear un alias en PowerShell para simplificar
Create a PowerShell alias to simplify

Podés agregar un alias en tu perfil de PowerShell para no escribir el flag --agent-file siempre:

notepad $PROFILE → agregar: Set-Alias kimg "kimi --agent-file $env:USERPROFILE\.kimi\agents\gentleman.yaml"

Luego simplemente usás kimg en cualquier proyecto.

You can add an alias in your PowerShell profile so you don't have to type the --agent-file flag every time:

notepad $PROFILE → add: Set-Alias kimg "kimi --agent-file $env:USERPROFILE\.kimi\agents\gentleman.yaml"

Then simply use kimg in any project.



4
Inicializar un proyecto de programación
Initialize a programming project
Registrar contexto + iniciar el workflow SDD
Register context + start the SDD workflow

Paso 1 — Preparar el proyecto (Git requerido)

PowerShell 7 — en la raíz del proyecto
# El proyecto debe estar en git (requerido por Engram)
git init
git add .
git commit -m "init"

# Engram ya fue configurado automáticamente por gentle-ai install
# Verificar que Engram reconoce el proyecto
engram projects list

Step 1 — Prepare the project (Git required)

PowerShell 7 — at the project root
# Project must be in git (required by Engram)
git init
git add .
git commit -m "init"

# Engram was already configured automatically by gentle-ai install
# Verify that Engram recognizes the project
engram projects list

Paso 2 — Inicializar el contexto con Kimi

Kimi Code CLI — dentro del agente
# Abrir Kimi con el agente Gentleman en el proyecto
kimi --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"

# Analizar el proyecto y generar AGENTS.md (si no existe)
/init

# Iniciar el workflow SDD — detecta stack, testing, activa contexto
/sdd-init

# Escanea skills instaladas y convenciones del proyecto
skill-registry

# Verificar que Engram registró el contexto
engram search "proyecto"   # desde otra terminal

Step 2 — Initialize context with Kimi

Kimi Code CLI — inside the agent
# Open Kimi with the Gentleman agent in the project
kimi --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"

# Analyze the project and generate AGENTS.md (if it doesn't exist)
/init

# Start the SDD workflow — detects stack, testing, activates context
/sdd-init

# Scan installed skills and project conventions
skill-registry

# Verify that Engram registered the context
engram search "project"   # from another terminal

Workflow SDD — las 9 fases en la práctica

fase 01
Explore
Lectura del codebase, entender arquitectura actual
fase 02
Propose
Kimi propone el approach antes de codear
fase 03
Spec
Especificación técnica detallada, guardada en Engram
fase 04
Design
Arquitectura de la solución, interfaces, tipos
fase 05
Apply
Implementación con aprobación por cambio
fase 06
Test
Kimi corre los tests y arregla los fallos
fase 07
Review
GGA hace code review automático vía git hook
fase 08
Verify
Verificación de que todo cumple la spec original
fase 09
Archive
Persistir decisiones y contexto en Engram

SDD Workflow — the 9 phases in practice

phase 01
Explore
Read the codebase, understand current architecture
phase 02
Propose
Kimi proposes the approach before coding
phase 03
Spec
Detailed technical specification, saved in Engram
phase 04
Design
Solution architecture, interfaces, types
phase 05
Apply
Implementation with per-change approval
phase 06
Test
Kimi runs tests and fixes failures
phase 07
Review
GGA runs automatic code review via git hook
phase 08
Verify
Verify everything meets the original spec
phase 09
Archive
Persist decisions and context in Engram


5
Uso en un proyecto de programación real
Use in a real programming project
Prompts efectivos · MCP · Modo Thinking · Contexto de 256K
Effective prompts · MCP · Thinking Mode · 256K context

Prompts efectivos para el agente Gentleman

Ejemplos de prompts que activan el ecosistema completo

Kimi Code CLI — con el agente Gentleman activo
# Iniciar una nueva feature con SDD completo
Necesito implementar autenticación JWT en el backend de FastAPI.
Seguí el workflow SDD y recordá guardar las decisiones en Engram.

# Explorar y entender el codebase existente
Analizá el proyecto completo y contame la arquitectura actual.
Después guardá el resumen en Engram para sesiones futuras.

# Bug fix con razonamiento profundo (iniciar con --thinking)
# O usa: kimi --thinking --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"
El endpoint /api/users devuelve 500 esporádicamente bajo carga.
Analizá los logs, reproducí el problema y proponé una solución.

# Refactor multi-archivo aprovechando los 256K de contexto
Necesito migrar de Context API a Zustand en toda la app React.
Lee todos los archivos relevantes y proponé el plan antes de cambiar nada.

# Verificar documentación actualizada con Context7
Estoy usando Next.js 15.2. Consultá Context7 para ver las últimas APIs
de Server Components y aplicalas correctamente en el proyecto.

# Usar una skill del ecosistema Gentleman
/skill:typescript-strict   # aplica patrones TypeScript estrictos
/skill:react-patterns      # mejores prácticas React 19

Effective prompts for the Gentleman agent

Example prompts that activate the full ecosystem

Kimi Code CLI — with Gentleman agent active
# Start a new feature with full SDD
I need to implement JWT authentication in the FastAPI backend.
Follow the SDD workflow and remember to save decisions in Engram.

# Explore and understand the existing codebase
Analyze the entire project and tell me the current architecture.
Then save the summary in Engram for future sessions.

# Bug fix with deep reasoning (start with --thinking)
# Or use: kimi --thinking --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"
The /api/users endpoint returns 500 sporadically under load.
Analyze the logs, reproduce the issue, and propose a solution.

# Multi-file refactor leveraging 256K context
I need to migrate from Context API to Zustand across the entire React app.
Read all relevant files and propose the plan before changing anything.

# Check updated documentation with Context7
I'm using Next.js 15.2. Query Context7 for the latest Server Components APIs
and apply them correctly in the project.

# Use a skill from the Gentleman ecosystem
/skill:typescript-strict   # applies strict TypeScript patterns
/skill:react-patterns      # React 19 best practices

Gestión de sesiones y contexto largo

# Ver sesiones activas
/sessions

# Reanudar sesión anterior (desde el mismo directorio, Kimi pregunta automáticamente)
kimi --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"

# Comprimir el historial cuando el contexto se llena
# (preserva las decisiones clave guardadas en Engram)
/compact

# Buscar contexto previo en Engram desde la terminal
engram search "JWT"          # buscar decisiones sobre JWT
engram search "auth bug"     # buscar bugs de autenticación resueltos
engram tui                    # browser visual de la memoria

Session management and long context

# View active sessions
/sessions

# Resume previous session (from the same directory, Kimi asks automatically)
kimi --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"

# Compress history when context fills up
# (preserves key decisions saved in Engram)
/compact

# Search previous context in Engram from the terminal
engram search "JWT"          # search decisions about JWT
engram search "auth bug"     # search resolved authentication bugs
engram tui                    # visual memory browser

Integrar MCP servers adicionales con Kimi

PowerShell 7 — gestionar MCP servers
# Gestionar MCP servers (interactivo — lista, conecta, desconecta)
kimi mcp

# Dentro de una sesión de Kimi, ver MCP servers conectados
/mcp

# El mcp.json generado por gentle-ai ya incluye Context7
# Para agregar servers adicionales, editar directamente:
# C:\Users\TuUsuario\.kimi\mcp.json

# Iniciar Kimi con un archivo de config MCP específico
kimi --mcp-config-file "$env:USERPROFILE\.kimi\mcp.json" --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"

Integrate additional MCP servers with Kimi

PowerShell 7 — manage MCP servers
# Manage MCP servers (interactive — list, connect, disconnect)
kimi mcp

# Inside a Kimi session, view connected MCP servers
/mcp

# The mcp.json generated by gentle-ai already includes Context7
# To add additional servers, edit directly:
# C:\Users\YourUser\.kimi\mcp.json

# Start Kimi with a specific MCP config file
kimi --mcp-config-file "$env:USERPROFILE\.kimi\mcp.json" --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"

Modo Web UI — interfaz gráfica local

PowerShell 7
# Abrir la interfaz gráfica en el browser
kimi web

# Soporta: gestión de sesiones, referencias a archivos, highlight de código
# También puede usarse con el agente gentleman configurado como default
# Útil para revisiones visuales y pegar imágenes de diseño (UI → código)

# Kimi K2.6 soporta input multimodal — podés pegar screenshots de diseño
# y pedirle que implemente el componente React correspondiente

Web UI Mode — local graphical interface

PowerShell 7
# Open the graphical interface in the browser
kimi web

# Supports: session management, file references, code highlighting
# Can also be used with the gentleman agent set as default
# Useful for visual reviews and pasting design images (UI → code)

# Kimi K2.6 supports multimodal input — you can paste design screenshots
# and ask it to implement the corresponding React component


// antes vs después
// before vs after
Aspecto Kimi Code solo + Gentle-AI
Memoria entre sesiones ❌ Ninguna ✅ Engram persiste todo
Proceso de desarrollo Ad-hoc ✅ SDD estructurado (9 fases)
Documentación de libs Fecha de corte del modelo ✅ Tiempo real con Context7
Code review ❌ Solo si lo pedís ✅ Automático en cada commit
Onboarding al proyecto ❌ Explicás todo de nuevo ✅ Kimi ya conoce el proyecto
Persona del agente Ejecutor sin criterio ✅ Mentor que enseña y objeta
Contexto ✅ 256K tokens (ventaja nativa) ✅ 256K + Engram para persistencia
Velocidad de respuesta ✅ ~100 tokens/s (ventaja nativa) ✅ Igual de rápido
Aspect Kimi Code alone + Gentle-AI
Memory across sessions ❌ None ✅ Engram persists everything
Development process Ad-hoc ✅ Structured SDD (9 phases)
Library docs Model cutoff date ✅ Real-time with Context7
Code review ❌ Only if you ask ✅ Automatic on every commit
Project onboarding ❌ Explain everything again ✅ Kimi already knows the project
Agent persona Executor without judgment ✅ Mentor that teaches and objects
Context ✅ 256K tokens (native advantage) ✅ 256K + Engram for persistence
Response speed ✅ ~100 tokens/s (native advantage) ✅ Just as fast


Troubleshooting en Windows 11
Troubleshooting on Windows 11
Problemas comunes y sus soluciones
Common problems and their solutions
Problema Causa Solución
kimi no se reconoce como comando El directorio bin de uv no está en PATH Ejecutar uv tool bin-path para ver la ruta, luego agregarla al PATH de usuario en Variables de Entorno.
gentle-ai no se reconoce Binario no en PATH Con PowerShell installer: cerrar y reabrir PowerShell. Con Scoop: scoop reset gentle-ai. Con go install: verificar que C:\Users\TuUsuario\go\bin está en PATH.
gentle-ai install no detecta kimi ~/.kimi no existe o kimi no está en PATH Completar primero la instalación de Kimi Code CLI y ejecutar /login. El directorio ~/.kimi se crea al primer login.
/login no abre el browser Firewall o configuración del browser predeterminado Copiar la URL que aparece en el terminal y pegarla manualmente en el browser. La auth se completa igual.
Error de Python version uv no encontró Python 3.12+ Ejecutar uv python install 3.13 para que uv descargue Python por su cuenta. No requiere instalación manual.
Rate limit en ventana de 5 horas Demasiados requests en poco tiempo Esperar que se recupere la ventana. Usar /compact y /sessions para optimizar el uso de requests. Engram reduce requests repetidos al recordar contexto.
Engram no recuerda el proyecto El directorio no tiene git init git initgit add .git commit -m "init" → reabrir Kimi con el agente y ejecutar /sdd-init
Context7 no responde MCP server no configurado en kimi gentle-ai install --agent kimi --component context7 o agregar manualmente al ~/.kimi/mcp.json.
GGA no hace review al commitear Git hook no instalado en el proyecto actual gentle-ai install --agent kimi --component gga ejecutado desde la raíz del proyecto.
El agente gentleman.yaml no carga Ruta con espacios o carácter de escape en Windows Usar comillas: kimi --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"
Error de ejecución de scripts de PowerShell Política de ejecución restrictiva Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Problem Cause Solution
kimi is not recognized as a command The uv bin directory is not in PATH Run uv tool bin-path to see the path, then add it to the user PATH in Environment Variables.
gentle-ai is not recognized Binary not in PATH With PowerShell installer: close and reopen PowerShell. With Scoop: scoop reset gentle-ai. With go install: verify that C:\Users\YourUser\go\bin is in PATH.
gentle-ai install doesn't detect kimi ~/.kimi doesn't exist or kimi is not in PATH Complete Kimi Code CLI installation first and run /login. The ~/.kimi directory is created on first login.
/login doesn't open the browser Firewall or default browser configuration Copy the URL that appears in the terminal and paste it manually into the browser. Auth completes anyway.
Python version error uv didn't find Python 3.12+ Run uv python install 3.13 so uv downloads Python on its own. No manual installation required.
Rate limit in 5-hour window Too many requests in a short time Wait for the window to recover. Use /compact and /sessions to optimize request usage. Engram reduces repeated requests by remembering context.
Engram doesn't remember the project The directory doesn't have git init git initgit add .git commit -m "init" → reopen Kimi with the agent and run /sdd-init
Context7 doesn't respond MCP server not configured in kimi gentle-ai install --agent kimi --component context7 or add manually to ~/.kimi/mcp.json.
GGA doesn't review on commit Git hook not installed in the current project gentle-ai install --agent kimi --component gga run from the project root.
The gentleman.yaml agent doesn't load Path with spaces or escape character on Windows Use quotes: kimi --agent-file "$env:USERPROFILE\.kimi\agents\gentleman.yaml"
PowerShell script execution error Restrictive execution policy Set-ExecutionPolicy RemoteSigned -Scope CurrentUser


// cuándo usar cada modalidad
// when to use each modality
⬡ Kimi Code solo
◆ Kimi Code + Gentle-AI

  Setup en 2 pasos (install + /login)

  256K contexto listo para usar

  Modo thinking con Tab

  Web UI incluida

  Soporte multimodal (imágenes, video)

  Sin memoria entre sesiones

  Sin workflow estructurado

  Ideal para tareas rápidas y one-off

  2-step setup (install + /login)

  256K context ready to use

  Thinking mode with Tab

  Web UI included

  Multimodal support (images, video)

  No memory between sessions

  No structured workflow

  Ideal for quick and one-off tasks

  Setup en 4 pasos (install + login + gentle-ai + init)

  256K contexto + Engram para persistencia ilimitada

  SDD workflow de 9 fases

  Context7 · docs actualizadas en tiempo real

  GGA · code review automático

  Engram · nunca perdés contexto entre sesiones

  Recomendado para proyectos serios

  4-step setup (install + login + gentle-ai + init)

  256K context + Engram for unlimited persistence

  9-phase SDD workflow

  Context7 · real-time updated docs

  GGA · automatic code review

  Engram · never lose context between sessions

  Recommended for serious projects

💡
Conclusión clara
Clear conclusion

Para proyectos de programación profesional donde trabajás en el mismo codebase durante días o semanas: Kimi Code + gentle-ai es la combinación correcta. El 256K de contexto de Kimi maneja proyectos grandes, y Engram garantiza que ese contexto persiste entre sesiones sin que tengas que repetir nada.

For professional programming projects where you work on the same codebase for days or weeks: Kimi Code + gentle-ai is the right combination. Kimi's 256K context handles large projects, and Engram ensures that context persists between sessions without you having to repeat anything.