Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

kcastle-agent

A minimal OpenAI Responses Agent core with optional harness infrastructure.

from openai import AsyncOpenAI

from pathlib import Path

from kagent import Agent, Session

session = Session.create(Path.home() / ".kcastle" / "sessions")

agent = Agent(
    client=AsyncOpenAI(),
    model="gpt-5.6-sol",
    instructions="You are a helpful agent.",
    state=session.state,
    commit=session.commit,
)

async for event in agent.run("Hello"):
    print(event)

Agent is the brain: it owns causal State, the loop, steering, follow-ups, cancellation, events, and compaction. kagent.harness surrounds it with Session persistence, an explicit Env, and executable ToolRuntime adapters. User interfaces render events and provide approvals only.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kcastle_agent-0.1.0a1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kcastle_agent-0.1.0a1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file kcastle_agent-0.1.0a1.tar.gz.

File metadata

  • Download URL: kcastle_agent-0.1.0a1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","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}

File hashes

Hashes for kcastle_agent-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 0ffebd3a3de365ce96338c17c6f100edaf8e589b3c0742910588839ae54c0be6
MD5 4fc5b47d9f91424769d3e981f0eb7938
BLAKE2b-256 8b11d2177c436691c5eb7bef86d68921e25ac47b65895c8a1c403f2beef12a2e

See more details on using hashes here.

File details

Details for the file kcastle_agent-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: kcastle_agent-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","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}

File hashes

Hashes for kcastle_agent-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 a8b6671b8f2b32e30ec77096d07937e377ad87630f215f847729e3bed52e4900
MD5 f079a8850adfd6a682b45a65293829aa
BLAKE2b-256 aec645ee075d468ae7213718dcd79cd89bee6836fd2bc57b64a0ae02ab75a6dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page