Interactive slash-command workflows with questions, branches, loops, and subagent tasks.
the language
Prompts stop being loose markdown.
Stim gives prompt work the structure engineers expect: declarations, imports, variables, control flow, tasks, and target adapters. It compiles to prose, because the AI tool still reads instructions.
Portable personas with metadata and stable prompt bodies.
Reusable orchestration templates for repeatable multi-agent patterns.
Install shared command and agent kits from GitHub with one CLI call.
Raw prompts do not scale.
Source files do.try it now
A standalone binary. No runtime ceremony.
Install Stim, write one agent, and compile it for multiple tools. The same source can become a Claude agent, a Cursor rule, or a ChatGPT instruction file.
curl -fsSL https://raw.githubusercontent.com/wess/stim/main/install.sh | sh
stim version
cat > reviewer.stim <<'STIM'
agent reviewer {
description "Reviews PRs for security and correctness"
tools [Read, Grep, Bash]
"Cite specific files and line numbers."
}
STIM
stim install reviewer.stim
stim compile reviewer.stim --target chatgpt
open source
Star Stim if prompts deserve a compiler.
Built with TypeScript and Bun. MIT licensed. Small enough to read, useful enough to put in your prompt workflow today.