Sam Bhagwat's Avatar

Sam Bhagwat

@calcsam.bsky.social

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

296 Followers  |  351 Following  |  71 Posts  |  Joined: 24.04.2023  |  1.993

Latest posts by calcsam.bsky.social on Bluesky

Post image

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

24.02.2025 20:04 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

made a gametime decision that since we had the spotlight

we may as well cut the beta

x.com/calcsam/sta...

24.02.2025 20:04 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image Post image

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

24.02.2025 20:04 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image Post image Post image

the first thing we saw was lots of excited devs

people loved mastra's agent playground, the workflow api, the dev environment

24.02.2025 20:04 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image Post image

still catching our breath from last week

here's what we learned when our typescript agent builder went viral

24.02.2025 20:04 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Solving the hardest problem in computer science with LLMs How Mastra enhances Vercel's AI SDK with agent primitives, RAG pipelines, and evaluation capabilities

Full blog post: mastra.ai/blog/solvin...

14.02.2025 19:40 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

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.

14.02.2025 19:40 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Even better, I can do this collaboratively on a screenshare with an engineer, so they can themselves learn the process and begin to develop better taste for APIs

14.02.2025 19:40 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

And that was incredibly difficult....until LLMs

Now, I can describe the parameters of an API problem to Claude -- on web or in Cursor -- and ask it for help.

It can access all the underlying code. It will propose five or six plausible approaches.

14.02.2025 19:40 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

One of the main reasons Next.js beat Gatsby was that @kylemathews and I struggled to articulate our taste around APIs in a way that was legible to others, as well as meaningfully review APIs others proposed.

14.02.2025 19:40 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Left to their own devices even great engineers tend to ship overly verbose API names, create overly large options dictionaries, and overload methods in unintuitive ways.

14.02.2025 19:40 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Class and function names and parameters need to be immediately intuitive

Should a variable be a function parameter or part of an options object?

Can you set configdefaults on a class but override them on a particular invocation?

Do you want descriptive or evocative apis?

14.02.2025 19:40 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

so @mastra_ai is an open source typescript agent framework

when youโ€™re building a framework, you need to do a lot of API design, specifically the nouns and verbs your users use.

14.02.2025 19:40 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

excited to announce that we used llms to solve the hardest problem in computer science

naming things

14.02.2025 19:40 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

please share what you build!

05.02.2025 06:38 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Mastra.ai The Typescript AI framework

if you're comfortable in JS you could try mastra.ai

05.02.2025 06:37 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
GitHub - mastra-ai/mastra: The TypeScript AI framework. The TypeScript AI framework. Contribute to mastra-ai/mastra development by creating an account on GitHub.

Have you tried Mastra? github.com/mastra-ai/ma...

03.02.2025 10:32 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
GitHub - mastra-ai/mastra: The TypeScript AI framework. The TypeScript AI framework. Contribute to mastra-ai/mastra development by creating an account on GitHub.

We are building Mastra for that: github.com/mastra-ai/ma...

03.02.2025 10:31 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

thanks @libsqlhq @tursodatabase

31.01.2025 00:41 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Video thumbnail

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

31.01.2025 00:41 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
mastra/examples/travel-app at main ยท mastra-ai/mastra The TypeScript AI framework. Contribute to mastra-ai/mastra development by creating an account on GitHub.

If you're interested in multi-agent orchestration, take a look at the code: github.com/mastra-ai/m...

And the deployed app: mastra-eight.vercel.app/

29.01.2025 01:53 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

It passes the data into another agent that validates it and formats it for the user, again using a Zod schema:

29.01.2025 01:53 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

In order to get the agent to perform well, we needed to write rather exhaustive instructions:

29.01.2025 01:53 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

Tools take in defined input schemas using Zod and can call external APIs while maintaining strict typing.

29.01.2025 01:53 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

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.

29.01.2025 01:53 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Video thumbnail

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:

29.01.2025 01:53 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

nice! if helpful

github.com/mastra-ai/ma...

16.12.2024 01:40 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

we're building this into mastra, why?

16.12.2024 01:36 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

it's a ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ getting started experience for the next million AI devs

03.12.2024 05:55 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

also: first bits of a new `mastra init` are working.

you can decide which top level objects of mastra (agents, workflows, tools) you want to start with.

you can decide whether you want example code included. or more bare.

you can do it interactively or with cli flags.

03.12.2024 05:55 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

@calcsam is following 20 prominent accounts