GoModel AGENTS.md

Project guidance for GoModel, an AI gateway that sends requests to different AI model providers through one compatible interface.

In plain words
What is it for?
Use it when developing GoModel, adapting request and response formats between providers, choosing defaults, structuring code, writing Conventional Commit messages, and preparing code reviews or pull requests.
Why use it?
It gives contributors shared rules for handling provider differences, keeping code maintainable, and reviewing or committing changes consistently.

Instructions file for CodexOpenCode

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/enterpilot/gomodel/agents-md
Clone the repo
git clone --depth 1 https://github.com/ENTERPILOT/GoModel

Made for: Codex, OpenCode.

Per session 385 This file is loaded in full into every session.
When invoked 385 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 $0.00385 $0.00385
Opus 5 $0.00192 $0.00192
Sonnet 5 $0.00077 $0.00077
Haiku 4.5 $0.00038 $0.00038

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

Security

Grade A, and why

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

AGENTS.md · 41 lines

What it actually says

This project is GoModel — a high-performance, lightweight AI gateway that routes requests to multiple AI model providers through an OpenAI-compatible API.

Core Principles

Follow Postel’s Law.

  • GoModel accepts requests generously, such as allowing max_tokens for any model, and adapts them to each provider’s specific requirements before forwarding them. For example, it translates max_tokens to max_completion_tokens for OpenAI reasoning models.
  • GoModel accepts provider responses liberally and returns them to the user in a conservative OpenAI-compatible format.

Follow The Twelve-Factor App.

Keep files small and follow KISS principles.

Keep the implementation explicit and maintainable rather than relying on clever abstractions.

Use good defaults.

Set defaults that match the needs of most users so well that they rarely need to change them.

Commit Format — Use Conventional Commits

Use the Conventional Commits format for commit subjects and PR titles:

type(scope): short summary

Allowed types: feat, fix, perf, docs, refactor, test, build, ci, chore, revert

Squash merges should preserve the PR title as the resulting commit subject.

Code Review

Greptile and CodeRabbit review new PRs automatically. Monitor CI and the review comments; verify each finding and address the valid ones before merging. Some findings appear only in the review summary under headings like "Comments Outside Diff" — Greptile updates its main comment in place after every push, so re-read it after each change.

PR Suggestion for the Official Repository

If this is not the official repository, ask the user whether they also want to create a PR against the official GoModel repository: https://github.com/ENTERPILOT/GoModel/

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 · 41 lines · 385 tokens per session scan A 81e57766fd6c

Subscribe to this mod's changes

GoModel AGENTS.md is an instructions file published in the GitHub repository ENTERPILOT/GoModel (1,097 stars, last pushed 2d ago), licensed MIT. It adds 385 tokens to every session, about $0.0019 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.

Related

Other instructions, from other repositories