Skip to main content

Coding Agents

Claude Code, Codex and Grok Build run as they are, on a workspace the mirage CLI creates, whatever language you build in. Their guides are under Agents. To replace an agent’s own file and shell tools instead, load Mirage into it as a plugin:

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 its own package: @struktoai/mirage-vercel, @struktoai/mirage-mastra, @struktoai/mirage-claude-agent-sdk, @struktoai/mirage-openai-agents or @struktoai/mirage-langchain.
When the framework supports browsers, use @struktoai/mirage-browser in place of @struktoai/mirage-node.

API & Environment

The provider runs the agent, and the workspace is its environment: its own shell and file tools run in Mirage.