Agent on Tilde. It works with Mastra 1.
Example agent
A complete Mastra agent with bundled tools and skills, in the Tilde open-source repository.
Install
How it works
PasstildeMastra(ctx) to each generate or stream call. It adds a tilde toolset with the channel’s tools and the agent’s Tilde and bundled tools, the abort signal, and an input processor for new user input.
Mastra has no per-call skills option, so wrap the agent’s skills with tildeMastraSkills. Mastra then loads your own skills and the agent’s Tilde skills together.
src/agent.ts
Feature compatibility
If you export a
Mastra instance, tilde deploy registers the prompts of every agent in it.
Limitations
- Input processors. Mastra replaces an agent’s configured input processors with any you pass per call.
tildeMastrapasses one, so add your own processors to the same call. - Suspend and resume. In search mode, a bundled tool called through
tools.executeruns outside Mastra’s agent loop. It cannot suspend and resume. - Private settings. The adapter reads the agent’s instructions through a method outside Mastra’s public API. It is tested against Mastra 1.67.