Sam Bhagwat
banner
calcsam.bsky.social
Sam Bhagwat
@calcsam.bsky.social
spice distributor. prev cofounder @gatsbyjs. now building mastra.ai
one more thing

some people think this is how you keep score (?)

it's not why we're building this, but definitely a morale boost

and a reminder for all of us that great things take time
February 24, 2025 at 8:04 PM
ofc folks also found the parts that didn't work quite right

unclear docs, meh apis, weird ui artifacts

our linear project is full of papercuts

so this sprint we're sanding all the rough edges
February 24, 2025 at 8:04 PM
the first thing we saw was lots of excited devs

people loved mastra's agent playground, the workflow api, the dev environment
February 24, 2025 at 8:04 PM
still catching our breath from last week

here's what we learned when our typescript agent builder went viral
February 24, 2025 at 8:04 PM
As an example, our workflow graph API has three main methods, .step() for branching, .then() for chaining, and .after() for merging.

Every time we show it to someone building with AI, they immediately nod along. The control flow is apparent and intuitive.
February 14, 2025 at 7:40 PM
huge step forward today for @mastra_ai with a new storage layer

you can persist agent messages. conversation history. tool calls.

when you suspend a workflow, it persists that state too

all using libsql so no local docker setup
January 31, 2025 at 12:41 AM
It passes the data into another agent that validates it and formats it for the user, again using a Zod schema:
January 29, 2025 at 1:53 AM
In order to get the agent to perform well, we needed to write rather exhaustive instructions:
January 29, 2025 at 1:53 AM
Tools take in defined input schemas using Zod and can call external APIs while maintaining strict typing.
January 29, 2025 at 1:53 AM
The first agent has detailed instructions and access to a set of tools. It generates a set of possibilities using tools provided and ranks them according to the user's preferences.

It can call the tools in whatever order it needs.
January 29, 2025 at 1:53 AM
so everyone wants to plan their next trip with an (AI) agent

now with @mastra_ai you can

we just built a Travel AI that does everything a good travel agent should.

input: budget and preferences.

output: flights, accommodations, itinerary options

how we did it:
January 29, 2025 at 1:53 AM
saw this and it *immediately* felt right. except it still needs flags for the non-interactive flow. and instead of top-level project name we need directory location. so told claude that.

et voila:
December 1, 2024 at 4:15 PM
i asked claude to rethink this using create-next-app which has a really good scaffolding experience. he (?) came back with a nice interactive flow:
December 1, 2024 at 4:15 PM
so i used @superwhisper to dictate my frankly pretty half baked thoughts to claude / cursor using the mastra repo as context
December 1, 2024 at 4:15 PM
Excited to share that Shane Thomas, Abhi Aiyer and I are building Mastra, a Typescript AI framework for the next million AI developers:
November 21, 2024 at 11:23 PM