Agent engine

System prompt

Built fresh at every step from what is actually true: the machine, the mode, the tools present, the storages connected, the skills available, the memory. You add to it; you do not replace it.

rebuilt each stepsystem addsagent sets a role
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

It is not a constant. Turning a tool off removes its instructions, connecting a storage adds a section describing it, a mode change rewrites the rules paragraph — so the model is never told about something it cannot do.

What is in it

SectionHolds
IdentityWhat it is, and where it works — this computer and its platform, a phone whose files are in its browser, or a Linux cloud workspace.
WorkspaceThe root every path is relative to, and today's date.
Mode rulesThe paragraph for the current mode.
Always-ask ruleThe three acts no mode opens in advance, so it never promises to publish or send without asking.
How to work wellBatching, todos, searching before guessing, editing rather than rewriting.
Use the tools you haveThat read shows documents, audio and video directly; that media, conversion and web access exist.
IaGenifyOnly with iagenify_docs: an invitation to open the docs rather than recite them.
SkillsOne line per skill — name and description. The body is opened on demand.
SubagentsOne line per subagent, with when to delegate.
AnswerHow to close: a short answer, in the user's language.
Connected storagesOne block per storage: how to query it, what is in it, how full it is.
MemoryIAGENIFY.md, personal instructions, and the index of long-term notes.

Adding your own

const agent = api.agents.create({
  runtime: "local",
  machine: pc,
  model: "gemini-3.5-flash",
  system: "This repository is a Next.js app. Never edit anything under generated/.",
});
agent = api.agents.create(
    runtime="local",
    machine=pc,
    model="gemini-3.5-flash",
    system="This repository is a Next.js app. Never edit anything under generated/.",
)

system is appended near the end, after the engine's own instructions and before the storage and memory sections. It adds; there is no option that replaces the prompt, because most of it describes capabilities that genuinely exist and removing it would make the model wrong rather than free.

A whole conversation as one agent

agent: "reviewer" puts a library agent's instructions in as a role, with its own model and tool selection. A subagent gets a stricter variant: it is told it cannot talk to the user, and that its final message is a report to the main agent.

Two files are read into it

FileScopeCap
IAGENIFY.md in the workspaceThis project20 000 characters
~/.iagenify/IAGENIFY.mdEvery project on this computer20 000 characters

The personal one is read only on a real computer — a phone or a cloud workspace has no home directory to read. Neither file is required, and a missing one changes nothing.

This is where project conventions belong

A rule written in IAGENIFY.md applies to every run on that workspace, from any application, without being passed as an option. It is also visible to the person using the agent, which a system option is not.

It is charged, every step

The prompt is input tokens on each turn. The turn event breaks the context down into system, tools, memory and messages, so you can see what the instructions cost against what the conversation costs — and long-term notes are counted apart precisely because they grow quietly.