Skip to main content
Agno groups an agent’s tools into Toolkit classes. Mirage ships MirageToolkit, a toolkit over a Workspace, so the agent’s shell and file tools run in the workspace’s mounts instead of on the host.

Install

Usage

Tools

The toolkit serves the session’s seven tools, session.tools: shell, read, write, edit, ls, grep and glob, filtered by the session’s profile. Each tool is a sync and async pair under one name. Agno calls the async one in arun and aprint_response, and the sync one otherwise. MirageToolkit(ws, session_id="agent") acts as a session made with ws.session, so its profile judges every call. stale_write_protection=False lets the agent overwrite a file that changed since it read it.

Exports

Examples