ISH (I solated S tate H arness) is an unconstrained, protocol-driven execution harness for AI agents and durable workflows.
The name draws inspiration from the classical Sanskrit root īś (ईश्), meaning “to govern, command, or master” — reflecting sovereign authority and precise execution control over LLMs, tools, subagents, and environments without forcing model-driven agents into a fixed workflow. Deterministic pipelines are available through the separate, unified DurableWorkflow primitive.
The shared Rust workspace provides execution and state operations. Six language SDKs expose those operations through typed APIs and host-runtime adapters.
If you use ISH in research, please cite the relevant work:
-
Mashetty, H. (2026). ish: Decoupling Data-Plane Transport from Control-Plane Execution in Autonomous LLM Agent Harnesses . Zenodo.
-
Mashetty, H. (2026). Comparing Multi-Agent Coordination Channels Under a Shared Execution Contract . Zenodo.
-
Compiled Rust execution kernel (
ish-coreand the Rust workspace) for agent runs, model and tool dispatch, lifecycle, policy, and protocols. -
Virtual Data Plane for context and shared data, including
ContextStore, Blackboard actions, and$BLOB:,$DATA:, and$SOURCE_DATAreferences. Large values can stay outside the model transcript. -
Durable agent state : persist session conversation history with a stable session ID, and opt into namespaced durable
ContextStoreworking state or cross-sessionMemoryStoreusing the same SQLite orStorageConnectorpersistence backend. -
Embedded SQLite WAL durability for traces, spans, approvals, workflows, checkpoints, and persistence-backed state.
-
Versioned C ABI : ABI 1.99, 361 registered operations, and 208 published request schemas.
-
Six SDKs connected to the Rust core : Rust, Python, TypeScript, Go, C#, and Java. Theconformance suite has 157 cases (942 case-and-SDK pairs). The SDK API inventory contains 6,490 declarations with zero unmapped items; the Rust inventory contains 2,330 declarations across 13 crates.
-
Optional
ish-serverControl Plane : HTTP/SSE service and SQLite inspection CLI. SDK applications run without the server.
Build or install the SDK for your language, configure OPENAI_API_KEY, and create an agent. The examples below use the same model and prompt.
See the SDK installation guide for package coordinates and native-library requirements.
use std::{env, io, sync::Arc};
use ish_core::{Agent, OpenAIModel};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let model = OpenAIModel::new(
"gpt-4o-mini".into(), "https://api.openai.com/v1".into(),
env::var("OPENAI_API_KEY")?, 0.2,
);
let agent = Agent::builder(Arc::new(model))
.name("assistant")
.instructions("Answer clearly and briefly.")
.build()
.map_err(io::Error::other)?;
let result = agent.run("Explain a Rust ownership rule in one sentence.").await
.map_err(io::Error::other)?;
println!("{}", result.content);
Ok(())
}
python
import asyncio
from ish import Agent, OpenAICompatibleModel
async def main():
agent = Agent(
name="assistant",
model=OpenAICompatibleModel(model="gpt-4o-mini"),
instructions="Answer clearly and briefly.",
)
result = await agent.run("Explain a Rust ownership rule in one sentence.")
print(result.content)
asyncio.run(main())
js
import { Agent } from "ish-harness";
const agent = new Agent({
name: "assistant",
model: { provider: "openai_chat", name: "gpt-4o-mini" },
instructions: "Answer clearly and briefly.",
});
try {
const result = await agent.run("Explain a Rust ownership rule in one sentence.");
console.log(result.content);
} finally {
agent.close();
}
import (
"context"
"fmt"
"log"
ish "github.com/ish-harness/ish-harness/sdks/go"
)
client, err := ish.NewClient()
if err != nil { log.Fatal(err) }
defer client.Close()
agent := ish.NewAgent(client, ish.AgentRunRequest{
Model: &ish.AgentModel{Provider: "openai_chat", Name: "gpt-4o-mini"},
SystemPrompt: ish.StringPtr("Answer clearly and briefly."),
})
result, err := agent.Run(context.Background(), "Explain a Rust ownership rule in one sentence.")
if err != nil { log.Fatal(err) }
fmt.Println(result["content"])
js
using System;
using Ish.Harness;
using var client = new IshClient();
using var agent = new Agent(client, new AgentRunRequest
{
Model = new AgentModel { Provider = "openai_chat", Name = "gpt-4o-mini" },
SystemPrompt = "Answer clearly and briefly."
});
var result = agent.Run("Explain a Rust ownership rule in one sentence.");
Console.WriteLine(result.GetProperty("content").GetString());
python
import io.github.ishharness.Agent;
import io.github.ishharness.IshClient;
import java.nio.file.Path;
try (var client = new IshClient(Path.of(System.getenv("ISH_NATIVE_LIBRARY")));
var agent = new Agent(client, "gpt-4o-mini", "Answer clearly and briefly.")) {
System.out.println(agent.run("Explain a Rust ownership rule in one sentence.").path("content").asText());
}
See the SDK guide, the Python, TypeScript, Go, C#, Java, and C ABI READMEs, and the documentation site.
- Agents and tools: shared run loop, model providers, host callbacks, cancellation, lifecycle hooks, subagents, typed output, evaluation, and streaming.
- Virtual Data Plane and Blackboard: persistent or in-memory context, documents, bounded retrieval, blob/object handles, scratchpads, and shared agent tools.
- Sandboxed filesystem and permissions: rooted filesystem tools, deterministic
eval_codeviasandbox.eval_expression, process/WASI execution, and Rust-owned permission checks. - Durable workflows and approvals: replayable steps, SQLite-backed snapshots, approval/resume, execution claims, checkpoints, and reconciliation APIs.
- Protocols: MCP, ACP, A2A, and AG-UI protocol helpers and transport adapters.
- Control Plane: the optional
ish-serverHTTP/SSE daemon provides operational APIs, metrics, authentication, and SQLite inspection commands.
The conformance guide describes the checked contracts and limits. Benchmark methodology and reports are maintained in the ISH benchmarks repository.
Run the optional server from a source checkout:
export ISH_ADMIN_API_KEY="replace-with-a-strong-secret"
cargo run -p ish-server --release -- serve --host 127.0.0.1 --port 8080 --db ./data/ish.sqlite3
The command serves the Control Plane API. ish-server logs, inspect, workflows, inspect-workflow, and memories provide SQLite inspection. An optional static asset directory can be served at / with --ui-dir <dir> or ISH_STUDIO_UI_DIR; the server works headlessly without it. See the Control Plane guide.
From the repository root:
cargo build --workspace --release --locked
export ISH_NATIVE_LIBRARY="$PWD/target/release/libish_core.dylib"
uv sync --locked --directory sdks/python --extra all --extra dev
(cd sdks/typescript && npm ci && npm run build && npm run build:native)
(cd sdks/go && go test ./...)
dotnet build sdks/csharp/Ish.csproj
mvn -f sdks/java/pom.xml test
python3 sdks/conformance/run.py --sdk all --require-complete --require-surface-complete
Use libish_core.so on Linux and ish_core.dll on Windows.
Runnable examples for all six languages are maintained in the ISH examples repository. See its README for the example index and setup instructions.
Apache License 2.0. See LICENSE.