oneringai AGENTS.md

oneringai AGENTS.md is an instructions file for Codex, OpenCode from aantich/oneringai. It costs 4,114 tokens per session, scanned A, original, MIT.

Repository instructions for coding agents that use or change the OneRingAI TypeScript package. They explain how to choose the right working mode and use the package's documented public interface.

In plain words
What is it for?
Use them when adding OneRingAI as a dependency or modifying its source repository, especially before writing or reviewing TypeScript code.
Why use it?
They prevent agents from guessing API names, importing private files, or using the wrong integration approach.

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/aantich/oneringai/agents-md
Clone the repo
git clone --depth 1 https://github.com/aantich/oneringai

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/aantich/oneringai/agents-md.svg)](https://agentmods.dev/instructions/aantich/oneringai/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/aantich/oneringai/agents-md"><img src="https://agentmods.dev/badge/instructions/aantich/oneringai/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,114 This file is loaded in full into every session.
When invoked 4,114 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.04114 $0.04114
Opus 5 $0.02057 $0.02057
Sonnet 5 $0.00823 $0.00823
Haiku 4.5 $0.00411 $0.00411

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

Security

Grade A, and why

oneringai 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 · 493 lines

How it starts

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

OneRingAI Agent Guide

This is the canonical, vendor-neutral guide for coding agents that use or modify @everworker/oneringai. It is written for OpenAI Codex, Claude Code, custom coding agents, and humans delegating integration work to them.

Read this file before generating OneRingAI code. For exhaustive detail, follow the documentation links near the end instead of guessing an API.

Fast facts

  • Package: @everworker/oneringai
  • Runtime: Node.js 22.13+ or 24+
  • Language: strict TypeScript
  • Package format: ESM with ESM and CJS build outputs
  • Public API: import from @everworker/oneringai unless a documented subpath is explicitly required
  • Architecture: connector-first, plugin-first context, one shared tool manager

Determine your operating mode

Using OneRingAI as a dependency

  • Import only from the package's public exports.
  • Do not import src/**, dist/**, or undocumented implementation paths.
  • Read the installed package's README.md, AGENTS.md, USER_GUIDE.md, and API_REFERENCE.md when they are available under node_modules/@everworker/oneringai/.
  • Prefer runnable patterns from examples/ in the repository over invented method names or provider-specific SDK calls.

Modifying the OneRingAI repository

  • Preserve the connector-first and plugin-first invariants below.
  • Relative TypeScript imports include the .js extension.
  • Use export type { X } for types and export { X } for runtime values.
  • Use errors from src/domain/errors/AIErrors.ts where applicable.
  • Do not hand-edit generated registries. Run the relevant generator.
  • Keep changes focused and validate them with the commands at the end.

The mental model

Application
  -> named Connector (credentials + service identity)
  -> Agent (model + instructions + tools + context)
  -> provider implementation

AgentContextNextGen
  -> context plugins (state, memory, catalog, workspace)
  -> one ToolManager shared by agent and context
  -> compaction and persistence

Read the full file on GitHub · 493 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 ed3d2eb7a78c
  2. 4d ago First seen · 493 lines · 4,114 tokens per session scan A 9c3e5bd2fa12

Subscribe to this mod's changes

oneringai AGENTS.md is an instructions file published in the GitHub repository aantich/oneringai (73 stars, last pushed 3d ago), licensed MIT. It adds 4,114 tokens to every session, about $0.0206 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.