Raga AI

Canvas – AI Agent Platform

Frontend lead · primary contributor2025 – 2026

Canvas is Raga AI's platform for building, testing and deploying AI agents. I led the frontend from its first commit and wrote about 90% of it: the agent builder, the streaming chat used to test agents, tools and callbacks, the workspace features teams use to share and version their work, and a visual workflow builder that hasn't been released yet.

ReactTypeScriptReact FlowRedux ToolkitTailwind CSSSSE Streaming
Canvas agent builder for an Order Status Agent: name, tags, Gemini model, three tools, a knowledge base and a Catalyst tracing config on the left, and a test chat on the right where the agent calls lookup_order and replies that the order is running late
Testing an agent in the builder's chat panel · made-up store and order data

Introduction

Project description

Canvas is Raga AI's platform for building, testing and deploying AI agents without writing a service for each one. A team sets up a project, configures an agent in a form (its model, instructions, tools, knowledge bases and callbacks), tries it in a streaming chat, and deploys a chosen version. Every run can be traced to Catalyst, Raga AI's evaluation platform.

It is one React app on top of Raga AI's agent backend, which runs agents on Google's Agent Development Kit. I built the frontend from the first commit in July 2025 and wrote about 90% of its commits.

Timeline
July 2025 to January 2026, from the repo's first commit to its latest release.
My role
Frontend lead and primary contributor. I built the agent builder, the test chat, tools, callbacks, prompts, workspaces and collaboration, and a visual workflow builder that hasn't been released yet.
Team
Four other engineers started or added to parts of it: the knowledge base pages and their test query, tool and prompt versioning, API key management, the theme setup and deployment fixes. The agent runtime and APIs come from Raga AI's backend team.
Background
Frameworks like Google's Agent Development Kit make agents possible in code, but the teams that need agents most, like support or operations, can't run a Python service for each one. Canvas turns the framework into a product: a form becomes an agent, a button deploys it, and a chat window shows exactly what it did.
408
Commits — #1 contributor, about 90% of all commits
9
Custom node types in the workflow builder
5
Collaboration roles, from Owner to Guest
GitHub Insights for the Canvas repo: commits over time, with sachin-ragaai as the #1 contributor at 408 commits to main
Screenshot of the private repo's GitHub Insights, all time · teammates' names hidden

01The problem

Three things an agent builder has to get right

An agent is a model, a set of instructions and the tools it can call. Putting that in a form is the easy part. These are the parts that decide whether a team trusts what they built.

Configure without code

Model, instructions, tools, knowledge and guardrails in one place, so someone who doesn't write Python can still build and change an agent.

See what it did

When an agent calls a tool, the person testing it needs the call, the arguments and the result, not just the final reply.

Change it safely

Agents, tools and prompts change every week. Every change needs a version, and a deploy needs to say which one.

02How it works

From a form to a deployed agent

Everything lives in a project. An agent is built from pieces the project shares, so a tool or prompt written once can be used by many agents.

  1. Set up a project

    A project holds a team's agents, tools, prompts and keys. Teammates join by invite link, with one of five roles from Owner to Guest.

  2. Configure the agent

    Pick a model and tune its parameters, write the instructions or import a saved prompt, and attach tools, knowledge bases and callbacks.

  3. Add tools

    Write a Python function in the code editor, query a GraphQL API, or connect an MCP server. Each tool is versioned.

  4. Test in chat

    The chat beside the builder streams replies as they're written, with every tool call and its result shown inline and inspectable.

  5. Deploy a version

    The version history lists every saved version of an agent. Deploying publishes a chosen version, and any earlier one can be restored.

  6. Trace to Catalyst

    Attach a tracing config and every run is sent to a Catalyst project, where the team can evaluate it.

A Python tool called Order lookup open in the code editor, with a typed function that fetches an order and returns its status, carrier and tracking link
A Python tool, written in the browser
The chat page for the Order Status Agent: a customer asks where their order is, the agent calls lookup_order, and replies with a table of the order's status, carrier and delivery date
Chat: the tool call, its result and the reply
A dialog showing the lookup_order function call with its order_id and email arguments as formatted JSON
Every tool call can be opened and inspected
The agent builder with the version history sidebar open, listing versions 4 to 1 with who changed each and when, and the active version marked
Version history for an agent
Screens from the running app with every API response replaced by made-up data for a fictional store

03What I built

The parts I owned

Agent builder

One configuration surface for an agent: model and provider, instructions, tools, callbacks, knowledge bases, authorization and tracing, with a chat beside it for testing.

  • Model parameters rendered from each model's own schema, with sliders and limits
  • Manager agents that hand work to other agents in the same project
  • Callbacks for six stages of a run: before and after the model, each tool call and the agent
  • Custom Python tools written in an embedded Monaco editor, plus a GraphQL editor with formatting for API tools

Streaming chat

The chat used to test agents streams responses over Server-Sent Events, read from a fetch ReadableStream and parsed line by line from a buffer.

  • Markdown with GFM tables, KaTeX math and syntax-highlighted code
  • Function call and response chips that open a viewer with formatted and raw JSON views
  • Multiple sessions per agent, with messages and loading state kept per session so a running reply never bleeds into another conversation

Workspaces & collaboration

Multi-project workspaces where teams share agents, tools, prompts and knowledge bases.

  • Invite links with five roles: Owner, Admin, Editor, Viewer and Guest
  • Version history with restore for agents, tools and prompts
  • Drag-and-drop folders for organizing agents (dnd-kit)
  • Per-project environment switching at runtime, without a page reload

Visual workflow builder

A React Flow canvas for multi-step agent logic. Blocks are dragged in from a palette and wired together, and each node edits its own settings in place. It's built, but not released yet.

  • Nine custom node types: Start, Agent, API, Function, Condition, Router, Loop, Memory and Response
  • A chat panel beside the canvas for running and testing the workflow in place

04Product tour

Canvas, area by area

Every page shares the same pieces: a sidebar of project sections, cards or a list for each kind of item, a side panel for creating one, and light and dark themes.

I built most of it. Each group below says where teammates did a part.

These screens are shared on request. Send me a short email and I'll reply with a private link.

Agents and the builder

All mine: the agent list with pinned agents and folders, the builder, manager agents that hand work to other agents, and callbacks for every stage of a run.

Agents, pinned and in folders
A manager agent that hands work to three others
Callbacks for each stage of a run
Choosing tools for an agent

Tools, prompts and callbacks

Tools and prompts are versioned, so an agent keeps working while someone edits them. Teammates started tool and prompt versioning; I built the rest of these pages.

Tools in a project
A GraphQL tool and its query editor
A prompt and its versions
A callback that redacts card numbers and emails

Knowledge and tracing

Knowledge bases with a test query, and tracing configs that send runs to Catalyst. Teammates started the knowledge base pages and the query chat.

Checking what an agent will find
A tracing config for Catalyst

Workflow builder

A React Flow canvas with nine node types and a chat panel to run the workflow in place. It's built, but not released yet: the sidebar still marks it as coming soon.

A support triage workflow
Nodes expanded to show their settings

Settings and team

Collaborators with five roles, model API keys and project security. A teammate started API key management; the rest is mine.

Collaborators and their roles
Inviting a collaborator
Model provider API keys

Shared on request

See every screen

Canvas is company work, so I share the full set of screens with people I know are looking: recruiters, hiring managers and engineers I'm talking to. Tell me who you are and I'll email you a private link.

This opens your mail app with everything filled in. Or email sachin@sachinkamat.com

Screens from the running app with every API response replaced by made-up data for a fictional store. No real customers, people or keys appear.

05Challenges

The hard parts

Most of the difficulty was in the chat and the builder: one has to keep up with a stream, the other has to hold a lot of configuration without becoming a wall of fields.

Streaming over POST

The run endpoint takes a POST body, so EventSource was out. The chat reads the response with fetch, splits it into server-sent events in a buffer, and handles text, tool calls, tool results and errors as they arrive.

Many chats at once

A tester can switch conversations while a reply is still streaming. Messages and loading state are kept per session, so a running reply never lands in the wrong chat.

A form with forty fields

An agent has a model, parameters from that model's schema, instructions, tools, sub-agents, knowledge bases, six kinds of callback, input and output schemas, authorization and tracing. Panels and toggles keep the screen to what's switched on.

Show the tool calls

Tool calls and results appear in the chat as chips, in order, between the user's message and the reply. Opening one shows the arguments or result as formatted or raw JSON.

Code in the browser

Tools and callbacks are Python, so they're written in Monaco with syntax highlighting. GraphQL tools get their own editor that formats the query before it's saved.

One UI, many backends

Each project can point at a different backend. The API client switches its base URL when you change project, without a reload.

06Outcome

What it led to

Canvas is Raga AI's platform for building agents. The patterns I worked out here, like showing every tool call and keeping a version of every change, carried into ClinicalOps, where agents do the work and staff check it.

Make the agent's work visible

Seeing each tool call and its result is how you find out why an agent answered the way it did. That matters more than a polished reply.

Version everything

Agents, tools and prompts all change, often by different people. Versions with restore made it safe to experiment.

Share pieces across agents

Tools, prompts and callbacks belong to the project rather than one agent, so a fix to a tool reaches every agent that uses it.

Engineering notes

  • Redux Toolkit slices for agent drafts, workflow graphs, auth and UI state
  • An API module per domain (agents, tools, callbacks, knowledge bases, data sources, prompts, credentials). Most share one Axios instance whose interceptor clears an expired session and returns you to sign-in; agent and streaming calls use fetch
  • Agent builder state kept in one hook, with a validation function per field; React Hook Form and Zod on the sign-in, sign-up and password reset forms
  • React Flow (xyflow) for the workflow canvas and dnd-kit for drag-and-drop folders
  • UI built on shadcn/ui (Radix primitives) and Tailwind CSS, with light and dark themes

Impact

  • Agents configured without code
  • Streaming chat with visible tool calls
  • Versioned agents, tools and prompts
  • Team workspaces with five roles

Looking for a Senior Frontend Engineer who can ship platforms like this?