creating-agents

A guide to creating isolated AI agents from templates or from scratch, with separate filesystems, credentials, and tool-server settings.

In plain words
What is it for?
Use it to create agents from GitHub, administrator-configured, or local templates and to choose their working and deployment setup.
Why use it?
It explains how agent templates are sourced and what access is needed for public or private GitHub repositories.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/abilityai/trinity/creating-agents
Clone the repo
git clone --depth 1 https://github.com/Abilityai/trinity
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,744 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.03744
Opus 5 $0.00000 $0.01872
Sonnet 5 $0.00000 $0.00749
Haiku 4.5 $0.00000 $0.00374

Measured 2d ago against content hash 3459e5bb6276, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

creating-agents scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/user-docs/agents/creating-agents.md · 220 lines

How it starts

The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Creating Agents

Agents are created from templates or from scratch. Each agent runs as an isolated Docker container with its own filesystem, credentials, and MCP server configuration.

📺 Watch: Build an AI Recruiter Agent (Jun 2026) · Build and Deploy Agents in Cursor (Apr 2026) · From Zero to Deployed (Apr 2026) · all videos

Concepts

Template sources define where agent blueprints come from:

  • GitHub Template -- A repository in github:Org/repo format. Supports branch selection with github:Org/repo@branch. Public repos clone with no GitHub token -- Trinity clones them anonymously. This is source-mode only: an anonymous clone can't push back, so pushing, Working-Branch mode, and fork-to-own still require a token. Private repos require a GitHub PAT.
  • Admin-Configured Templates -- GitHub repos configured by an admin in Settings. Metadata (name, description, resources, MCP servers) is fetched from each repo's template.yaml via the GitHub API and cached for 10 minutes. These appear as cards on the Library page's Agent Templates tab (/library?tab=templates; the old /templates path redirects there).
  • Local Templates -- Auto-discovered from the config/agent-templates/ directory and shown as a curated Starter Templates group on the Library's Agent Templates tab. The recommended starters (scout, sage, scribe) are ordered first; internal test and demo fixtures (marked hidden: true in their template.yaml) are hidden from the list but stay creatable by id.
  • From Scratch -- Creates a minimal agent with a default CLAUDE.md.

Where the GitHub template list comes from. Trinity resolves it in order:

  1. Admin-configured list — if an admin has curated GitHub templates in Settings, that list is authoritative and nothing else is consulted.
  2. Remote registry — otherwise Trinity fetches a curated registry over HTTPS, so the starter catalogue can be refreshed without upgrading Trinity. The result is cached (about an hour) with a durable last-known-good copy, and every failure degrades quietly to the next tier.
  3. Bundled defaults — the built-in list, which is empty by default.

Read the full file on GitHub · 220 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 220 lines · 0 tokens per session scan A 3459e5bb6276

Subscribe to this mod's changes

creating-agents is an agent published in the GitHub repository Abilityai/trinity (496 stars, last pushed 4d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 3,744 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories