floci-oci AGENTS.md

floci-oci AGENTS.md is an instructions file for Codex, OpenCode from floci-io/floci-oci. It costs 2,516 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.

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/floci-io/floci-oci/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,516 This file is loaded in full into every session.
When invoked 2,516 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.02516 $0.02516
Opus 5 $0.01258 $0.01258
Sonnet 5 $0.00503 $0.00503
Haiku 4.5 $0.00252 $0.00252

Measured 2d ago against content hash 26b91a5206c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 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 · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 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 · 208 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 Changed · +4 lines · +17 tokens per session 26b91a5206c1
  2. 6d 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 (63 stars, last pushed 3d ago), licensed MIT. It adds 2,516 tokens to every session, about $0.0126 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.