nullain-sdk
Core engine of the Nullain Agent SDK — a production-grade autonomous coding agent for Python, built on Hexagonal Architecture and immutable Event Sourcing.
This package provides the agent loop, LLM provider adapters, model routing,
context management, memory, MCP/LSP clients, the permission/sandbox
security layer, and the plugin system. Built-in tools (read_file,
bash, grep, ...) live in the separate
nullain-tools package, which
nullain-sdk depends on.
Install
pip install nullain-sdk
Quick start
import asyncio
from nullain import Agent
async def main() -> None:
agent = Agent(workspace_root=".")
result = await agent.run("list the python files in this workspace")
print(result.final_text)
asyncio.run(main())
A synchronous facade is also available for scripts:
from nullain import Agent
result = Agent(workspace_root=".").run_sync("say hello")
print(result.final_text)
Agent assembles safe defaults — an Ollama Cloud provider, the built-in
tool registry, fail-closed permission policy, and the platform sandbox — so
most callers never need to construct the lower-level AgentLoop directly.
What's inside
AgentLoop— the Plan/Act/Verify ReAct loop, with self-correction, loop detection, and adaptive step/token budgets.Conversation— immutable, append-only event sourcing with a deterministic fold; conversation state is always derivable from history.ModelRouter— task classification intofast/balanced/deeptiers with circuit breakers and fallback chains.ContextManager— automatic compaction at 75% context-window capacity, preserving active task state and instruction re-injection.PermissionPolicy+Sandbox— 3-tier command/file permissions (allow/ask/deny) plus an OS-level, fail-closed subprocess sandbox (Landlock on Linux, Seatbelt on macOS, Job Object on Windows).Authority— subagent capability intersection: a spawned subagent's effective authority is the meet of parent, delegation, definition, and policy — never wider than any one of them.PluginLoader— signed, capability-manifested, SBOM'd plugin bundles (Ed25519 verification via the optionalsigningextra).
Documentation
The full docs, architecture diagrams, configuration reference, and CLI
usage live in the
monorepo README and docs/ —
this package is one piece of that whole; the CLI (nullain) and built-in
tools are what most users interact with day to day.
License
MIT — see LICENSE.
Metadata
Release files for nullain-sdk 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 |
|---|---|---|---|---|
| nullain_sdk-0.5.0.tar.gz | 167.4 kB | With provenance | Details for nullain_sdk-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nullain_sdk-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for nullain_sdk-0.5.0-py3-none-any.whl |
Total release size: 380.9 kB
Release files / nullain_sdk-0.5.0.tar.gz
| Download URL | nullain_sdk-0.5.0.tar.gz |
|---|---|
| Size | 167.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8be91fe92f807b9c6c638c4ddc189ce2f83afeea9e6d5496785069ff7efd0994
|
|
BLAKE2b-256 checksum How to use checksums |
15421b302961fbe88bac5531b1cc5243bbc8a955fa16c9a0a4073b175b8de179
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.
Transparency logRelease files / nullain_sdk-0.5.0-py3-none-any.whl
| Download URL | nullain_sdk-0.5.0-py3-none-any.whl |
|---|---|
| Size | 213.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6ed722c04e9f9e792aff7aeb7fa29d666b06d17002f8491c8b0a3bf82e4a412
|
|
BLAKE2b-256 checksum How to use checksums |
bf6739eb7d697d94db790335b2a39b0dc591ce54bee3584e2b2c36d58e83e3f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.
Transparency logSecurity for nullain-sdk 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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for nullain_sdk-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.
Transparency logA 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.