ish-code
Coming soonA native coding-agent CLI for working with your repository.
A shared Rust runtime for tool-using agents and durable workflows.
ISH (Isolated State Harness) 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.
Conversation history is sent to the model. Shared values and large results can stay in runtime storage and be retrieved when a tool needs them.
Python, TypeScript, Rust, Go, C#, and Java use the same runtime for agent turns, tool policies, and durable workflow state.
Integrate through MCP, Agent-to-Agent (A2A), Agent Client Protocol (ACP), and AG-UI event streaming.
Tools built around the ISH runtime are on the way.
A native coding-agent CLI for working with your repository.
A web interface for observing and managing the ISH Control Plane.
One shared Rust runtime across Python, TypeScript, Rust, Go, C#, and Java—choose your language and pick up the exact same execution loop.
import asyncio
from ish import Agent
async def main() -> None:
agent = Agent(
name="assistant",
model="gpt-4o-mini",
instructions="Answer clearly and briefly.",
max_turns=8,
)
result = await agent.run("Explain the difference between a list and a tuple.")
print(result.content)
asyncio.run(main())
import { Agent } from "ish-harness";
const agent = new Agent({
name: "assistant",
model: { provider: "openai_chat", name: "gpt-4o-mini" },
instructions: "Answer clearly and briefly.",
max_turns: 8,
});
const result = await agent.run("Explain the difference between a list and a tuple.");
console.log(result.content);
use std::{env, io, sync::Arc};
use ish_harness::{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.")
.max_turns(8)
.build()
.map_err(io::Error::other)?;
let result = agent
.run("Explain the difference between a list and a tuple.")
.await
.map_err(io::Error::other)?;
println!("{}", result.content);
Ok(())
}
package main
import (
"context"
"fmt"
"github.com/ish-harness/ish-harness/sdks/go"
)
func main() {
client, err := ish.NewClient()
if err != nil {
panic(err)
}
defer client.Close()
agent := ish.NewAgent(client, ish.AgentRunRequest{
AgentName: "assistant",
Model: &ish.AgentModel{Provider: "openai_chat", Name: "gpt-4o-mini"},
SystemPrompt: ish.StringPtr("Answer clearly and briefly."),
MaxTurns: ish.IntPtr(8),
})
res, err := agent.Run(context.Background(), "Explain the difference between a list and a tuple.")
if err != nil {
panic(err)
}
fmt.Println(res["content"])
}
using Ish.Harness;
using var ish = new IshClient();
var result = ish.Run(new AgentRunRequest
{
AgentName = "assistant",
Model = new AgentModel { Provider = "openai_chat", Name = "gpt-4o-mini" },
SystemPrompt = "Answer clearly and briefly.",
UserPrompt = "Explain the difference between a list and a tuple.",
MaxTurns = 8,
});
Console.WriteLine(result.GetProperty("content").GetString());
import com.fasterxml.jackson.databind.JsonNode;
import io.github.ishharness.IshClient;
import java.nio.file.Path;
public class Main {
public static void main(String[] args) {
try (var ish = new IshClient(Path.of(System.getenv("ISH_NATIVE_LIBRARY")))) {
var request = new IshClient.AgentRequest(
"gpt-4o-mini",
"Answer clearly and briefly.",
"Explain the difference between a list and a tuple.")
.provider("openai_chat")
.agentName("assistant")
.maxTurns(8);
JsonNode result = ish.runAgent(request);
System.out.println(result.path("content").asText());
}
}
}