Sudarshan is an open-source, deterministic multi-agent autonomous coding framework (harness) for supporting resumable production-grade software development. It is designed as a "deterministic control plane for probabilistic software builders": models can reason, but plans, policies, evidence, budgets, failures, recovery state, and definitions of done are all persistently maintained by the engine outside the conversation.
Purpose Sudarshan accepts an idea, product requirements document (PRD), or technical specification, generates explainable token/cost/time estimates, and then drives models through a persistent JSON action loop until real verification passes or an explicit stop condition is reached. It is designed to solve the problems of early coding agents that easily lose long-term state, repeat failed commands, deviate from contracts, or declare completion without executable proof.
Key Capabilities
- Displays expected token, cost, and time ranges before the build starts, and enforces operator-configured caps.
- The model may return only one schema-validated action per turn.
- Executes under policy: paths are restricted to the workspace, edits must match exactly, and commands use argument arrays, allowlists, timeouts, and output limits.
- Every accepted action updates persistent state, supporting checkpoints and recovery.
- Completion is a gate: all committed plan tasks and all selected verification commands must pass, and the model cannot finish merely by claiming completion.
- Supports operator verification commands provided via --verify-command-json, automatically inferred compile/test/lint/build commands, and model-proposed commands (which may be added but cannot remove the first two categories).
- Obeys provider Retry-After values, persists exponential backoff, and fails fast on authentication failures, malformed responses, and similar cases.
- Budget control serves as engine-level call authorization, not an account-level guarantee.
- Can run on OpenAI-compatible endpoints, Azure Foundry Model Inference, Anthropic, Gemini, local models, or any agent framework exposed through a small command bridge.
Usage The standalone runtime requires Python 3.9+ and has zero runtime dependencies. Git, Node, Docker, SearXNG, and OpenClaw are detected as optional capabilities, not installation prerequisites. It can be run via the command line, with configuration files and runtime state stored in the .sudarshan/ directory. API keys are read from environment variables and are never persisted to runtime state.In.
For OpenAI-compatible endpoints, keep the base URL free of query parameters and pass the API version separately. --json-response requests response_format: {"type":"json_object"}; this option should be turned off for compatible providers that do not support this extension. Local HTTP accepts only localhost, 127.0.0.1, or ::1; remote endpoints must use HTTPS.
A command provider sends a JSON request on stdin, and the bridge returns a JSON object on stdout. It should be launched with an argument array, not a shell string. In Windows PowerShell 5.1, use the stop-parsing form (--%) to preserve JSON quotes.
When to Use It Sudarshan is suitable for software development scenarios where you want to move control state and acceptance authority out of probabilistic context. It can serve as a testing framework for LLM APIs, or as a super-orchestrator for another agent framework. Historical research configurations can use the bundled local-only SearXNG stack.
Limitations Sudarshan is alpha software. It makes orchestration state and gating more deterministic, but it does not make model reasoning mathematically perfect, nor does it guarantee production-quality output. Generated software still requires human review, threat modeling, and deployment judgment. --allow-host-commands is deliberately explicit: commands requested by the model run with user privileges; path restrictions are not an operating system sandbox. For untrusted builds, use a disposable virtual machine, container, or low-privilege account. Budget control is not an account-level guarantee; provider-side billing, failed requests with unreported usage, and untrusted command bridges remain outside the engine's control. --retry-forever means an effectively unlimited retry duration until the operator interrupts the process. This repository does not claim that benchmarking or prior art research has been completed. The current version passes 161 tests and 117 subtests locally, and is verified in CI on Ubuntu/Python 3.9, Ubuntu/Python 3.13, macOS/Python 3.13, and Windows/Python 3.13. It assumes model responses are untrusted input, but is not a complete security boundary.