Wisp
A terminal coding agent you can steer while it works.
It asks before it edits files or runs commands, and records every step it takes.
Documentation · Install · Quickstart · Python SDK · Changelog
Wisp reads your project, edits files and runs commands on your behalf. You can correct its course mid-task without starting over, and anything that writes a file or runs a shell command waits for your approval. Each run is saved as a typed event log that you can resume, branch or audit later.
The terminal UI, the one-shot CLI, a JSONL RPC process and an in-process Python SDK all drive the same runtime, so sessions, tools, approvals and cancellation behave the same way in each of them. Wisp works with OpenAI (including a ChatGPT subscription), Anthropic, Google, xAI and DeepSeek.
Install
Wisp needs Python 3.12 or newer and runs on macOS and Linux. Windows is best-effort until it has dedicated CI coverage.
uv tool install --python 3.12 wisp-ai
On macOS arm64 and Linux x86_64 (glibc 2.28+), the native wheel includes the Rust terminal UI. Other
platforms get a pure wheel, which keeps print, JSON, RPC and SDK use but has no terminal UI. Keep
--python 3.12 (or newer): without it, uv may resolve for an older default Python and pick the pure
wheel. Run uv tool update-shell once if wisp is not on your PATH.
The installation guide covers updates and troubleshooting. Coming from 0.1? Read the upgrade guide first.
Quickstart
Start Wisp in the project you want it to work on:
cd path/to/project
wisp
Type /connect to choose a provider. OpenAI → ChatGPT Plus/Pro signs in with your subscription
through a device code; the same panel takes API keys for OpenAI, Anthropic, Google, xAI and
DeepSeek. Then ask for something:
explain the architecture of this repository
For scripts and one-off questions, use print mode. The fake provider runs offline without any
credentials, which is a quick way to check an install:
wisp -p "summarize the current changes"
wisp -p "hello" --provider fake
Working with Wisp
- Steering. A correction sent during a run is applied at the next safe point between model
requests, and the tool work already done is kept. In the TUI,
Alt+Entersteers the active run andEnterqueues a follow-up for when it finishes; RPC and SDK clients have the same controls. - Approvals. Reads run directly. Writes, edits and shell commands stop and ask, and the model
cannot change that policy. Print mode refuses them unless you pass
--yes. - Cancellation. Cancelling unwinds in-flight tool work and leaves the session valid, so
--continueresumes from the last committed state. - Transcripts. Every action is a typed
WispEvent, appended to a JSONL session file in a fixed order. Sessions can be resumed, branched and inspected after the run. - Project trust. Wisp ignores a project's local settings,
AGENTS.mdinstructions and skills until you trust it, and never saves trust or YOLO mode for your home folder.
Staying in sync and Tools & safety explain how these guarantees are enforced.
Interfaces
| Mode | Command | Output | Use it for |
|---|---|---|---|
| TUI | wisp |
Fullscreen Rust terminal UI | Interactive work |
wisp -p "…" |
Assistant text on stdout, events on stderr | One-shot prompts and scripts | |
| JSON | wisp -p "…" --mode json |
One WispEvent JSON object per line |
Machine-readable automation |
| RPC | wisp --mode rpc |
Typed JSONL commands and events | Long-lived integrations and other frontends |
The TUI guide covers commands, keybindings, themes, prompt history, MCP servers and skills.
Python SDK
The SDK runs the same runtime in your own process and streams typed events:
import anyio
from wisp.config import WispConfig
from wisp.events import MessageDelta, RpcCommandFinished
from wisp.sdk import InProcessOptions, InProcessWisp
async def main() -> None:
wisp = await InProcessWisp.start(
WispConfig(provider="fake"), # offline provider; no credentials needed
options=InProcessOptions(startup_trusted=True),
)
async with wisp:
events = wisp.events()
command_id = await wisp.prompt("hello from the SDK")
async for event in events:
if isinstance(event, MessageDelta) and event.content_kind == "text":
print(event.delta, end="", flush=True)
elif isinstance(event, RpcCommandFinished) and event.command_id == command_id:
print()
break
anyio.run(main)
More examples, covering approvals, saved sessions and running Wisp as a subprocess, are in
examples/sdk/. The
SDK guide and
reference document the full surface.
How it's built
Every interface is a thin adapter over one event-driven runtime:
CLI / JSONL-RPC / SDK adapters → RPC command host → CodingSession → AgentHarness → run_agent_loop
The agent loop runs the provider and tool cycle and knows nothing about sessions or frontends. The
harness keeps the conversation in memory, CodingSession adds persistence and safety policy, and
interfaces consume typed events. The Rust TUI is an RPC client of this runtime, not a second agent
loop, so it gets the same guarantees as everything else.
The architecture guide describes each layer. Crafting Coding Agents is a tutorial that walks through the engineering decisions behind a coding agent, with runnable checkpoints.
Documentation
| Guide | Installation, providers, tools, sessions, skills and the TUI |
| Python SDK | Embedding Wisp, typed events, safety requests and sessions |
| Reference | CLI, SDK, configuration and environment variables |
| Architecture | Runtime layers and ownership boundaries |
| Contributing | Development setup, testing and how Wisp is built |
Contributing
Bug reports, fixes and documentation improvements are welcome. CONTRIBUTING.md lists the checks to run before opening a pull request. The test suite runs against deterministic fake providers, so it needs no API keys or network access. Please report security issues privately as described in SECURITY.md.
License
Metadata
Release files for wisp-ai 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wisp_ai-0.5.0.tar.gz | 536.1 kB | Without provenance | Details for wisp_ai-0.5.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wisp_ai-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for wisp_ai-0.5.0-py3-none-any.whl |
| wisp_ai-0.5.0-cp312-abi3-manylinux_2_28_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ x86-64 | Details for wisp_ai-0.5.0-cp312-abi3-manylinux_2_28_x86_64.whl |
| wisp_ai-0.5.0-cp312-abi3-macosx_11_0_arm64.whl | CPython 3.12 | abi3 | macOS 11.0+ ARM64 | Details for wisp_ai-0.5.0-cp312-abi3-macosx_11_0_arm64.whl |
Total release size: 15.8 MB
Release files / wisp_ai-0.5.0.tar.gz
| Download URL | wisp_ai-0.5.0.tar.gz |
|---|---|
| Size | 536.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
414728f60be1fe47cf29f7d63cc5c21fb48a7fbc806188e2eb4bf81a8d050063
|
|
BLAKE2b-256 checksum How to use checksums |
ff5518202a4ac730679a1e72bcfdf571a2317e8683b608bd4a380e539ca974ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / wisp_ai-0.5.0-py3-none-any.whl
| Download URL | wisp_ai-0.5.0-py3-none-any.whl |
|---|---|
| Size | 628.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9085fb747b9013d3f4b7039d5c1457c38d29a7fe4e3a4dc48f2c7db4558a3e17
|
|
BLAKE2b-256 checksum How to use checksums |
dabbb96897bef650c1c3db3650481bee933273a81e42b65ae6be7786b1ade1cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / wisp_ai-0.5.0-cp312-abi3-manylinux_2_28_x86_64.whl
| Download URL | wisp_ai-0.5.0-cp312-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.8 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a0be74cb5b3308b17f75def0f83e6580b6cbf2250daa7b8b642f4938cda4429b
|
|
BLAKE2b-256 checksum How to use checksums |
8099dff6682312ffe7471e537fd05c3ed12a342f6a0e23fbd9bac73a813e2fb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / wisp_ai-0.5.0-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | wisp_ai-0.5.0-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
338c25db11684d58f72bd1ef2e2b49ac59d5a86e2de0937aa92f27d099e6a675
|
|
BLAKE2b-256 checksum How to use checksums |
4e66040336c38fc8151d5115823a7820d3c3026e86c51da951ccaa1c0dc347d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for wisp-ai 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.