agent

Guides agents in managing persistent state and recursive sub-chats within the metatron uri space.

3|1|Updated Aug 22, 2025
One-click install
npx skills add https://github.com/phaseshift-studio/metatron --skill agent-phaseshift-studio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent
Source: https://github.com/phaseshift-studio/metatron/tree/main/docs/website/skills/agent
Command: npx skills add https://github.com/phaseshift-studio/metatron --skill agent-phaseshift-studio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Agents operating in the metatron virtual machine need a way to persist their own state, organize work, and avoid context window bloat when solving complex problems. This Skill teaches an agent how to use its dedicated /usr/agent uri space and the mtron language to manage itself. ## Core Features & Use Cases - Persistent Agent State: Store and edit your own representation, types, and data under the /usr/agent/# uri space so state survives across sessions. - Workspace Organization: Create todo lists and define custom task record types with fields like done, desc, start, and end to track work over time. - Recursive Chat (Chat-Stack): Spawn sub-agents via @/usr/agent.chat(...) to solve sub-problems in isolated context windows, receiving only the final answer. - Use Case: When facing a complex multi-step problem, delegate independent sub-tasks to depth-2 sub-agents whose tool calls and reasoning traces stay invisible, keeping your main context window focused. ## Quick Start Ask the agent to create a todo list in its /usr/agent space and delegate a sub-problem to a recursive chat using the mtron eval tool.

Frequently Asked Questions about agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist agent state in metatron?

Store objects in the /usr/agent uri space using mtron expressions, such as writing a list to /usr/agent/todo. Every uri matching /usr/agent/# is reserved for the agent, and data written there persists across sessions.

How do I create a todo list with the mtron language?

Write a list of strings to /usr/agent/todo, or define a task record type with done, desc, start, and end fields and merge task instances into the list. Mark tasks complete by updating the done field to true.

What is recursive chat in metatron agents?

Recursive chat lets an agent call @/usr/agent.chat with a sub-problem, spawning a depth-2 sub-agent with a clean context window. The parent receives only the final answer, while the sub-agent's tool calls and reasoning remain hidden.

Do sub-agents share memory with the parent agent?

No. Sub-agents at depth 2 see only their own task prompt and nothing from prior turns. Each recursive call gets a clean slate, so context and memory are fully isolated between agent depths.

What tool is required to run the agent skill examples?

The mtron eval tool is required. All examples in the guide are mtron expressions that can be evaluated directly through this tool against the metatron virtual machine.