open-kgo AGENTS.md

open-kgo AGENTS.md is an instructions file for Codex, OpenCode from mloda-ai/open-kgo. It costs 1,264 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for the mloda-ai/open-kgo project, including its environment, dependencies, checks, and commit rules.

In plain words
What is it for?
Use them when working on open-kgo code, running its tests and quality checks, or creating commits.
Why use it?
They tell an agent which project files to read, how to install dependencies, and which checks are required before finishing changes.

Instructions file for CodexOpenCode

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

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 instructions/mloda-ai/open-kgo/agents-md
Clone the repo
git clone --depth 1 https://github.com/mloda-ai/open-kgo

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 open-kgo AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mloda-ai/open-kgo/agents-md.svg)](https://agentmods.dev/instructions/mloda-ai/open-kgo/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mloda-ai/open-kgo/agents-md"><img src="https://agentmods.dev/badge/instructions/mloda-ai/open-kgo/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,264 This file is loaded in full into every session.
When invoked 1,264 The same file — it is already loaded in full.
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.1 $0.01264 $0.01264
Opus 5 $0.00632 $0.00632
Sonnet 5 $0.00253 $0.00253
Haiku 4.5 $0.00126 $0.00126

Measured 6d ago against content hash 13b56299b1ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

open-kgo 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 84 lines

How it starts

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

AGENTS.md

Must read README.md first.

This project uses the mloda framework. Assume any given task is related to mloda.

Environment

source .venv/bin/activate

Dependencies

Use uv to install dependencies:

uv sync --all-extras

Running checks

Use tox to run all checks:

tox

Run checks from the project virtualenv:

source .venv/bin/activate && tox

tox is the required final verification step after code or dependency changes. Running only pytest is not sufficient for completion.

Run individual checks

pytest
ruff format --check --line-length 120 .
ruff check .
mypy --strict --ignore-missing-imports .
bandit -c pyproject.toml -r -q .

Commit messages

Use Conventional Commit format for all commits so semantic versioning/release tooling can parse intent. Do not include Co-Authored-By lines or any other mention of AI agents in commit messages.

Examples:

  • fix: handle empty feature set
  • chore(deps): bump mloda to 0.4.6

Claude Code Skills

The mloda-registry provides Claude Code skills that assist with plugin development:

When helping with FeatureGroups, ComputeFrameworks, or Extenders, leverage these skills for pattern guidance and best practices.

Project Practices

tox is the gate. It runs pytest, then ruff format --check, ruff check, mypy --strict --ignore-missing-imports, and bandit. All of these must pass before a PR is mergeable. CVE scanning lives in a separate tox -e security environment that runs pip-audit; it is not part of the PR merge gate. Scheduled CVE scanning is left to GitHub's native Dependabot security alerts, with tox -e security available for on-demand local scans.

  • Python: supported range is >=3.10. The default tox env is python310.
  • Type hints: use modern forms (list[str], dict[str, int], X | None).
  • Formatting: ruff format with line length 120.
  • Tests: every new feature or bug fix must come with tests; follow the patterns in the existing open_kgo/.../tests/ trees.
  • Test contract harness (in-repo, not a published library): KG connectors are tested via a shared, inherited contract suite, the same pattern mloda-registry uses, but it currently lives inside this repo and is not packaged or published for external reuse (unlike mloda-registry's separate mloda-testing package). Structure: a universal KgConnectorContractBase in open_kgo/feature_groups/kg/tests/kg_contract.py, a per-family <Family>ContractTestBase in each open_kgo/feature_groups/kg/<family>/tests/kg_<family>_contract.py, the shared run_query/make_valid_credentials helpers in open_kgo/feature_groups/kg/tests/_helpers.py (reader discovery in _discovery.py), and the resource-cache loaders in the production module open_kgo/feature_groups/kg/fixtures.py (caches cleared per-test by open_kgo/feature_groups/kg/conftest.py). A holistic all-family smoke plus cross-family gap diagnostics live in open_kgo/feature_groups/kg/tests/test_kg_usage_smoke.py, test_kg_registry_integrity.py, and test_kg_catalog_declarations.py, all over the shared _family_cases.py registry. Each concrete plugin's test class subclasses its family base and supplies a few small adapter methods. When adding a connector, extend the existing family base rather than writing standalone tests. Note also that, unlike mloda-registry, there is no framework-adapter-mixin layer and no single canonical fixture dataset.
  • Supply chain: [tool.uv] exclude-newer = "7 days" in pyproject.toml defers new third-party dependency releases by 7 days; exclude-newer-package exempts the first-party mloda and mloda-testing packages from that cooldown (rolling "0 days"; mloda-registry is a third reserved entry, not yet an actual dependency), so mloda and mloda-testing releases are picked up immediately. override-dependencies pins two packages past what their own constraints allow: pymdown-extensions>=11.0.1 past marimo's <11 pin, because the fix for the b64 path-traversal advisory only ships in 11.0 and a constraint cannot beat an upper pin; and mloda>=0.11.0,<0.12.0, capping the floor so a breaking 0.12 release isn't picked up automatically. Do not edit these without a reason.
  • Commits: use Conventional Commits (feat:, fix:, chore:, docs:, test:, refactor:, style:, ci:, build:, perf:). semantic-release computes the next version: feat: triggers a minor bump, all other types trigger a patch bump (see .releaserc.yaml).

Read the full file on GitHub · 84 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. 6d ago First seen · 84 lines · 1,264 tokens per session scan A 13b56299b1ae

Subscribe to this mod's changes

open-kgo AGENTS.md is an instructions file published in the GitHub repository mloda-ai/open-kgo (11 stars, last pushed 2d ago), licensed Apache-2.0. It adds 1,264 tokens to every session, about $0.0063 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.