floci-oci: Instructions file for Codex

AGENTS.md

floci-oci AGENTS.md is an instructions file for Codex, OpenCode from floci-io/floci-oci. It costs 4,441 tokens per session, scanned A, original, MIT.

Project instructions for floci-oci, a Java-based local emulator of Oracle Cloud Infrastructure (OCI), which is a cloud platform. The emulator aims to work with OCI’s software-development kits and command-line tools using the same network protocols.

In plain words
What is it for?
Use them when changing the REST controllers, services, stored models, protocol behavior, tests, or reference-based implementation of the OCI emulator.
Why use it?
They explain the project’s architecture and compatibility rules, helping agents preserve OCI request and response behavior while making focused changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

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 floci-oci AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/floci-io/floci-oci/agents-md"><img src="https://agentmods.dev/badge/instructions/floci-io/floci-oci/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,441 This file is loaded in full into every session.
When invoked 4,441 The same file — it is already loaded in full.
Security scan A 0 findings. 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.04441 $0.04441
Opus 5.5 $0.01776 $0.01776
Sonnet 5.5 $0.00888 $0.00888
Haiku 4.5 $0.00444 $0.00444

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

Security

Grade A, and why

floci-oci 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 19d 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 · 306 lines

How it starts

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

Agent Guide: floci-oci

Guidance for AI coding agents working in the floci-oci repository.

Project Overview

floci-oci is a Java-based local Oracle Cloud Infrastructure (OCI) emulator built on Quarkus. Its goal is full OCI SDK and OCI CLI compatibility through real OCI wire protocols, not convenience APIs. It is the OCI sibling of floci (AWS, port 4566), floci-az (Azure, 4577) and floci-gcp (GCP, 4588).

  • Port: 4599
  • Stack: Java 25, Quarkus, JUnit 5, RestAssured, Jackson
  • Package root: io.floci.oci
  • Config prefix: floci-oci.* / env FLOCI_OCI_*

First Principles

  1. Preserve OCI protocol compatibility
  2. Match OCI SDK and CLI behavior
  3. Reuse existing patterns
  4. Prefer correctness over convenience
  5. Keep changes narrow and testable

Critical rules:

  • Do not introduce custom endpoint shapes
  • Do not change request or response formats for convenience
  • Never invent protocol behavior: consult the reference sources under local/oracle/ (see "OCI Source as Reference" below; make refs downloads them)

Architecture

Layered: Controller (JAX-RS, parses OCI REST input) → Service (business logic, throws OciException) → Model (model/Stored*.java, @RegisterForReflection).

Core infrastructure (io.floci.oci.*):

  • config/EmulatorConfig: single @ConfigMapping(prefix = "floci-oci") interface
  • core/common/: OciException + OciExceptionMapper (error shape {"code":"...","message":"..."} + opc-request-id header), ServiceRegistry + ServiceDescriptor (self-registering), ServiceEnabledFilter (503 for disabled services), RequestContext (tenancy/user/region)
  • core/storage/: StorageBackend (memory/persistent/hybrid/wal via StorageFactory), TenancyAwareStorageBackend (keys prefixed by tenancy OCID)
  • core/common/docker/: sidecar container management
  • lifecycle/: EmulatorLifecycle, init hooks, /health + /_floci-oci/* endpoints

OCI Protocol Rules

  • Every service except Object Storage uses a date-versioned path prefix (Identity /20160918/…); Object Storage uses /n/{namespace}/b/{bucket}/o/{object}. JAX-RS @Path matching dispatches directly: there is no routing filter.
  • Errors: {"code": "...", "message": "..."} body + correct HTTP status. 404 is NotAuthorizedOrNotFound (OCI deliberately conflates the two).
  • Every response carries an opc-request-id header.
  • Pagination: limit/page query params in, opc-next-page response header out. Some list APIs return a bare JSON array: verify each against the SDK model.
  • OCIDs: ocid1.<type>.<realm>.<region>.<unique> (region omitted for global resources).
  • Auth: the Authorization: Signature … header is parsed for tenancy/user context only; the RSA signature is never verified.
  • Tenancy is the storage partition; compartment is a field on each resource filtered via ?compartmentId=. Do not conflate them.
  • Async operations return 202 + opc-work-request-id and are polled via work requests.

Read the full file on GitHub · 306 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. 19d ago Changed · +5 lines · +97 tokens per session 0009f3476c30
  2. 1mo ago Changed · +93 lines · +1,828 tokens per session ad54df9b2452
  3. 2mo ago Changed · +4 lines · +17 tokens per session 26b91a5206c1
  4. 2mo ago First seen · 204 lines · 2,499 tokens per session scan A e07e9ffa6c9a

Subscribe to this mod's changes

floci-oci AGENTS.md is an instructions file published in the GitHub repository floci-io/floci-oci (127 stars, last pushed yesterday), licensed MIT. It adds 4,441 tokens to every session, about $0.0178 per session on Opus 5.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

floci-oci AGENTS.md compared with instructions from other repositories

floci-oci AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
floci-oci AGENTS.mdfloci-io/floci-ociInstructions file127yesterdayMITA4,441Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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