Polaris AGENTS.md

Polaris AGENTS.md is an instructions file for Codex, OpenCode from sponge-b0b/Polaris. It costs 2,256 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Polaris that define how coding agents should work, which project sources are authoritative, and which domain terms and secrets-handling rules to follow. AGENTS.md is a file used to give coding agents project-specific guidance.

In plain words
What is it for?
Use them at the start of Polaris tasks, especially when checking architecture, interpreting domain vocabulary, reviewing documentation, or deciding which source should control a change.
Why use it?
They help agents resolve conflicts between code, configuration, decisions, and documentation instead of silently choosing one source. They also prevent unnecessary loading of project context.

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/sponge-b0b/polaris/agents-md
Clone the repo
git clone --depth 1 https://github.com/sponge-b0b/Polaris

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 Polaris AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sponge-b0b/polaris/agents-md.svg)](https://agentmods.dev/instructions/sponge-b0b/polaris/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/sponge-b0b/polaris/agents-md"><img src="https://agentmods.dev/badge/instructions/sponge-b0b/polaris/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,256 This file is loaded in full into every session.
When invoked 2,256 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.02256 $0.02256
Opus 5 $0.01128 $0.01128
Sonnet 5 $0.00451 $0.00451
Haiku 4.5 $0.00226 $0.00226

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

Security

Grade A, and why

Polaris 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 today.

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 · 261 lines

How it starts

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

AGENTS.md

Purpose and Authority

These are the operating rules for coding agents working on Polaris.

AGENTS.md is primarily prescriptive agent policy: how an agent must work in this repository. It is not a second authoritative copy of project architecture.

At the start of a task:

  1. Match claims to the correct authority:

    • code, configuration, executable checks, and relevant tests outside legacy/ → current implementation reality;
    • accepted ADRs outside legacy/ → active architectural decisions;
    • active architecture documents outside legacy/ → current architectural description;
    • an active root wiki/entities/, when present → derived architectural knowledge;
    • legacy/v0_1/ → historical donor/reference material only, never current product, architecture, implementation, or workflow authority.
  2. If applicable authorities materially disagree, surface [source-conflict]. Do not silently choose whichever source makes the task easiest.

  3. Merge these repository rules with narrower user instructions for the active task.

Domain Vocabulary

Do not preload CONTEXT.md.

Read CONTEXT.md only when:

  • a domain term is ambiguous, contested, or new;
  • canonical domain vocabulary is required for the current work;
  • writing/updating an entity page where domain terminology is relevant;
  • running $domain-modeling.

Context compaction, conversation continuation, or task-state recovery does not by itself require re-reading CONTEXT.md.

If the required vocabulary is already established in the current task context, do not re-read CONTEXT.md unless it needs to be verified or refreshed.

CONTEXT.md is canonical domain vocabulary. Avoid duplicating it here.

Greenfield / Legacy Boundary

The canonical greenfield implementation lives under src/polaris/.

legacy/v0_1/ preserves the pre-greenfield Polaris platform as donor/reference material. New Polaris code, tests, configuration, migrations, tools, and runtime paths must not import, wrap, extend, execute through, or otherwise depend on legacy/.

Read the full file on GitHub · 261 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. today Changed · +13 lines · +383 tokens per session 2d75ea4b2324
  2. 5d ago First seen · 248 lines · 1,873 tokens per session scan A 94b45b438973

Subscribe to this mod's changes

Polaris AGENTS.md is an instructions file published in the GitHub repository sponge-b0b/Polaris (4 stars, last pushed today), licensed Apache-2.0. It adds 2,256 tokens to every session, about $0.0113 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-31.