https://www.boundaryml.com logo
BAML Should Prioritize Agent-First Tooling Over Sa...
# studio-beta-feedback
v
BAML Should Prioritize Agent-First Tooling Over SaaS UI
## Core Observation The current BAML Studio (SaaS UI) is designed for humans to inspect traces, debug prompts, and analyze LLM context. This creates a bottleneck in the agent development flywheel: 1. Agent produces unexpected output 2. Developer opens BAML Studio UI to manually inspect the trace 3. Developer analyzes context, prompt construction, and model response 4. Developer formulates improvement strategy 5. Developer implements changes Steps 2-4 are human-only — the agent cannot self-inspect its own traces. This means every iteration cycle depends on a human sitting in front of the Studio UI, which fundamentally limits iteration speed.
## The Real Opportunity: Agent-Accessible Traces If BAML provided a CLI tool (or programmatic API) that could directly retrieve and output trace data — including full prompt context, token usage, model responses, and timing — the workflow transforms: 1. Agent produces unexpected output 2. Agent itself retrieves the trace via CLI/API 3. Agent analyzes the context and identifies the issue 4. Agent proposes and implements the fix 5. Human reviews the diff This closes the loop. The agent flywheel spins autonomously, with humans providing oversight rather than being the bottleneck.
## Broader Trend: Agents Bypassing UI Abstractions This isn't unique to BAML. We're seeing a pattern across the industry where agents increasingly operate directly on underlying data and systems, bypassing traditional UI, API, and ORM abstraction layers. The tools that thrive will be the ones that expose machine-readable interfaces — CLIs, structured output, database-level access — not the ones that invest in polished dashboards meant for human eyeballs. For BAML specifically: - **CLI for trace retrieval**:
baml trace get <invocation-id> --format json
— structured output an agent can parse - **CLI for trace search/filter**:
baml trace list --function <name> --status failed --last 10
- **Programmatic trace access**: SDK-level API to query traces without HTTP/SaaS dependency - **Trace diffing**: Compare two invocations' contexts to identify what changed
## What This Means for BAML Studio UI Once agents can access trace data directly, the Studio UI becomes a nice-to-have for occasional human spot-checks, not the primary debugging interface. Investment in rich UI features (visualizations, interactive explorers, dashboards) yields diminishing returns compared to investing in robust, agent-friendly CLIs and APIs. ## Recommendation Focus engineering effort on: 1. Agent-first trace tooling — CLI and programmatic APIs with structured output (JSON) 2. Self-diagnostic capabilities — Let agents inspect their own BAML invocations 3. Composable primitives — Small, unix-philosophy tools that agents can chain together Deprioritize: - Complex SaaS UI features that only humans can use - Visualization-heavy debugging tools - Browser-based workflows that can't be automated The moat for BAML isn't a pretty dashboard — it's being the best tool for agents to manage their own LLM interactions end-to-end.
a
definitely agreed @vEth . We will be allocating more resources to our observability platform and tooling next month
a
+1 on this, all learnings from BAML dashboard end up getting fed back into a coding agent anyway so would be nice to cut out the middleman (myself)