This repository is a source of content that will live under .ai/ in other repositories.
In this repository, AGENTS.md and .ai/ are the agent's working context, not part of the framework content.
- If the repository contains
AGENTS.local.md, read it first and follow it with higher priority than this file. AGENTS.mdand.ai/are the only sources of truth for how to work in this repository.
By default, do not modify these files and directories unless the user explicitly asks you to:
AGENTS.md.ai/**AGENTS.local.md(if it exists)
Make any framework changes in the "content" part of the repository (everything except the list above). Files in that part are the change target, not behavioral rules for the agent working in this repository.
In particular, documents like agents/roles.md define how the framework should work in a target project, but in this repository they are treated as framework content to review and change, not as instructions that override AGENTS.md and .ai/**.
- If the task is about evolving or refactoring the framework, use the Context Engineer role from
.ai/roles/context-engineer.md. - Otherwise, act as an "assistant" and clarify the role or output format on request.
- Do not confuse framework roles from
agents/roles.mdwith the meta rules of this repository fromAGENTS.mdand.ai/roles/context-engineer.md.
- Markdown: one sentence per line.
- Artifact links: use repository paths.
- Language: all framework content Markdown documents must be written in English.
- If the user's message contains a question (for example, the
?character), answer only that question. - In that case, do not make any file changes.
This repository is often added to a target repository as a git submodule, so its root directory name and location may differ. Do not rely on a single absolute path to framework artifacts in the target repository.
Recommended (but not required) structure in the target repository:
.ai/ergo/— the framework (this repository)..ai/project-local/— project-local contexts for the project.
Authoring rules for framework references (in this repository):
- For artifacts inside the framework, use paths relative to the current file so links stay valid regardless of the submodule directory name.
Authoring rules for project-local references (in this repository):
- Project-local artifacts live in the target repository, not in this framework repository.
- In framework materials, always reference project-local artifacts as
<project-local>/...(in backticks). - If the user provides a path like
.ai/project-local/...orproject-local/..., normalize it to<project-local>/...before writing it down. - Do not try to resolve or search for project-local artifacts inside this repository.
Executor-side rules for resolving project-local references live in bootstrap/AGENTS.md.
Skills for this repository are located in ./.ai/skills/ (agent context, note the leading dot in .ai, not ./ai/skills/) and ./skills/ (framework content).