HiveLang
Language & runtime work · 2026
A declarative language and execution runtime for tool-using agents, specialist sub-agents, policies, hooks, and workflows.

What it is
HiveLang is an AI-first DSL for describing agent behavior. A bot definition can declare instructions, capability names, grounding and memory policies, hooks, specialist agents, schedules, webhooks, and reasoning handlers.
How it works
Source is tokenized and parsed into an AST, validated for configuration errors, then loaded into a runtime that builds bot configuration and maps declared capabilities to registered tools. The runtime accepts an AI-provider adapter rather than hard-wiring one model vendor.
Execution model
The v5 runtime keeps its own execution context for variables, outputs, errors, tool calls, memory, and checkpoints. Specialist agents retain distinct system prompts and tool subsets rather than being flattened into the parent agent.
Safety and control
The runtime guards reasoning iterations and delegation depth, and its optional collaboration hooks are best-effort so persistence failures do not terminate an agent run. Parser diagnostics also catch invalid configurations before execution.
Proof
The local source contains the tokenizer, parser, AST, validation layer, v5 runtime, examples, and parser/runtime test suites.