shardingsphere AGENTS.md

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

A repository instruction guide for contributing to Apache ShardingSphere, including where project rules come from and how they apply.

In plain words
What is it for?
Use it when working on ShardingSphere code, tests, commands, repository policy, or implementation tasks.
Why use it?
It gives a coding agent the project context needed to follow local policies and avoid unsafe or out-of-scope changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Codex; $skill-name invocation.

About the project

Apache ShardingSphere is a database enhancement layer that makes heterogeneous databases easier to access and govern as a unified system, without replacing the underlying databases. It supports distributed database capabilities such as sharding, read-write splitting, SQL federation, encryption, masking, auditing, and traffic control for enterprise data architectures.

apache/shardingsphere · 20,793 stars · on GitHub

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/apache/shardingsphere/agents-md.svg)](https://agentmods.dev/instructions/apache/shardingsphere/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/apache/shardingsphere/agents-md"><img src="https://agentmods.dev/badge/instructions/apache/shardingsphere/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,964 This file is loaded in full into every session.
When invoked 4,964 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.04964 $0.04964
Opus 5 $0.02482 $0.02482
Sonnet 5 $0.00993 $0.00993
Haiku 4.5 $0.00496 $0.00496

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

Security

Grade A, and why

shardingsphere 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 · 188 lines

How it starts

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

ShardingSphere Codex Development Guide

This repository guide is written for Codex. Keep only stable, repository-wide rules here and rely on Codex for ordinary coding competence. Follow every explicit rule literally; do not replace a repository rule with general judgment unless that rule authorizes it. Paths are relative to the repository root.

Instruction Sources and Routing

  1. CODE_OF_CONDUCT.md is the authority for contribution, Java, and unit-test style. Inspect the applicable section before changing code or tests and record it when it controls a decision.
  2. Before Maven, E2E, Proxy startup, database clients, IDE/MCP run configurations, commands likely to output more than 100 lines, or large structured analysis, read or reuse .codex/context/token-efficiency.md and follow its Mandatory Execution Contract.
  3. Before the first code-affecting write in a task, read .codex/skills/code-implementation/SKILL.md through EOF and follow it. Its implementation reference defines the repository Codex design style, and every in-scope violation in the effective candidate is a required finding. Code-affecting writes include every production, test, script, or other implementation artifact, including build logic, generated source, and behavior-affecting configuration. Read-only analysis or review, diagnosis-only work, and prose-only changes do not activate this write workflow. Reading a Skill never grants authority or expands scope.
  4. Automatic Skill catalog discovery is diagnostic only. If the catalog does not expose code-implementation but the exact repository file is readable, load it by exact path and continue. If a canonical source required for the current task is missing or unreadable, keep ordinary target writes read-only and report the blocker. Only an exact user-authorized policy or harness repair may use the constrained recovery procedure in .codex/harness/agents/policy-maintenance.md; that exception never applies to production or test code.
  5. For read-only code/test analysis, planning, design, or review, read .codex/skills/code-implementation/references/rules/implementation.md, .codex/skills/code-implementation/references/rules/testing.md, and .codex/skills/code-implementation/references/rules/artifact-removal-and-contract-impact.md through EOF without activating the write workflow. Apply each contract, impact, or removal rule only if triggered; read .codex/skills/code-implementation/references/rules/non-regression.md through EOF when reviewing a current-task candidate.
  6. Before every analysis or change that classifies an artifact as unused or removable, read .codex/skills/code-implementation/references/rules/artifact-removal-and-contract-impact.md through EOF and apply its complete evidence gate. When a current-task edit removes the last production consumer and the audit proves that no compatibility contract remains, apply its single-model convergence rule. This read-only route does not activate the code-writing workflow.
  7. For runtime diagnosis, read .codex/context/runtime-triage.md through EOF. Diagnosis remains read-only; if the user authorizes a fix, activate code-implementation before the first code-affecting write.
  8. Before selecting optional cross-cutting Skills for external-version decisions, public-contract design, unexpected failures, performance work, simplification, threat modeling, or high-risk decisions, read .codex/context/cross-cutting-skills.md through EOF and apply its exact triggers and limits.
  9. Before choosing, running, or assessing repository verification in any task, read .codex/skills/code-implementation/references/verification.md through EOF. Before handoff, read .codex/context/change-completion.md through EOF and apply every applicable completion step.
  10. Use repository Skills for specialized workflows instead of reproducing their detailed instructions here. Keep task-specific notes in the task, issue, or PR; do not add session notes to this file.

Read the full file on GitHub · 188 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. 2d ago First seen · 188 lines · 4,964 tokens per session scan A 3fc070510d38

Subscribe to this mod's changes

shardingsphere AGENTS.md is an instructions file published in the GitHub repository apache/shardingsphere (20,793 stars, last pushed today), licensed Apache-2.0. It adds 4,964 tokens to every session, about $0.0248 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-09-03.