Skip to content

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
View on GitHub

Own this plugin? Claim it

What it does

  • Adds a modes-authoring skill 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-kit

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install ai-cli@crouton-kit

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Writing 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

LocationScopePrecedence
.claude/.ai/modes/<name>.mdProject-localWins over built-in
ai-cli/modes/<name>.mdBuilt-in (bundled)Fallback

Required Frontmatter

---
model: opus
system-prompt-mode: append
---
FieldRequiredValuesDefault
modelYesAny valid model ID—
system-prompt-modeNoappend, replaceappend
  • 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

  1. Constraints over procedures — tell the agent what to focus on and what not to do, not step-by-step instructions
  2. Pick the right model — haiku/sonnet for cheap triage, opus for deep analysis
  3. append for most modes — the agent keeps Claude Code's full toolset; you're just narrowing its focus
  4. replace sparingly — only when you need a completely custom persona
  5. 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

plugins license

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

PluginWhat it does
devcoreCore development agents and code quality hooks
git-smartSmart git commits with security and quality review
rpiFeature development workflow: arch → plan → implement → review → fix
learnInteractive commands to help you understand code
knowledge-captureRequirements gathering, interviews, and learning commands
dev-utilitiesDeveloper utilities (notifications, command creation)
webWeb development tools including frontend design workflows
hookifyCreate configurable hooks from markdown rule files
linearLinear CLI integration: context injection, skill reference, issue management
authoringGuides for authoring CLAUDE.md, hooks, rules, skills, commands and scripts
ai-cliCLI for running Claude Code SDK sessions with configurable modes
ai-workflowMulti-step agent workflows: chain headless ai-cli runs with branching
captureApp state capture (screenshots, HAR, console, logs) via CDP
socialX (Twitter) posting, engagement and growth tools
humanloopHuman-in-the-loop decision TUI (hl) and terminal rendering (termrender)
groveManage parallel project instances: plant, adopt, uproot, monitor
crtrRouting-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 19

Similar to ai-cli

More CLI & Terminal