Incredibly excited to share file-based agents in Mastra ๐ฅ
Write the prompt in instructions.md, add .ts files in tools/ to define tools by filename, and place subagents in subagents/
Need a new capability? Just add another file
One of the coolest things about Mastra sandboxes is the ability to FUSE-mount filesystems like S3
Mounts can be read-only for seeding files
Or you can give an ephemeral sandbox persistent storage. Even if the sandbox is destroyed and recreated, it can reconnect to the same
We completely revamped ๐๐๐๐๐๐ ๐๐๐๐๐๐ and replaced the humble weather agent with a powerful harness template!
It can:
- Code in a sandbox
- Create a task list
- Search and fetch the web
- Remember anything
- Run for days
Quick video showing you how it works: