
"Everything should be made as simple as possible, but not simpler." — Albert Einstein
KISS Sorcar
Open-source general-purpose recursively self-evolving AI agent for long-horizon tasks and AI discovery and optimization
KISS Sorcar is a free, simple, local-first, bring-your-own-key AI agent framework. It runs as a browser/mobile web app served by a local daemon, and offers a Python client API for scripting tasks. Your prompts and code go directly to the model provider or local endpoint you configure, never through our servers. Multi-model workflows take a paragraph of prompt, not a pipeline: complex AI systems and techniques can be replaced with a paragraph of prompt in KISS Sorcar.
curl -fsSL https://raw.githubusercontent.com/ksenxx/kiss_ai/main/scripts/install.sh | bash
This README is the quick start. The detailed references are:
- FEATURES.md: the complete feature inventory, checked against the source tree.
- src/kiss/server/README.md: every
sorcar.run() option, tools, hooks, and the Sorcar Extension Agent authoring guide.
- src/kiss/agents/third_party_agents/README.md: the messaging and service agents, sign-in, and worked examples.
- MODELS.md: the full per-provider model list.
- kisssorcar.github.io/docs: installation, CLI, API, and messaging guides.
- Terminal-Bench 2.0
- What is in the Name
- Installation
- Install
- Docker
- Python package install
- Configure model access
- Using KISS Sorcar
- Web and mobile app
- The
kiss-web daemon
- Python client API
- Sorcar Extension Agents (SEAs)
- Skills, MCP servers, and customization
- Messaging & Third-Party Agents
- Models Supported
- Contributing
- License
- Citation
Terminal-Bench 2.0: KISS Sorcar vs Pi, Codex CLI, and Claude Code
The HarnessTax study (Pan, Yang, Arabzadeh, Chiang, Stoica, Zaharia; UC Berkeley and Arena Intelligence) holds the model fixed, swaps the harness between Claude Code, Codex CLI, and Pi, and finds that the harness moves cost far more than it moves what gets solved. We added KISS Sorcar to their Terminal-Bench 2.0 table under the same evaluation setup:
- Tasks and attempts: The same 30 sampled tasks across the same seven models, with three attempts per task, graded by the official Terminal-Bench 2.0 verifier.
- System prompt: Cut to 727 words of coding rules (
papers/kisssorcar/evidence/tb2_prompt.txt).
- Overall solve rate: Averaged over the seven models, KISS Sorcar solved 75.6% of attempts, compared to Pi at 70.0%, Codex CLI at 65.7%, and Claude Code at 65.1%, with the best point estimate on every model.
| Model |
KISS Sorcar solved |
$/att. |
Pi solved |
$/att. |
Codex CLI solved |
$/att. |
Claude Code solved |
$/att. |
| Claude Fable 5 |
80.0 |
1.50 |
71.1 |
1.08 |
72.2 |
0.98 |
75.6 |
1.55 |
| Claude Opus 4.8 |
74.4 |
1.21 |
72.2 |
0.76 |
72.2 |
0.85 |
68.9 |
0.90 |
| Claude Sonnet 4.6 |
76.7 |
2.23 |
65.6 |
0.61 |
63.3 |
0.55 |
62.2 |
0.67 |
| Claude Haiku 4.5 |
51.1 |
0.39 |
47.8 |
0.25 |
31.1 |
0.21 |
41.1 |
0.26 |
| GPT-5.6 Sol |
85.6 |
0.69 |
83.3 |
0.42 |
78.9 |
0.76 |
71.1 |
1.35 |
| GPT-5.6 Luna |
78.9 |
0.05 |
76.7 |
0.04 |
72.2 |
0.06 |
70.0 |
0.10 |
| Kimi K3 |
82.2 |
1.14 |
73.3 |
0.38 |
70.0 |
0.45 |
66.7 |
0.52 |
| Mean of 7 models |
75.6 |
1.03 |
70.0 |
0.51 |
65.7 |
0.55 |
65.1 |
0.77 |
- Metrics: Percentage of attempts solved and cost per attempt in USD on the study's 30-task Terminal-Bench 2.0 sample (three attempts per task). Bold marks the best point estimate per row.
- KISS Sorcar configuration: 630 attempts run on 25 September 2026, no turn cap, $50 budget per attempt, and providers' default request parameters.
- Baseline columns: Published numbers from the HarnessTax study (100-turn cap, high reasoning effort, priced on a 1 September list).
Paired Rerun Against Pi
Thirty tasks is a small sample (the pooled 95% interval, 63.8 to 85.9, contains all three published means), so we reran Pi ourselves in a paired comparison on Claude Fable 5 with no turn cap and the same price table:
- Study's 30 sampled tasks: KISS Sorcar solved 80.0% of attempts vs. Pi's 68.9%, a gap of +11.1 points (95% interval +3.3 to +20.0) for five cents more per attempt.
- 57 unsampled tasks: KISS Sorcar solved 82.5% of attempts vs. Pi's 71.9%, a gap of +10.5 points (95% interval +2.9 to +18.7) for 63 cents more per attempt.
- Scope: Only Pi was rerun, on one model. The benchmark exercises the loop, six tools, and the coding rules, with discovery procedures, memory, reviewer, and IDE features switched off.
- References and artifacts:
- Full write-up: The Harness Tax, Audited.
- Method and intervals: the paper, Section 5.
- Per-attempt records:
papers/kisssorcar/evidence/tb2_trials.json.
- Benchmark runners: Stored in the separate
benchmarkings package (a sibling checkout or KISS_BENCHMARKINGS_DIR), located by the paper scripts under papers/kisssorcar/. The repository's own benchmarkings/ folder holds only the /discover benchmarks: coral_pilot/ (setup, grader, and results of a three-task CORAL pilot: circle packing, transaction scheduling, and a VLIW SIMD kernel) and the single-pass halftoning harness in benchmarkings/halftoning/ (human-vision PSNR, ring anisotropy, Floyd-Steinberg and Zhou-Fang baselines, and a Kodak dev/held-out split).
What is in the Name
- KISS Agent Framework: A deliberately small agent runtime organized around the KISS principle ("Keep it Simple, Stupid").
- Sorcar: Pays homage to P. C. Sorcar, the legendary Bengali magician, evoking the idea of an agent that performs feats that appear magical yet are grounded in disciplined engineering. Sorcar also means government in Bengali.
Installation
Install
curl -fsSL https://raw.githubusercontent.com/ksenxx/kiss_ai/main/scripts/install.sh | bash
- One-liner workflow:
- Clones or updates
~/.kiss/kiss_ai.
- Runs
install.sh from the directory where you invoked the command so the daemon serves that directory.
- Serves your home directory instead if the command was run inside
~/.kiss or a brand's home (such as when the daemon updates itself from its own clone).
From a local checkout, run the equivalent command:
git clone https://github.com/ksenxx/kiss_ai.git && cd kiss_ai && ./install.sh
Docker
./sorcar-docker [PORT] [--rebuild]
Python package install
Install only the Python package if you just need these components:
- The
kiss-web daemon
- The Python client API
- The messaging-agent entry points
pipx install kiss-agent-framework
# or
uv tool install kiss-agent-framework
- Python version: KISS Sorcar requires Python 3.13+.
Configure model access
Provide at least one model backend. You can set provider credentials with environment variables such as:
export ANTHROPIC_API_KEY=...
export OPENAI_API_KEY=...
export GEMINI_API_KEY=...
export OPENROUTER_API_KEY=...
Default and fast model order
The default and fast models follow the first provider with a configured credential, in the priority order below, so an installation with a key for a single provider never starts with "No model":
- Anthropic:
claude-opus-5-5 (default) and claude-sonnet-5-5 (fast).
- OpenAI:
gpt-6.1-sol-medium (default) and gpt-6-luna (fast).
- Gemini:
gemini-3.8-flash (default) and gemini-3.5-flash-lite (fast).
- OpenRouter:
openrouter/anthropic/claude-opus-5.5 (default) and openrouter/anthropic/claude-sonnet-5.5 (fast).
- Bedrock: The cheapest registered
bedrock/ ID of that Anthropic model, or else the dearest (default) or cheapest (fast) registered bedrock/ model by output price (see Amazon Bedrock below).
- Claude Code CLI:
cc/opus (default) and cc/haiku (fast).
- Codex CLI:
codex/default.
Amazon Bedrock
Claude models can also run through Amazon Bedrock:
- Model IDs:
- The catalog lists Bedrock-served Claude IDs as
bedrock/<Bedrock model or inference-profile id> (for example, bedrock/global.anthropic.claude-opus-5-5 or bedrock/us.anthropic.claude-opus-4-6-v1), including the standard -high and -max effort suffixes.
- Any other ID served by the configured region can be used directly by name.
- An ID not listed in the catalog can be typed as a model name or added under Settings -> Custom Models (name only, no endpoint), which places it in the model picker starting at the next daemon start.
- When Bedrock is the only configured provider, the default and fast models are the
global. profiles of the Anthropic default and fast models.
- Explicit credentials: Set either a Bedrock API key or an AWS access key pair, plus the AWS region:
export AWS_BEARER_TOKEN_BEDROCK=... # Bedrock API key (bearer token), or:
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...
export AWS_SESSION_TOKEN=... # temporary credentials only
export AWS_REGION=us-east-1 # default when unset
Settings: API keys
You can configure API keys, a custom model endpoint, and custom HTTP headers in the Settings panel of the web app:
Settings: Custom Models
The Custom Models section of the Settings panel registers your own models (such as a local vLLM or Ollama endpoint, or a provider model absent from the bundled catalog):
Settings: Bedrock, Claude Code, and Codex
- Bedrock section: Appears after Custom Models and holds the Bedrock API key, AWS access key pair, session token, and region.
- *Claude Code section (`cc/
models)**: Configures models that run theclaude` CLI:
- Auth status: Shows whether the
claude CLI is logged in and how it will bill (claude auth status).
- Bill my Claude subscription for cc/ models: Enabled by default.
- When on, the CLI runs without
ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN, so a claude login session on a Pro or Max plan pays for the turn instead of API tokens.
- When off, the CLI inherits the daemon's environment and an API key bills per token.
- Subscription token: Accepts an optional token from
claude setup-token (CLAUDE_CODE_OAUTH_TOKEN) for machines where nobody ran claude login.
- *Codex section (`codex/
models)**: Configures models that run thecodex` CLI:
- Login status: Shows whether the
codex CLI is logged in and how it will bill (codex login status).
- Bill my ChatGPT subscription for codex/ models: Enabled by default.
- When on, the CLI runs without
OPENAI_API_KEY or CODEX_API_KEY so it bills the logged-in ChatGPT plan; turns are refused if the CLI's saved login is an API key from codex login --with-api-key, which would bill per token anyway.
- When off,
OPENAI_API_KEY bills per token.
- Sign in with ChatGPT: Starts
codex login --device-auth on the daemon's machine and displays the URL and one-time code to enter in any browser (used to sign a headless machine in to a Plus or Pro plan).
- Codex access token: Accepts
CODEX_ACCESS_TOKEN (ChatGPT Business or Enterprise) for machines where nobody ran codex login.
How CLI models run (cc/* and codex/*)
Both CLIs are driven as plain models with their built-in tools, MCP servers, hooks, and project instructions turned off, operating with Sorcar's system prompt and tools like every other model:
Router agents
The model picker lists six bundled router agents under the Router group. These are Sorcar Extension Agents (see below), not standalone models:
autorouter:
- Runs its routing session on
claude-opus-5-5-medium (with pre-run classification off, and web tools and memory on).
- Splits a task into units with a mechanical acceptance check and dispatches them to the cheapest model tier that passes the check, escalating on failure.
- Resolves each tier as an ordered candidate list where each direct model is followed by its
openrouter/... twin, selecting the first candidate the installation can run:
- Small tier: Opens with
openrouter/z-ai/glm-5.3-flash, gpt-6-luna-xhigh, openrouter/openai/gpt-6-luna-xhigh.
- Medium tier: Opens with
openrouter/meta/muse-wonder, gemini-4-argon, openrouter/google/gemini-4-argon.
- Frontier tier: Opens with
gpt-6-astra, openrouter/openai/gpt-6-astra, claude-fable-5-2-max, its OpenRouter twin, claude-opus-5-5-max.
- Keeps guarded work, uncheckable work, and final acceptance of the whole task on the frontier tier.
- Switches its own model only at phase boundaries.
bestrouter:
- Starts every task on
claude-opus-5-5-medium, which answers simple questions and queries directly.
- Switches to
openrouter/google/gemini-4-carbon to write human-facing documents, papers, reports, and results (including the final summary).
- Switches to
claude-fable-5-2-max for all other work, including software development and analysis; a task that mainly dispatches sub-agents may dispatch, wait, and log on claude-opus-5-5-medium, while judgment steps (such as triaging a failed test run or acting on a sub-agent's failure) run on claude-fable-5-2-max.
- Runs
gpt-6-astra-xhigh to review the work of both models read-only through a non-blocking run_agent call on at most 75% of the budget.
orautorouter:
- Restricts
autorouter to the OpenRouter vendor so a single OpenRouter key runs it.
- Routes on
openrouter/anthropic/claude-opus-5.5-medium and populates its tiers only with openrouter/... models (the OpenRouter twins of autorouter's candidates, in the same order).
orbestrouter:
- Restricts
bestrouter to the OpenRouter vendor so a single OpenRouter key runs it.
- Starts on
openrouter/anthropic/claude-opus-5.5-medium, works on openrouter/anthropic/claude-fable-5.2-max, writes on openrouter/google/gemini-4-neon, and reviews with openrouter/openai/gpt-6-astra-xhigh.
ccxbestrouter:
- Runs
bestrouter on the Claude Code and Codex CLIs so a Claude subscription and a ChatGPT subscription run it without API tokens.
- Starts on
cc/claude-opus-5-5-medium, works on cc/claude-fable-5-2-max, writes on cc/claude-opus-5-5-max, and reviews with codex/gpt-6-astra-xhigh (codex/gpt-6-astra at xhigh reasoning effort).
brbestrouter:
- Runs
bestrouter on Amazon Bedrock's global cross-region inference profiles so one set of AWS credentials runs it.
- Starts on
bedrock/global.anthropic.claude-opus-5-5-medium, works and writes on bedrock/global.anthropic.claude-opus-5-5-max, and reviews with bedrock/global.anthropic.claude-fable-5-1-max.
Using KISS Sorcar
KISS Sorcar provides three client interfaces: