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.
npx agentmods add agents/omnilink-tech/omnisim/agent_patternsgit clone --depth 1 https://github.com/omnilink-tech/omnisimWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.04964 |
| Opus 5 | $0.00000 | $0.02482 |
| Sonnet 5 | $0.00000 | $0.00993 |
| Haiku 4.5 | $0.00000 | $0.00496 |
Grade A, and why
AGENT_PATTERNS 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OmniLink agent patterns
Cross-demo design patterns extracted from the OmniSim agent builds (husky_maze, mission_captain, warehouse_foreman, warehouse_patrol). These are the choices that paid off — each one earned its place by being the lesson learned from a specific failure mode documented in that demo's docs/RESULTS.md.
On the
warehouse_*citations below. The Warehouse Foreman, Warehouse Picker and Patrol Squad demos were removed from the tree on 2026-07-19 (their results predated theb18bd7a3teleport-recovery removal and were never re-measured). The citations are kept because they are the provenance of these patterns — each names the run that produced the lesson. They are historical references, not paths you can open; recover them from git history if you need the detail. The patterns themselves are live and apply to every new agent.
This is the doc to read before starting a new agent. The default for every new demo should be: do the thing this doc recommends; if you need to deviate, write down why in the demo's docs.
1. Perception-as-tool, not pixels-to-LLM
Pattern. Vision belongs in a sidecar process that runs deterministic image analysis and exposes a structured-tag API. The agent calls a tool, gets back JSON like {tag_color: "green", marker_fraction: 0.0038, marker_centroid: {x_norm: 0.49, y_norm: 0.62}}. The agent NEVER sees pixels in the steady-state path.
Why. A 320×240 PNG attached as image_url part costs ~12 k input tokens. A structured tag digest is ~80 tokens. 150× per-query difference. Plus: deterministic across runs (the LLM may misread on any given snap), preserves cacheability (the per-turn input doesn't drown out the cacheable system prefix), and faster (no LLM-pixel-decoding latency).
How.
- Eye sidecar process (e.g.
husky_eye) owns the OmniSim Camera. Pure-Python BGRA classifier returns{tag_color, marker_pixels, marker_fraction, marker_centroid, color_fractions, ...}per camera view. - Bridge proxies sidecar
/scanso the agent only knows about one HTTP target. - Agent gets a
scan_for_tag(orscan_surroundingsetc.) tool with description like "PREFERRED tag-identification tool — never sends pixels to you. ~150× cheaper than read_camera." - Keep
read_cameraas an explicit FALLBACK tool for genuinely ambiguous frames. Discriminator argument still holds (the agent CAN read pixels when the structured digest is uncertain), the cost story still holds (agents prefer the cheap path).
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.
- 3d ago First seen · 248 lines · 0 tokens per session scan A ae18874198db
AGENT_PATTERNS is an agent published in the GitHub repository omnilink-tech/omnisim (82 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 4,964 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.
Other agents, from other repositories
launcher-scheduler-expert
Expert on cluster launching and resource scheduling (Slurm/Ray/Kubernetes). Use when user modifies launcher/scheduler code, configures cluster resources, or troubleshoots deployment issues.
algorithm-expert
RL algorithm expert. Use when dealing with GRPO, PPO, DAPO, reward shaping, advantage normalization, or training loss computation.
code-verifier
Code verification agent. Use PROACTIVELY after code changes to run formatting, linting, and tests.
planner
Implementation planner for complex tasks. Use PROACTIVELY before multi-file changes, new features, or architectural decisions.
simple-code-reviewer
Lightweight code reviewer for quick quality checks. Use PROACTIVELY after code changes to catch common issues.
archon-engine-expert
ArchonEngine usage and configuration expert. Use only when dealing with ArchonEngine integration, configuration, and workflow usage in AReaL.