Dhara

A minimal, secure, language-agnostic coding agent harness.

$ npm install -g @zosmaai/dhara

Everything you need to build agentic tools

🔄

Agent Loop

LLM → tool → LLM cycle with streaming, cancellation, and error recovery. The core that powers every interaction.

🔌

Extension Protocol

JSON-RPC 2.0 wire protocol. Write extensions in any language — they're subprocesses, not function calls.

🤖

20+ LLM Providers

OpenAI, Anthropic, Google, Mistral, Groq, DeepSeek, Bedrock, and more. Pick your provider, set a key, go.

🛡️

Capability Sandbox

Declare what tools need. Block everything else. Every capability requires explicit approval — no silent escapes.

💾

Session Persistence

Append-only JSONL format. Resume conversations across restarts. Full audit trail of every interaction.

🖥️

TUI + REPL

Full-screen terminal UI with syntax highlighting, or line-based REPL. Zero dependencies. Works anywhere.

Get started in 30 seconds

1

Install

npm install -g @zosmaai/dhara
2

Set a Key

export ANTHROPIC_API_KEY="sk-ant-..."
3

Run

npx dhara "List the files in this project"

Minimal by design

Three clean layers. No bloat. No lock-in. Just the essential primitives for building AI agents.

EcosystemPackages · Themes · Skills · Prompts
ExtensionTools · Providers · Renderers · Hooks (any language, wire protocol)
CoreAgent Loop · Tool Interface · Sandbox · Session Format · Event Bus