Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
One-shot runs of installed coding agents: Claude Code, Codex, Pi, Droid, OpenCode, and many more, selected by short alias or named profile.
Jump to setup instructionsFetched from the repository for this visit.
One-shot coding agents for scripts and pipes.
Every agent CLI has a headless mode with its own flags, its own way of taking a prompt and its
own idea of what belongs on stdout. prat puts 24 of them behind one set of flags and one
output contract: the answer on stdout, diagnostics on stderr, and an optional JSON result with
status and usage. So agents compose like any other Unix tool. Named workflows chain those runs
into sequences, parallel fan-outs and merges, including one run per item of an earlier step's
output.
Pratfall runs the agent CLIs you already have installed and logged in. It installs nothing, authenticates nothing, and leaves each agent's permission behavior as it is.
Install with Homebrew, then check which agent CLIs Pratfall finds:
brew install nielsmadan/tap/pratfall
prat doctor
Without Homebrew, install with uv and Python 3.13+:
uv tool install git+https://github.com/nielsmadan/pratfall
You need at least one installed, authenticated agent CLI. See getting started for pinning a release or running from a checkout.
Homebrew installs tab completion for bash and zsh. With uv, add
eval "$(prat completion zsh)" or eval "$(prat completion bash)" to your shell rc file; see
shell completion.
Choose an agent by name or short alias:
| Agent | Name | Alias |
|---|---|---|
| Claude Code | claude | cc |
| Codex | codex | cx |
| Gemini | gemini | gm |
| Copilot | copilot | cp |
| Cursor | cursor | cu |
| OpenCode | opencode | oc |
| Pi | pi | none |
| 17 more |
Names of four letters or fewer, such as kiro, qwen and amp, need no alias. prat list
shows your profiles, workflows and templates, and which of the 24 agents are installed; prat AGENT --help shows the settings an agent supports, and
agents and limitations has the details. Goose and Kilo are supported; kimi targets Kimi Code. Unmaintained OpenHands and
iFlow are removed. See profile migration and the
installation/test queue.
Flags go before or after the selector:
prat cx --model gpt-5.6-luna --effort low "review this change"
prat cc --file request.md --timeout 120 --progress
printf 'summarize this checkout\n' | prat gm
prat SELECTOR --help (or prat help SELECTOR) describes the selector, then lists the run
options it takes: an agent's supported settings; a profile's resolved settings, each with the
config table it came from; or a workflow's steps, with only the options a workflow run accepts. prat help alone equals prat --help, prat help CMD equals
prat CMD --help, and prat version equals prat --version. Any help form takes --json for
the page as one object (help pages).
| Parameter | Purpose |
|---|---|
--model MODEL | Select a native model. |
--effort EFFORT | Set reasoning effort. |
--fast / --no-fast | Override fast mode for Claude, Codex or Amp. |
--timeout SECONDS | Set the execution deadline; default: 3600 seconds; none or 0 turns it off. |
--cwd PATH | Choose the agent's working directory. |
-f PATH / --file PATH | Read a prompt from a UTF-8 file; - reads stdin. |
-t NAME / --template NAME | Apply a named prompt template. |
--param NAME=VALUE | Fill a prompt parameter; repeat for several. |
-e / --edit | Edit the complete prompt in VISUAL, EDITOR, or vi. |
--context PATH | Prepend a context file, or - for stdin; repeat to include several. |
-x / --extract | Return the body of the first fenced code block. |
--schema PATH | Request native JSON Schema output. |
--json | Return one JSON result with output, status, and available usage. |
--attachment PATH | Attach a native image or file. |
--add-dir PATH | Add a native workspace directory. |
--instructions TEXT / --instructions-file PATH | Append native instructions. |
--session-id ID | Set the native session id. |
--progress | Show live activity on stderr. |
--trace | Copy captured native stdout to stderr. |
--notify / --no-notify | Show or suppress the completion notification for this run. |
--dry-run | Preview the resolved invocation without launching the agent; OpenCode still runs opencode --version. |
Budgets are available through --max-budget-usd and --max-turns where the agent supports
them. Support for each setting varies by agent, and unsupported settings are
rejected rather than ignored. Native arguments go after --:
prat cx "inspect this change" -- --sandbox read-only
Tool filters restrict what an agent can call; they add no permission approvals and are not an OS sandbox. Running prompts covers every flag's rules and per-agent limits, and JSON output documents the result fields. See completion notifications for when it fires and how to configure it.
A prompt comes from text, a file, or redirected stdin. To pipe input in alongside text or
--file, add --context -: Prat puts stdin first as a context block, then the explicit prompt.
That is what makes pipelines work:
prat cc "how many Rs are in strawberry" | prat cx --context - "times 5"
prat cc -x "write a Python function that parses ISO dates" > parse.py
prat cc --schema answer.schema.json --json "summarize this project"
prat cc "review this" --context notes.md --context design.md
--prompt TEXT also passes text; text starting with a dash needs --prompt=TEXT. Save reusable
prompts as templates, where $input marks where piped input goes:
[templates.review]
prompt = "Review the following for bugs:\n\n$input"
git diff | prat cc -t review
prat list templates
A template is a prompt for any agent or profile, chosen per run with -t. A profile with a prompt is a saved task, and the way to give a workflow step a prompt.
A template or profile prompt can also take named parameters, filled by position or --param:
[profiles.remove-empty]
agent = "cc"
prompt = "Delete empty files under $folder."
prat remove-empty src
See templates, prompt parameters, context files, editor prompts, code extraction and schema output.
Save an agent and its settings under a name, then use that name like an alias:
version = 1
[profiles.simple]
agent = "codex"
model = "gpt-5.6-luna"
effort = "low"
prat simple "review this change"
prat simple --effort high "investigate this failure"
| Scope | Config file | Create an example |
|---|---|---|
| Global | ~/.config/pratfall/config.toml¹ | prat config init |
| Local | nearest .pratfile in the invocation directory or a parent | prat --config .pratfile config init |
¹ Uses $XDG_CONFIG_HOME/pratfall/config.toml when XDG_CONFIG_HOME is set to an absolute path.
A .pratfile can replace agent commands, so Prat refuses to load one until you review it and
trust its directory with prat trust [DIR]. Trust covers that directory and everything under
it, and later edits to the file keep it trusted. prat trust --list shows trusted directories
and prat trust --revoke [DIR] removes one. A file passed with --config is trusted because you
selected it.
Local configuration merges over global, and a local profile replaces a global one of the same
name. Settings resolve in this order: command-line flags → profile → its extends chain → local
defaults → global defaults. Use extends to share backend-specific settings through a base
profile:
[profiles.claude-base]
agent = "claude"
native_args = ["--tools=Read,Edit,Bash"]
[profiles.weekly]
extends = "claude-base"
model = "claude-opus-5"
A child profile that extends a profile with a prompt and sets a different agent reuses that
prompt, so one saved task runs on several agents.
prat list profiles shows one row per profile, prat help NAME its resolved settings, and
prat config validate checks them. See
profiles and configuration for defaults, command wrappers and merging
rules.
A workflow is a named set of profile steps. Steps run in order, or in parallel when they do not
depend on each other, and an after list sends their outputs downstream:
[workflows.review-all]
steps = [
{ name = "scan", profile = "simple" },
{ name = "security", profile = "security-check", after = ["scan"] },
{ name = "style", profile = "style-check", after = ["scan"] },
{ name = "report", profile = "write-report", after = ["security", "style"] },
]
git diff | prat review-all
Each profile names a profile from your config. security and style run in parallel after
scan, and report receives both outputs. Run prat list workflows to list them. See
workflows for parameters, bind, failure behavior and JSON output. A
step can also run once per line or JSON element of an earlier step's output with
each; max_parallel sets how many items run at
once, and the rest wait their turn.
GitHub checked 207h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.