agentops-open-course: Instructions file for Codex

AGENTS.md

agentops-open-course AGENTS.md is an instructions file for Codex, OpenCode from MLOps-Courses/agentops-open-course. It costs 4,566 tokens per session, scanned B, original, MIT.

A repository instruction file for an open course that teaches how to build, observe, test, and operate a Go-based AI agent.

In plain words
What is it for?
Use it when working on the Go agent, evaluation module, support tools, course pages, monitoring setup, or portable agent skills in the repository.
Why use it?
It explains the project’s separate modules, fixed inputs, course content, and boundaries so changes do not break the teaching reference.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is MLOps-Courses/agentops-open-course's own configuration. It tells Codex and OpenCode how to work on agentops-open-course itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentops-open-course configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MLOps-Courses/agentops-open-course. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MLOps-Courses/agentops-open-course/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/MLOps-Courses/agentops-open-course

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agentops-open-course AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mlops-courses/agentops-open-course/agents-md/github.svg)](https://agentmods.dev/instructions/mlops-courses/agentops-open-course/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mlops-courses/agentops-open-course/agents-md"><img src="https://agentmods.dev/badge/instructions/mlops-courses/agentops-open-course/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agentops-open-course AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mlops-courses/agentops-open-course/agents-md"><img src="https://agentmods.dev/badge/instructions/mlops-courses/agentops-open-course/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,566 This file is loaded in full into every session.
When invoked 4,566 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.04566 $0.04566
Opus 5.5 $0.01826 $0.01826
Sonnet 5.5 $0.00913 $0.00913
Haiku 4.5 $0.00457 $0.00457

Measured 29d ago against content hash 060ba47c881a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

agentops-open-course AGENTS.md scanned grade B with 1 finding 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 29d 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

Aggregate tasks run their children: `install`, `format`, `check`, and `build` each fan out, so `mise run build` builds the site **and** both container images and therefore needs Docker. Use `mise run build:docs` for the
AGENTS.md · 202 lines

How it starts

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

AGENTS.md

Guidance for coding agents working in the AgentOps Open Course. Humans should start with README.md. This repository dogfoods the AGENTS.md convention taught in Chapter 1.

Repository purpose

The course teaches the complete lifecycle of one AgentOps Agent with Google ADK, agentgateway, kagent, MLflow, and OpenTelemetry. The completed executable reference accompanies cumulative learner-owned Python exercises; it must not drift into a collection of illustrative snippets. Chapter 8.7 turns that reference into a capstone contract for a learner-owned domain.

  • docs/ contains FAQ-based course pages published by Zensical.
  • agents/python/ is the locked Python reference agent, offline tests, and model-backed evaluations.
  • agents/data/ is immutable seed input: SQLite, logs, runbooks, and the agent's runtime Agent Skills.
  • skills/ holds portable Agent Skills (npx skills add …), validated by mise run check:skills; runtime skills live separately under agents/data/skills.
  • clients/web/ is a minimal, offline, dependency-free A2A web client for the AgentOps Agent.
  • load/ holds k6 load tests and the documented latency budgets for the platform.
  • infra/agentgateway/{host,k3d,gke}/ contains the three data-plane profiles.
  • infra/k8s/base plus infra/k8s/overlays/{local,local-gemini,gke} contains the shared Kubernetes deployment.
  • infra/kagent/ declares the BYO Agent, gateway ModelConfig, and governed RemoteMCPServer.
  • infra/mlflow/ builds the locked non-root MLflow server.
  • infra/observability/ contains host Compose and in-cluster OTel/Prometheus/Grafana resources.
  • infra/gcp/ is a plan-first OpenTofu module for the optional GKE lab.

Course invariants

  • Docs mirror source. Critical Python excerpts use checked pymdownx.snippets regions from agents/python; commands/manifests match infra. Prefer a short exact excerpt plus a source link over a second pseudo-implementation.
  • Every course page is an FAQ. It starts with YAML description front matter, contains at least one H2, and every H2 ends in ?. scripts/check_conventions.py enforces this and the page frame below.
  • Seed and state stay separate. agents/data/incidents.db is never mutated. Host writes go to agents/python/.state; Kubernetes agent/MCP processes share agentops-agent-state so reads remain coherent with approved writes. Only the A2A startup and direct write boundary may prepare or migrate runtime state; probes and read tools stay read-only.
  • Restore is crash-recoverable, not an instantaneous multi-file rename. Stop every writer first. agent.state serializes backup/restore with a process lock and fsyncs a three-phase journal; A2A startup recovers an interrupted transaction before schema preflight or publication. Never bypass that boundary with direct file copies or delete unexplained .restore-* evidence.
  • Reads and writes have different authority. The conversational entrypoint alone switches its six read/runbook tools from direct local calls to MCP through AGENT_MCP_URL; workflow and coordinator specialists always bind local tools. The MCP toolset passes tool_filter=MCP_READ_TOOL_NAMES (mcp_client.py), so a server cannot widen the surface by advertising more tools. restart_service and resolve_incident remain in-process, require ADK confirmation, validate targets, and append audit evidence in the same transaction. Replays with the same invocation, action, and target return the original audit row without mutating state again.
  • Policy is attached once, at the app boundary. AgentOpsPolicyPlugin in governance.py is registered on the App exported by composition.py and src/agent/__init__.py. ADK discovery prefers app over root_agent. Hooks cover every agent and workflow node; never add per-agent callback lists. Before-model order is budget → compaction → redaction; the first non-None return short-circuits. ADK's stock evaluator appends its plugins after the App policy (a bare agent before ADK 2.10): use evals/governed_adk_eval.py for ADK evals, which keeps evaluator evidence first and the policy exactly once, and InMemoryRunner(app=build_app(...)) for MLflow.
  • Skills and retrieved data have different trust. The carve-out is keyed on the ADK LoadSkillTool type, which only the locally built skill_toolset() constructs — not on the tool's name, which any MCP server could claim. That result is reviewed repository instruction, so it bypasses injection neutralization and spotlighting while retaining recursive PII/credential redaction. Every other tool result stays data-hardened by default.
  • Audit is append-only, not immutable. Every row carries its audit schema version. SQLite triggers block row update/delete through the schema; administrators can still alter the file/schema. Do not overclaim.
  • Telemetry content stays private by default. Both ADK/GenAI content-capture variables default to literal false. PII callbacks cover outbound model requests, inbound model responses, and tool output, but raw session ingestion occurs earlier.
  • No LiteLLM or garak contract. Runtime/evaluation uses ADK's OpenAI-compatible client for Ollama/agentgateway or native Gemini by default. mise run redteam is deterministic offline adversarial regression, not live-model penetration testing.
  • Planning is bounded. root_agent plans only multi-step investigations and verifies approved actions afterward. triage_workflow is the runnable, read-only plan → investigate → evidence review → recommend path; do not replace it with an unbounded reflection loop.
  • Cost-efficient by default. Prefer deterministic offline tests and fakes, the smallest model that can validate the behavior, and single-replica resource-bounded local services. Measure before increasing model size, context, RAM, CPU, storage, replicas, or load-test concurrency. Do not start a cluster, observability stack, model server, paid API, or cloud resource unless it materially validates the current boundary; stop temporary processes and tear down disposable resources when the check is complete.

Read the full file on GitHub · 202 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. 29d ago Changed · -109 lines · -3,039 tokens per session scan A → B 060ba47c881a
  2. 1mo ago Changed · +3 lines · +362 tokens per session fa8581b1f3a8
  3. 1mo ago First seen · 308 lines · 7,243 tokens per session scan A a0ea3608ea81

Subscribe to this mod's changes

agentops-open-course AGENTS.md is an instructions file published in the GitHub repository MLOps-Courses/agentops-open-course (2 stars, last pushed yesterday), licensed MIT. It adds 4,566 tokens to every session, about $0.0183 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

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).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

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.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens