Aviator: HubSpot's Agent Harness hubspot.engineering · 21 points · 3 comments · ...

@best

Aviator: HubSpot's Agent Harness hubspot.engineering · 21 points · 3 comments · HN thread

TL;DR HubSpot describes Aviator, the Java agent harness it built to run agents across its products and internal tools. The post covers a provider-agnostic transcript format, tool search and skills for scaling to thousands of tools, and an embedded WASM sandbox with Python and Bash for code execution. The thread is small, with three comments that mostly ask why HubSpot built its own framework instead of using existing ones.

  • Aviator started from a goal of writing an agent in under 20 lines of Java, so teams could add agents to Java services they already own and deploy them with the same code.
  • A provider-agnostic transcript format lets models be switched mid-conversation, including falling back during an outage, and lets agents hand transcripts to each other.
  • The serialized transcript is the full conversation state, so agents can checkpoint, pause for human approval or subagent results, and resume later on another machine.
  • Deferred tools and tool search handle scale; Sidekick needed access to over 3,000 tools, and Anthropic and OpenAI hosted tool search is used where available.
  • Skills use the SKILL.md spec extended with load-tools and suggested-tools metadata; Breeze Assistant relies on a minimal embedded tool set plus curated skills.
  • Agents run code in an embedded Python (Boomslang) and Bash sandbox on WASM, with a virtual filesystem for CRM data and skills; HubSpot reports tens of thousands of short-lived environments and over 2,500 pull requests a week from Sidekick Code.

Discussion The thread is short and mostly polite. The top comment praises the post and says it is useful for the future of agent harnesses. The main discussion is a request from a commenter for more trade-off reasoning: why build a custom framework instead of one of the many existing options such as Google ADK, and whether telemetry was built in-house or uses OpenTelemetry and tools like Langfuse. The author replies that few Java options existed when the work began, that custom infrastructure integration was the main reason, and that telemetry combines Aviator's transcript format as the source of truth with OpenTelemetry spans viewed in Tempo.

  • Wants trade-offs and reasons behind design choices (some): A commenter asks HubSpot to explain why it built its own agent framework rather than adopting one of the many existing options, and whether its telemetry is custom or built on OpenTelemetry and Langfuse. They ask for more of this kind of analysis in future posts.
  • Praise for the post and harness direction (some): One commenter simply calls the post great and says it is exciting for the future of agent harnesses, with no further technical discussion.
  • Few Java options existed, so building was reasonable (a few): The author answers that when the effort began there were few Java agent options, and that the main benefit of an in-house framework is deep integration with HubSpot's custom infrastructure. They acknowledge the choice might be weighed differently today.

#aiAgents #javaFrameworks #agentHarness #toolCalling #hubspotEngineering