agentleFS
DinastIA-UKDinastIA-UK/mavra-mcp-skill/skills/mavra/references/agents.md

mavra-mcp-skill / references

AGENTS.md7 starsChanged 23 days agoMITView on GitHub

How to configure AI agents well via manage_agents (and the related agent tools). Pair this with prompt-syntax.md for writing the customPrompt. Default guardrails prompt: block when the agent contradicts the script, invents unsupported facts, commits to forbidden actions, or skips a required step; approve otherwise (permissive about phrasing/tone). When all retries are rejected, the turn is blocked — no tool calls, no message sent, a guardrails_blocked system message is recorded. Recover with manage_messages:retry-agent-reply. - Providers: openai, anthropic, google, azure_openai, bedrock.…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

We split this agents.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always set a valid contextSize (e.g.

    line 84
  2. Very specific:

    Write the customPrompt with the @-syntax (see prompt-syntax.md) — that's where flows, tool calls, CRM writes, transfers, and follow-ups …

    line 85

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
agents.md

Mavra Agents — Domain Knowledge

How to configure AI agents well via manage_agents (and the related agent tools). Pair this with prompt-syntax.md for writing the customPrompt.

Agent fields (create / update)

FieldTypeDefaultNotes
titlestring— (required)1–100 chars.
customPromptstring— (required)The agent's script. Supports the @-decorator syntax — see prompt-syntax.md.
descriptionstring—Free-text.
providerenumopenaiopenai | anthropic | google | azure_openai | bedrock. Must be enabled for the account.
modelstringgpt-4oMust be enabled for the account/provider. Deprecated models auto-map to gpt-4o.
contextSizenumber—Must be 800–128000 tokens (≈1 message per 800 tokens). The API errors if out of range or omitted on create — always pass a valid value (e.g. 4000).
temperaturenumber—0.0–2.0. Ignored by reasoning models (o-series, GPT-5).
reasoningEffortenum—none | minimal | low | medium | high. Only for reasoning models.
webhookUrlstring (https)—Per-agent outbound webhook (POSTs {sessionId, message} per turn). webhookSecret auto-generated.
avatarColorstring—UI only.
tagsstring[]—Organize/filter agents.
timezonestring (IANA)—e.g. America/Sao_Paulo. Injected into the prompt for date/time awareness.
mergeToolsbooleanfalseMerge similar tool declarations to reduce noise.
knowledgeBaseModeenumalwaysalways (pre-query KB every turn) or tool (agent calls a search tool when it decides to).
knowledgeBasePromptstring—Custom retrieval instructions.
statusenumactiveactive | inactive (inactive = won't respond).

Guardrails (fields on the agent, set via create/update)

FieldTypeDefaultNotes
guardrailsEnabledbooleanfalseSecond-pass reviewer judges each agent action before it executes.
guardrailsProviderenumfalls back to providerReviewer provider.
guardrailsModelstringgpt-4o-miniReviewer model (must be enabled).
guardrailsCustomPromptstringdefault promptCriteria for what to block/approve.
guardrailsMaxRetries1 | 2 | 32Retries after a rejection before the reply is blocked.

Default guardrails prompt: block when the agent contradicts the script, invents unsupported facts, commits to forbidden actions, or skips a required step; approve otherwise (permissive about phrasing/tone). When all retries are rejected, the turn is blocked — no tool calls, no message sent, a guardrails_blocked system message is recorded. Recover with manage_messages:retry-agent-reply.

Providers & models

  • Providers: openai, anthropic, google, azure_openai, bedrock.
  • OpenAI models include the GPT-5.x / GPT-5 / GPT-4.1 / GPT-4o families and the o-series reasoning models (o3, o3-mini, o4-mini, o1). Reasoning models use reasoningEffort and ignore temperature. Only models enabled for the account are accepted — if a create/update is rejected for the model, pick an enabled one.

Knowledge base (manage_agent_knowledge)

RAG over uploaded documents (stored in a per-agent vector store).

  • Supported files: PDF, DOCX, XLSX, PPTX, ODT/ODS/ODP, TXT, HTML, CSV/TSV, Markdown, XML, JSON. Max ~100 MB per file.
  • Flow: the file must already be uploaded to S3 (via the agent knowledge request-upload flow), then add references it with fileKey, name, fileName, contentType, size. Items index asynchronously (pending → indexing → ready).
  • Modes: always (auto-injected each turn) vs tool (agent searches on demand).

Media library (manage_agent_media)

Pre-uploaded files the agent can send via @sendMedia(name).

  • Categories: image, audio, video, document. Audio may convert asynchronously.
  • Flow: upload to S3 first, then add with fileKey, name, fileName, contentType (+ optional description that tells the AI when to use it). The name is what you reference in @sendMedia.

Other agent tools

  • manage_agent_versions (prompt versioning): every prompt change creates a version; list / get / revert to roll back safely with an audit trail.
  • manage_agent_test_sessions: interactive test panel — create a session, send-message (async), retry a blocked turn, save-as-test, truncate.
  • manage_agent_tests: saved regression tests — run, get-results, set-baseline, set-status, reset, stop, delete.
  • manage_agent_feedback: operators submit corrections (what was wrong / expected behavior); when enabled, corrections are pre-queried each turn to improve the agent.
  • manage_agents:execute: one-shot synchronous test run with a message.
  • manage_agents:debug / :trace: inspect resolved config / a message's tool trace.

Tips

  • Always set a valid contextSize (e.g. 4000) on create.
  • Write the customPrompt with the @-syntax (see prompt-syntax.md) — that's where flows, tool calls, CRM writes, transfers, and follow-ups come from.
  • Turn on guardrails for high-stakes agents; keep the default reviewer model unless you need otherwise.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.