Skip to main content

Coding Agents

Run the agent as it is, on a workspace the mirage CLI creates.
  • CLI: the agent adds Mirage’s seven tools from mirage mcp.
  • SSH: the agent’s own tools run in the workspace.
  • FUSE: the agent’s own tools work on the workspace, mounted as a folder.
Or load Mirage into the agent as a plugin, which replaces its own file and shell tools:

Agent SDKs

Your program holds the workspace and hands it to the framework. Mirage’s seven tools are the session’s session.tools: shell, read, write, edit, ls, grep and glob. A session gets the ones its profile leaves it (session.tools.names()), so an agent is never offered a tool every call of which would be refused. Each framework is a subpath of @struktoai/mirage-agents, such as @struktoai/mirage-agents/vercel, so a bundle carries only what it imports.
For a browser app, use @struktoai/mirage-browser in place of @struktoai/mirage-node.