gentle-ai README

The project's README from github.com/Gentleman-Programming/gentle-ai. As one markdown file: README.md.

Gentle-AI neon rose banner

Gentle-AI™

Turn the AI coding agent you already use into a configured engineering environment.

Release License: MIT Go 1.25.10+ Platform

Website • Wiki • Engram

Star History Chart

Quick start

First time here? Follow Install for prerequisites and the platform-specific binary command, then:

# Pick your agents, components and persona
gentle-ai

# Verify the installation
gentle-ai doctor
Table of contents

What is Gentle-AI?

You installed Claude Code, OpenCode, Cursor or Codex. It writes code — but it forgets everything between sessions, has no opinion about how your project works, and gives you no way to check its work beyond reading every line yourself.

Gentle-AI is an ecosystem configurator. It takes the agent runtime already on your machine and equips it with persistent memory, a planning workflow, a curated skill library, MCP tool servers, model routing, a teaching-oriented persona, and an optional evidence-based review step.

Before

"I installed an AI agent, but it's just a chatbot that writes code."

After

The agent remembers your decisions, follows your project's conventions, picks a working style that matches the size of the task, and can produce reviewable evidence for what it changed.

Who it's for

What it is not

[!IMPORTANT] Gentle-AI never installs an AI agent for you. It configures runtimes that are already present. If you select an agent it cannot detect, it refuses and prints the exact command you'd run yourself — it will not silently install software on your machine.

Back to top

What you get

Gentle-AI installs a set of components. You pick them individually, or take a preset.

Engram™ · Recommended

Persistent memory across sessions — decisions, bug fixes, and context survive restarts.

Skills · Recommended

A curated library of coding skills the agent loads when the task matches.

Persona · Optional

A teaching-oriented voice (Gentleman or neutral), or your own custom persona.

SDD · Optional

Spec-Driven Development — a planning workflow for substantial features.

Context7 · Optional

An MCP server that fetches live framework and library documentation.

Permissions · Optional

Security-first guardrails, including a deny list for ~/.ssh, .env, and credential files.

GGA · Optional

Gentleman Guardian Angel — an AI provider switcher.

Theme · Optional

Selectable Gentleman and Gentleman-Cute themes for Claude Code and OpenCode.

Presets bundle these for you

Preset Includes
Dev Stack + Polish full-gentleman Every component and every skill
Dev Stack ecosystem-only Engram, SDD, Skills, Context7, GGA + all skills
Memory Only minimal Engram and SDD skills
Custom You choose; existing persona and settings stay untouched

Full breakdown: Components, Skills & Presets.

Back to top

Which agents it works with

Gentle-AI configures each agent using that agent's own native features, so capabilities differ. Delegation model tells you whether the agent can hand work to focused sub-agents or runs everything in one conversation.

Full delegation can hand work to focused sub-agents

Agent Mechanism Key feature
Claude Code Task tool Sub-agents, output styles
OpenCode Multi-mode overlay Per-phase model routing
Kilo Code Multi-mode overlay OpenCode-compatible config in ~/.config/kilo
Gemini CLI Experimental Custom agents in ~/.gemini/agents/
Cursor Native subagents 10 SDD agents in ~/.cursor/agents/
VS Code Copilot runSubagent Parallel execution
Codex Native multi-agent CLI-native TOML config; enabled by default with solo-agent fallback
Antigravity Dynamic subagents Mission Control uses define_subagent + invoke_subagent for SDD phases
Kimi Code Native custom agents Modular prompt templates in ~/.kimi
Kiro IDE Native subagents Native ~/.kiro/agents/ + steering orchestration
Qwen Code Native sub-agents Slash commands, ~/.qwen/commands/, auto_edit mode
Pi Package-managed subagents First-class gentle-pi harness with Pi-native persona/models, SDD, and Engram memory
Hermes delegate_task Ephemeral fresh-context workers; YAML MCP config and SOUL.md persona

Solo-agent runs everything in one conversation

Agent Key feature
Windsurf Plan Mode, Code Mode, native workflows
OpenClaw Workspace-first AGENTS.md / SOUL.md with global MCP config
Trae Desktop app by ByteDance; ~/.trae/skills/ + OS-specific rules

Hermes must be installed manually first. Gentle-AI detects and configures the existing runtime; it does not install Hermes.

[!NOTE] Pi is package-managed, not just configured. Selecting Pi installs the first-class gentle-pi harness, which owns Pi-native persona and model controls, SDD assets, chains, and memory wiring.

[!NOTE] This project supersedes Agent Teams Lite (now archived). Everything ATL provided is included here with better installation, automatic updates, and persistent memory.

Per-agent details and the complete feature matrix: Agents.

Back to top

Install

Step 1 — Check prerequisites

Requirement Why
Node.js 18+ and npm Required by gentle-ai install on every platform. It warns if either is missing and prints a distro-specific hint — it does not install them for you.
Git 2.38+ Used for project detection and review scoping.
Go 1.25.10+ Required on Windows, and anywhere you install from source.
Your AI agent Already installed and on your PATH. Gentle-AI configures it; it does not install it.

Per-distro hints: Prerequisites.

Step 2 — Install the binary

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/Gentleman-Programming/gentle-ai/main/scripts/install.sh | bash

Windows (PowerShell)

go install github.com/gentleman-programming/gentle-ai/v2/cmd/gentle-ai@latest

[!WARNING] On Windows, install from source — this is the supported path. Windows is a fully tested platform — the complete suite runs on its CI lane — but official Windows binary distribution and Scoop are unavailable. Windows installation and upgrades require Go 1.25.10+ and fail closed to source-install guidance; they never download an unsigned Gentle AI executable or execute a remote update script.

Expected result: gentle-ai version prints a version number.

Step 3 — Configure your agents

Launch the interactive TUI:

gentle-ai

Select your agent(s), your components (or a preset), and your persona.

Expected result: Gentle-AI writes config files into each selected agent's global config directory — system prompts, skills, SDD agents, persona files and MCP entries. Your previous configs are snapshotted first (see Backups).

Step 4 — Verify

gentle-ai doctor

Expected result: a read-only health report covering tool binaries, state.json, Engram reachability and disk space. It also classifies broken managed paths — dangling ancestor symlinks, config symlink loops and unreadable managed files. Nothing is modified. Run this any time something looks wrong.

You are now ready to use your agent normally.

Back to top

How your agent decides how to work

This is the core idea, and it applies to every configured agent — even if you never enable SDD or review.

You ask for an outcome. The agent picks the smallest route that gets there. It does not escalate ceremony because a task "feels big".

Situation What the agent does
Understanding needs 1–3 files, or one mechanical change is already understood Direct inline — just does the work
Understanding needs 4+ files, reading prepares a write, broad research is needed, or 2+ non-trivial files change Delegated direct — one narrow explorer or one focused writer, no extra artifacts
Durable proposal, spec, design and task artifacts would materially reduce real ambiguity Offers optional SDD — selected only after you ask or accept the proposal
Commit, push, PR, or release Follows ordinary repository policy

Three rules worth internalizing:

Deep dive: Organic Implementation Routing.

Back to top

Optional: Spec-Driven Development (SDD)

What it is

SDD is a planning workflow for substantial features. Instead of jumping straight into code, the agent explores the codebase, proposes an approach you approve, writes requirements, designs the architecture, breaks it into ordered tasks, implements, then independently verifies the result against what was agreed.

When you'd want it

When the work is ambiguous enough that durable written artifacts — a proposal, a spec, a design, a task list — would genuinely reduce that ambiguity. For a bug fix or a small feature, it's overhead.

How you use it

You don't learn the phases. Say "use SDD" and the agent starts the workflow, or accept it when the agent offers. You review and approve at the decision points.

[!NOTE] In Claude Code, every SDD command uses the /gentle-sdd-* prefix — for example, /gentle-sdd-new and /gentle-sdd-continue. Other runtimes keep the bare /sdd-* names.

Where the artifacts live

SDD artifacts can live in three places, chosen at install time:

Store Best for
Engram Cross-session memory, no files in the repo
OpenSpec Versioned files committed alongside your code
Hybrid Both

The store you declare is authoritative: phase agents are handed the locations to read and never guess where artifacts live.

Good to know

How the SDD cycle works internally
flowchart TD
    A["User: sdd-new / sdd-explore<br/>(gentle-sdd-* in Claude Code)"] --> B["Explore<br/>investigate codebase and approaches"]
    B --> BR{"External research<br/>selected?"}
    BR -->|"yes"| BX["Research<br/>auditable external evidence<br/>exact grant · source mappings"]
    BR -->|"no"| C["Propose<br/>intent · scope · approach"]
    BX --> C
    C --> D{"User approves<br/>the proposal?"}
    D -->|"no"| B
    D -->|"yes"| E["Spec<br/>requirements + scenarios"]
    E --> F["Design<br/>architecture decisions"]
    F --> G["Tasks<br/>ordered deliverable checklist"]
    G --> H["Apply<br/>sub-agent implements against specs<br/>(sdd-attempt acquire/settle · CAS · budgets)"]
    H --> Q["Verify<br/>independent verification against<br/>spec · design · tasks"]
    Q -->|"passes"| R["Archive<br/>merge delta-specs · close the cycle"]
    Q -->|"fails"| H
    Q -.->|"optional, informational"| I["RDD review offer"]

    subgraph RDD["RDD — same machine as the organic route"]
        I --> J{"Risk"}
        J -->|"low"| K["Structural readback"]
        J -->|"medium / high"| L["1 lens or 4R + consent"]
        L --> M{"Severe findings?"}
        M -->|"yes"| N["One bounded correction<br/>+ fix validator"]
        M -->|"no"| O["Review outcome: approved<br/>(informational)"]
        K --> O
        N -->|"validates"| O
        N -->|"fails"| P["Escalated → recover"]
        O --> AK["review.acknowledge-approved<br/>only the exact acknowledgement<br/>burns/closes the lineage"]
    end

    R --> S["Ordinary repository policy"]
    S --> T["Commit → Push → PR"]

    style O fill:#2D4F67,color:#fff
    style P fill:#B8860B,color:#fff
    style T fill:#2D4F67,color:#fff

Reference: Intended Usage and OpenSpec Config.

Back to top

Optional: Receipt-Driven Development (RDD)

[!IMPORTANT] RDD is opt-in and off by default. Nothing below happens until you run gentle-ai review mode enable --scope global.

The problem it solves

An agent tells you "I fixed it and the tests pass." You have no way to check that claim except reading the whole diff yourself. RDD replaces agent narration with evidence the system can derive independently.

The vocabulary

You need six terms. Each builds on the last:

Term Meaning
Candidate The exact set of bytes being reviewed — one specific change, nothing else
Freeze Locking those bytes at the start, so reviewers and the code can't drift apart mid-review
Lens One focused reviewer perspective. The four canonical ones are Risk, Resilience, Readability and Reliability ("4R")
Correction At most one bounded round of fixes for severe findings — there is no loop-until-clean
Outcome The result of the review. It is informational: it records evidence, it does not authorize or block anything
Acknowledgement The explicit confirmation that your agent received the outcome. Until it runs, the review is approved but not finished

What it actually does

Once implementation finishes, RDD freezes the candidate and picks review effort from evidence, not from size:

Risk (frozen at start) Review performed
Low Structural readback — 0 lenses, silent. A passive documentation change is approved right at the start
Medium 1 focus lens, with consent
High All four lenses (4R), with consent and a

gentle-ai (Gentleman-Programming/gentle-ai)

Searching Database…

这是什么?Gentle-AI 会为你已经安装的 AI 编程助手(Claude Code、Cursor、OpenCode、Codex、Pi 等)进行配置,添加持久化记忆、精选技能库、MCP 工具服务器、面向教学的角色设定,以及可选的基于证据的审查步骤。
它本身是另一个 AI 编程助手吗?不是——它从不为你安装或运行助手。它是一个 CLI/TUI 配置工具,会检测你电脑上已有的助手运行环境,并把配置文件写入其中。
我该如何让它运行起来?安装 Node.js 18+/npm 和 Git 2.38+,再安装 gentle-ai 二进制文件(macOS/Linux 使用直接命令,Windows 则从源码构建),然后启动交互式 TUI,选择你的助手、组件或预设,以及角色设定。
使用它是否需要安装 Go?你始终需要 Node.js 18+、npm 和 Git 2.38+;只有在 Windows 或其他从源码构建的情况下,才需要 Go 1.25.10+。
现在 Windows 版的安装可以直接使用了吗?目前还没有预编译的 Windows 二进制文件,也没有 Scoop 软件包——Windows 用户必须用 Go 从源码构建,尽管 Windows 在 CI 中已经经过完整测试。
在每个支持的助手上,它的工作方式都一样吗?不一样——不同助手的功能有所差异。Claude Code、OpenCode、Cursor、Codex 等支持完整的任务委派,可交给专注的子代理处理;而 Windsurf 和 Trae 等则在同一个对话中完成所有工作。
什么是 Engram?Engram 是 Gentle-AI 的持久化记忆组件,它会跨会话保存决策、Bug 修复和上下文信息,让助手不必每次都从零开始。
什么是规范驱动开发(SDD)?SDD 是一种可选的规划流程,适用于较大的功能开发:助手会先探索代码库,提出实现方案,编写需求和设计,将工作拆分为任务,然后实现,最后验证结果。只有在你提出要求或接受建议时才会启动,绝不会仅因任务规模大小而触发。
什么是凭证驱动开发(RDD)?RDD 是一种需要主动开启的审查模式,它会冻结确切的变更字节,并通过若干专项审查“视角”(风险、韧性、可读性、可靠性)进行审查,从而产出可核验的证据,而不是依赖助手对自身工作的总结。
我能否同时使用多个 AI 编程助手?可以——Gentle-AI 支持同时使用多种助手运行环境,包括 Claude Code、OpenCode、Cursor、Codex 和 Pi,无论你切换到哪个助手,都能保持一致的记忆、技能和角色设定。
Size
78.8 MB
Stars
7.8K
Age
7mo
Commits · 90 Days