Sign in

Sam Bhagwat

@calcsam.bsky.social
304 followers 351 following 71 posts

spice distributor. prev cofounder @gatsbyjs. now building mastra.ai

PostsRepliesMedia
Sam Bhagwat @calcsam.bsky.social · 24/02/2025
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
020 2
Sam Bhagwat @calcsam.bsky.social · 24/02/2025
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
110 1
Sam Bhagwat @calcsam.bsky.social · 24/02/2025
the first thing we saw was lots of excited devs people loved mastra's agent playground, the workflow api, the dev environment
110 1
Sam Bhagwat @calcsam.bsky.social · 24/02/2025
still catching our breath from last week here's what we learned when our typescript agent builder went viral
130 3
Sam Bhagwat @calcsam.bsky.social · 14/02/2025
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.
110 1
Sam Bhagwat @calcsam.bsky.social · 31/01/2025
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
110 1
Sam Bhagwat @calcsam.bsky.social · 29/01/2025
It passes the data into another agent that validates it and formats it for the user, again using a Zod schema:
110 1
Sam Bhagwat @calcsam.bsky.social · 29/01/2025
In order to get the agent to perform well, we needed to write rather exhaustive instructions:
100 1
Sam Bhagwat @calcsam.bsky.social · 29/01/2025
Tools take in defined input schemas using Zod and can call external APIs while maintaining strict typing.
110 1
Sam Bhagwat @calcsam.bsky.social · 29/01/2025
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.
100 1
Sam Bhagwat @calcsam.bsky.social · 29/01/2025
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:
110 1
Sam Bhagwat @calcsam.bsky.social · 01/12/2024
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:
100 1
Sam Bhagwat @calcsam.bsky.social · 01/12/2024
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:
100 1
Sam Bhagwat @calcsam.bsky.social · 01/12/2024
so i used @superwhisper to dictate my frankly pretty half baked thoughts to claude / cursor using the mastra repo as context
100 1
Sam Bhagwat @calcsam.bsky.social · 21/11/2024
Excited to share that Shane Thomas, Abhi Aiyer and I are building Mastra, a Typescript AI framework for the next million AI developers:
Mastra homepage: the Typescript AI framework
63910 39