Non-interactive Claude Code session runner with configurable mode files for preconfigured agent runs.
- CCM score
- 62 of 100
- version
- 1.2.5
- GitHub stars
- 25
Own this plugin? Claim it
What it does
- Adds a
modes-authoringskill for writing mode files that lock in system prompts, model selection, and prompt wrappers - Covers mode files for non-interactive Claude Code sessions run through the Claude Code SDK
- Designed for developers who want repeatable, preconfigured agent runs without interactive setup
CLI tool for running Claude Code SDK sessions with configurable modes
Add marketplace
/plugin marketplace add CaptainCrouton89/crouton-kitRun it inside Claude Code once, then install the plugin below.
Install
/plugin install ai-cli@crouton-kitRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceWriting ai-cli Modes
Modes are markdown files that configure non-interactive Claude Code sessions via the Agent SDK. Each mode defines a system prompt, model, and optional prompt wrapper — producing a preconfigured, fire-and-forget agent.
File Location
| Location | Scope | Precedence |
|---|---|---|
.claude/.ai/modes/<name>.md | Project-local | Wins over built-in |
ai-cli/modes/<name>.md | Built-in (bundled) | Fallback |
Required Frontmatter
---
model: opus
system-prompt-mode: append
---
| Field | Required | Values | Default |
|---|---|---|---|
model | Yes | Any valid model ID | — |
system-prompt-mode | No | append, replace | append |
append— mode's system prompt is appended to the default Claude Code system prompt. The agent retains all standard capabilities.replace— mode's system prompt completely replaces the default. Use for fully custom agent personas.
Body: System Prompt
Everything after the frontmatter (before ## Prompt Wrapper if present) becomes the system prompt content.
---
model: claude-sonnet-4-5-20250929
system-prompt-mode: append
---
You are a security auditor. Report vulnerabilities only — never edit code.
Focus on: injection, auth bypass, data exposure, SSRF.
Prompt Wrapper (Optional)
A ## Prompt Wrapper heading defines a template applied to the user's -p argument. Use {{prompt}} as the placeholder.
---
model: opus
system-prompt-mode: append
---
You are a systematic debugger. Investigate only — no code changes.
## Prompt Wrapper
Debug the following issue. Diagnose root cause — don't fix.
Issue description:
{{prompt}}
Without a prompt wrapper, the -p argument is passed directly as the user prompt.
Usage
# Built-in mode
ai -m review -p "src/auth/"
# Project-local mode
ai -m security-audit -p "check the API layer"
# List all available modes (built-in + local)
ai -l
Design Principles
- Constraints over procedures — tell the agent what to focus on and what not to do, not step-by-step instructions
- Pick the right model — haiku/sonnet for cheap triage, opus for deep analysis
appendfor most modes — the agent keeps Claude Code's full toolset; you're just narrowing its focusreplacesparingly — only when you need a completely custom persona- Prompt wrappers for structure — frame the user's input when the mode expects a specific format
Examples: Built-in Modes
general— sonnet, append, no wrapper. Minimal: "direct, efficient assistant"debug— opus, append, wrapper frames input as "Issue description". Multi-phase methodology in system prompt.review— opus, append, wrapper frames input as review target. Detailed concern taxonomy in system prompt.
Composability
Modes are callable from hooks, scripts, and other tools:
# In a pre-commit hook
ai -m validate-commit -p "$(git diff --cached)"
# In a CI script
ai -m review -p "$(git diff origin/main...HEAD)"
From the CaptainCrouton89/crouton-kit README
crouton-kit — a Claude Code plugin marketplace: slash commands, agents, hooks and skills for development workflows
crouton-kit is a marketplace of plugins for Claude Code. The registry is .claude-plugin/marketplace.json, and each plugin is a directory under plugins/. A plugin is made of slash commands, background agents, auto-applied rules, lifecycle hooks and skills, in whatever mix it needs.
The plugins cover day-to-day development work: committing and opening pull requests (git-smart), code review and debugging (devcore), a requirements-to-review feature workflow (rpi), frontend design (web), Linear issues (linear), and guides for writing Claude Code artifacts such as hooks, rules and skills (authoring). A few wrap other Crouton Labs tools: crtr routes slash commands to the crouter CLI, grove manages parallel project instances, capture takes screenshots and HAR files through the Chrome DevTools Protocol, and humanloop covers the hl decision TUI and termrender.
Install
Inside Claude Code, add the marketplace, then install the plugins you want:
/plugin marketplace add crouton-labs/crouton-kit
/plugin install git-smart@crouton-kit
Commands are namespaced by plugin, so the one above gives you /git-smart:commit, /git-smart:pr, /git-smart:push, /git-smart:rebase and /git-smart:save. After the marketplace updates, run /reload-plugins to pick up the new version.
Some plugins need tools outside Claude Code. crtr needs the crtr binary on your PATH, and ai-cli runs a bundled script that calls the Claude Code SDK (see below). Each plugin's plugin.json says what it requires.
Plugins
| Plugin | What it does |
|---|---|
devcore | Core development agents and code quality hooks |
git-smart | Smart git commits with security and quality review |
rpi | Feature development workflow: arch → plan → implement → review → fix |
learn | Interactive commands to help you understand code |
knowledge-capture | Requirements gathering, interviews, and learning commands |
dev-utilities | Developer utilities (notifications, command creation) |
web | Web development tools including frontend design workflows |
hookify | Create configurable hooks from markdown rule files |
linear | Linear CLI integration: context injection, skill reference, issue management |
authoring | Guides for authoring CLAUDE.md, hooks, rules, skills, commands and scripts |
ai-cli | CLI for running Claude Code SDK sessions with configurable modes |
ai-workflow | Multi-step agent workflows: chain headless ai-cli runs with branching |
capture | App state capture (screenshots, HAR, console, logs) via CDP |
social | X (Twitter) posting, engagement and growth tools |
humanloop | Human-in-the-loop decision TUI (hl) and terminal rendering (termrender) |
grove | Manage parallel project instances: plant, adopt, uproot, monitor |
crtr | Routing-only slash commands that bridge Claude Code to the crtr CLI |
Develop
git clone git@github.com:crouton-labs/crouton-kit.git
cd crouton-kit
claude --plugin-dir ./plugins/devcore --plugin-dir ./plugins/web # load plugins from the checkout
A new plugin needs two files: plugins/<name>/.claude-plugin/plugin.json and an entry for it in .claude-plugin/marketplace.json. Without the registry entry Claude Code does not see the plugin. Do not edit versions by hand: a GitHub Actions workflow bumps the version in both files on every push to main, based on the conventional commit prefix (feat: is minor, fix: and the rest are patch, feat!: is major). The authoring guide is plugins/CLAUDE.md, and bin/new-worktree creates a sibling git worktree for a new branch.
ai-cli is the one plugin with a build step. From plugins/ai-cli/, npm run build bundles src/cli.ts into bin/ai (a built copy is committed), and node bin/ai -m <mode> -p "<prompt>" runs a Claude Code session in one of the modes in modes/*.md. node bin/ai --list shows the modes.
Details
- Marketplace
- CaptainCrouton89/crouton-kit
- Source
- plugins/ai-cli
- Category
- Community
- Keywords
- cli, sdk, modes, automation
- Listed since
- Apr 7, 2026
Questions
What does the ai-cli plugin do?
ai-cli is a CLI tool for running Claude Code SDK sessions with configurable modes. It runs a bundled script that calls the Claude Code SDK, so the ai-cli plugin needs that script's dependencies available on your machine.
Where does ai-cli rank in the CLI and Terminal category?
ai-cli ranks in the top 100 on the CLI and Terminal category page of Claude Marketplaces. Mole, cli-anything, desktop-commander, sentry-cli and shell-scripting are other plugins that lead that category.
How do I install the ai-cli plugin?
Run /plugin marketplace add CaptainCrouton89/crouton-kit inside Claude Code, then run /plugin install ai-cli@crouton-kit. The second command adds the ai-cli plugin from the crouton-kit marketplace.
Does ai-cli include a skill for writing modes?
Yes, the ai-cli plugin includes a modes-authoring skill. It guides you in writing ai-cli mode files for non-interactive Claude Code sessions, with locked-in system prompts, model selection and prompt wrappers.
More from CaptainCrouton89/crouton-kit
All 19Similar to ai-cli
More CLI & TerminalClaude CodeMCP serversteipete1.3K starsRuns Claude Code CLI as a one-shot subagent for delegating coding prompts from another MCP client.
claude-code-sdkPluginmiles990/claude-software-skills26 starsClaude Code SDK integration for AI-powered applications
cli-referenceSkillparcadei/continuous-claude-v3493 installsComprehensive reference for Claude Code CLI commands, flags, headless mode, and automation patterns with subagent definitions.
outputaiPluginanthropics/claude-plugins-official48.1K starsOutput.ai workflow development toolkit for Claude Code. Adds 5 specialist agents (planner, builder, debugger, prompt writer, quality reviewer), 40+ slash-comman
amplihackPluginrysweet/amplihack76 starsAI-powered development framework with specialized agents and automated workflows for Claude Code