HiveLang v5Latest
The Language of Agents
A declarative programming language designed for orchestrating autonomous AI agents. Simplifies complex prompt engineering into clean, readable code.
Documentation
Why HiveLang?
Declarative Logic
Instead of fragile prompts, define bot behavior with structured statements like on user.message and if/else.
Native Multi-Agent Support
Define multiple specialized agents in one swarm and let the runtime handle orchestration.
Integrated Memory
Built-in db.get and db.set commands for persistent agent state without extra boilerplate.
Concurrent Tools
The parallel keyword makes multi-tool execution blazingly fast.
Example
example-bot.hive
bot AutoResearcher {
instructions {
Finds news on a topic and summarizes it.
}
capabilities {
web.search
news.search
ai.generate
}
on user.message {
parallel {
call web.search with { query: input } as search_data
call news.search with { query: input } as news_data
}
call ai.generate with {
prompt: "Summarize " + search_data + " and " + news_data + " for the user."
} as final_summary
respond with final_summary
}
}