HubSpot shares how it builds AI helpers in Java
HubSpot wrote about Aviator, its in-house toolkit for building AI helpers inside its Java systems. A team can build one in about 20 lines. Helpers can switch AI models mid-chat and pause and resume later. A coding helper built on it merges over 2,500 changes a week.
Problem: HubSpot started looking for a shared way to build AI agents in June 2025. Most tools were written for TypeScript or Python, and none fit its Java systems.
What they built: Aviator, an in-house toolkit in Java. The goal was that a team could write an agent in about 20 lines of code using services they already own. Helpers can switch AI models mid-conversation, for example during a provider outage. Conversations are saved in a plain data format so they can be paused and resumed on another machine or handed to a different agent. Its main engineering assistant needed access to over 3,000 tools, so Aviator keeps most of them hidden until the agent searches for them.
Result: a cloud coding helper built on Aviator merges more than 2,500 pull requests a week, according to the post. The post's adoption chart gives no exact counts.
Lesson: a shared toolkit that fits the language your company already uses lets many teams build agents quickly. Letting agents search for tools instead of loading all of them keeps a large tool set manageable.
New to this? The key idea
An AI agent is a program that asks an AI model what to do, then uses tools to do it, over many steps. The harness is the shared scaffolding around the model, like the kitchen set up so any cook can make a meal. It handles which tools are available, saving progress, and what to do if one model is down.
Use it at work
Copy this: treat Aviator as a design reference. Tools can be added with an `addChirpTool` method that reuses existing internal RPC calls. Tools the agent rarely needs are deferred and found through tool search. Skills use the `SKILL.md` format with extra metadata so a skill can bring its own tools. Agents can run embedded Python and sandboxed Bash, both running in WASM with a virtual filesystem. Platform and backend teams building agents on an existing codebase should care most.
Watch out: Aviator is internal to HubSpot, so this is a design reference rather than something to install. Its licence and any public release are not stated. Self-hosted models lack the hosted tool-search features, so Aviator uses its own search index, and some agents use full microVMs instead of the embedded sandbox.
Summaries are written by AI from the linked source. Always check the original.