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 instructions/copilotkit/opentag/agents-mdgit clone --depth 1 https://github.com/CopilotKit/OpenTagWhat 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.01439 | $0.01439 |
| Opus 5 | $0.00720 | $0.00720 |
| Sonnet 5 | $0.00288 | $0.00288 |
| Haiku 4.5 | $0.00144 | $0.00144 |
Grade A, and why
OpenTag AGENTS.md 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 yesterday.
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 — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent instructions
OpenTag is meant to be cloned and customized, often with a coding agent driving. This file tells that agent where the authority lives, so it grounds work in the current API instead of in recalled patterns.
Skills to install before you start
This repository vendors no skills. It installs them, because the CopilotKit CLI delivers them from one home and a vendored copy silently falls behind.
| Task | Skill | Install |
|---|---|---|
Changing Channel code — createChannel, handlers, commands, JSX message UI, modals, human-in-the-loop, runtime wiring |
copilotkit-channels |
npx copilotkit@latest skills install --skill copilotkit-channels |
Getting Slack to answer for the first time, or diagnosing a Channel stuck at setup_required or a mention with no reply |
setup-slack-channel |
npx copilotkit@latest skills install --skill setup-slack-channel |
| The whole setup path, including Microsoft Teams | channels-setup |
npx copilotkit@latest channels setup |
Runtime internals — CopilotRuntime, agent runners, tools |
runtime |
npx copilotkit@latest skills install --skill runtime |
setup-slack-channel is written for this repository. Its phases assume
OpenTag's conventions — app/channel.tsx, app/env.ts,
INTELLIGENCE_CHANNEL_NAME, a local agent on port 8123 — so prefer it here over
a generic setup sequence.
Always relay these with @latest. A bare copilotkit resolves to whatever is on
PATH or already in the npx cache, and an older CLI fails with
Unknown option '--skill'.
Do not commit what skills install writes. .agents/, .claude/skills,
agent/skills, and skills-lock.json are gitignored deliberately: those paths
are install targets, so committing them means the next install overwrites tracked
files.
Repository map
| Area | Path | What it owns |
|---|---|---|
| Runtime entrypoint | server.ts |
Environment, Channels readiness, HTTP lifecycle, shutdown |
| Composition | app/index.ts |
Agent factory, managed Channel, runtime |
| Channel surface | app/channel.tsx |
Mentions, commands, components, modals, interrupts |
| Environment contract | app/env.ts |
Required variables and in-code defaults |
| Rendered UI | app/components/, app/tools/ |
Issue cards, tables, charts, diagrams |
| Agent | agent/agent.py |
LangGraph deep agent served over AG-UI |
| AG-UI adapter | agent/agui.py |
Slack recursion limit and user-facing graph-stop handling |
| Persona | agent/prompts/ |
system.py is the base system prompt |
| Approval gate | agent/write_confirmation.py |
Emits confirm_write before Linear or Notion writes |
| Coder | agent/coding/ |
GitHub credentials, Daytona sandbox, repository publish tools, coder prompt |
| Coder skills | agent/coding/skills/ |
Committed skills. Do not put them in agent/skills/ |
| Deployment | .railway/railway.ts |
Two services, declared as code |
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.
- yesterday First seen · 107 lines · 1,439 tokens per session scan A 312832b54f5e
OpenTag AGENTS.md is an instructions file published in the GitHub repository CopilotKit/OpenTag (1,141 stars, last pushed 7d ago), licensed MIT. It adds 1,439 tokens to every session, about $0.0072 per session on Opus 5. 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 instructions, from other repositories
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
buildNext
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
spec-kit AGENTS.md
Instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
langchain AGENTS.md
Instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.