primr: Instructions file for Codex

AGENTS.md

primr AGENTS.md is an instructions file for Codex, OpenCode from blisspixel/primr. It costs 4,191 tokens per session, scanned A, original, Apache-2.0.

Project instructions for using Primr, a research command-line tool and service. They explain when to operate Primr, when to modify its source code, and how its research paths are selected.

In plain words
What is it for?
Use them when an agent must run Primr for research, choose between its host-powered and provider-backed workflows, or decide which project guidance to read before changing Primr.
Why use it?
They prevent an agent from treating research usage and software development as the same task, and describe the available route for each.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions subagents.

This is blisspixel/primr's own configuration. It tells Codex and OpenCode how to work on primr 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 primr configures →

Reuse

Borrowing it

Nothing to install: this file belongs to blisspixel/primr. 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/blisspixel/primr/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/blisspixel/primr

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/blisspixel/primr/agents-md/github.svg)](https://agentmods.dev/instructions/blisspixel/primr/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/blisspixel/primr/agents-md"><img src="https://agentmods.dev/badge/instructions/blisspixel/primr/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 primr AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/blisspixel/primr/agents-md"><img src="https://agentmods.dev/badge/instructions/blisspixel/primr/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,191 This file is loaded in full into every session.
When invoked 4,191 The same file — it is already loaded in full.
Security scan A 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.04191 $0.04191
Opus 5.5 $0.01676 $0.01676
Sonnet 5.5 $0.00838 $0.00838
Haiku 4.5 $0.00419 $0.00419

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

Security

Grade A, and why

primr AGENTS.md scanned grade A 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

urllib) for scrape-tier evasion - that set is **closed**. A sixth client is a
AGENTS.md · 321 lines

How it starts

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

AGENTS.md - the contract for building primr

You are working on the primr codebase. This file is the development contract and context map: read it before writing code. It is the single canonical guide for any contributor (human or agent). Tools that read the agents.md format load it natively; Claude Code loads it through the one-line CLAUDE.md import (@AGENTS.md). Keep agent guidance here, not in a second file, and keep tool settings (permissions, hooks) in each tool's own configuration rather than in prose.

Operating primr is a different guide. To use the primr CLI or MCP for research, read clients/primr-operator.md, the operator guide that users copy into their own workspace as AGENTS.md. This file is about changing primr's source.

The bar: code any human or AI could admire - tidy, consistent, secure, well-tested. We are not making slopware. The rules below exist because AI-assisted code reliably regresses on exactly these axes (duplication, inconsistent patterns, stale APIs, silent insecurity) unless held to a contract.

Quick Start

primr turns a company name and website into sourced, long-form strategic reports. It is a CLI-first, local-first Python package (src/ layout), an LLM API client + adaptive scraper + MCP/A2A agent - it trains and serves no models. To work on it:

The enduring product boundary is the Company Analyst Product Contract: the bare company-and-website invocation must produce exceptional researched, long-form Strategic Overview and YAML-defined strategy artifacts as reliable Word and Markdown files. Architecture, routing, ledgers, memory, and agent surfaces are supporting capabilities, not replacement products.

Primr researches and ideates. It writes a deep Strategic Overview from site, hiring, news, recon, and industry research, then an AI Strategy and an optional skill pack that ideate from what it learned. Facts are cited where sources exist; strategy is informed reasoning because companies rarely publish it. Never frame report quality as fact verification. The hard floors (citations resolve, artifacts render, spend is gated) stay.

Read the full file on GitHub · 321 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. 8d ago Changed · +24 lines · -1,465 tokens per session 71d362666b5e
  2. 16d ago Changed 289d112af7e2
  3. 24d ago Changed · +30 tokens per session c7035ea23c45
  4. 1mo ago Changed · +10 lines · +213 tokens per session 8527e4a1e1f4
  5. 2mo ago First seen · 287 lines · 5,413 tokens per session scan A 8711accb0f7c

Subscribe to this mod's changes

primr AGENTS.md is an instructions file published in the GitHub repository blisspixel/primr (3 stars, last pushed 9d ago), licensed Apache-2.0. It adds 4,191 tokens to every session, about $0.0168 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

primr AGENTS.md compared with instructions from other repositories

primr AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
primr AGENTS.mdblisspixel/primrInstructions file39d agoApache-2.0A4,191Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode