ekbatan: Instructions file for Codex

AGENTS.md

ekbatan AGENTS.md is an instructions file for Codex, OpenCode from ekbatan-io/ekbatan. It costs 18,323 tokens per session, scanned A, original, Apache-2.0.

A project guide for AI coding agents working on Ekbatan, a Java library for saving business data and event records together in one database transaction.

In plain words
What is it for?
Use it when navigating Ekbatan modules, understanding its domain layer, or changing actions, database persistence, and event logging.
Why use it?
It explains the project’s architecture and its all-or-nothing database workflow, so changes can fit the codebase’s design.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ekbatan-io/ekbatan/agents-md"><img src="https://agentmods.dev/badge/instructions/ekbatan-io/ekbatan/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18,323 This file is loaded in full into every session.
When invoked 18,323 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.18323 $0.18323
Opus 5.5 $0.07329 $0.07329
Sonnet 5.5 $0.03665 $0.03665
Haiku 4.5 $0.01832 $0.01832

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

Security

Grade A, and why

ekbatan 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 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.

Makes network callslowCapability

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

var customerThread = Thread.startVirtualThread(() -> customerService.fetch(params.customerId()));
AGENTS.md · 1,074 lines

How it starts

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

Agents Guide

This document provides detailed architectural context for AI agents working on the Ekbatan codebase.

Project Overview

Ekbatan is a Java persistence and action framework built as an alternative to Spring Data. It is a library, not a standalone application. Its central idea is that in most business applications, you don't just want to save data — you want to save what happened alongside the data itself, atomically, so that the database always tells a complete and consistent story.

The framework is structured around the concept of an Action — a unit of business work. An Action doesn't write anything to the database directly. Instead, it declares its intent: what should be created, what should be updated. These declarations accumulate in an ActionPlan — a staging area that holds all planned changes without touching the database. Only after the action's logic completes successfully does the ActionExecutor step in, open a single database transaction, and flush everything at once: the domain objects to their tables, and the event records to the eventlog schema. If any part fails, nothing is written. This all-or-nothing guarantee means the eventlog.events table naturally becomes a reliable outbox — a stream of committed business facts that can be tailed by a CDC connector or polled and forwarded to Kafka, Pulsar, or any message broker, enabling event-driven architectures without dual-write problems.

The framework draws a deliberate line between two kinds of persistent objects. A Model is a domain aggregate whose changes matter — every mutation produces a ModelEvent that gets persisted in the eventlog alongside the action that caused it. You extend Model when downstream systems need to know what happened: a wallet was created, money was deposited, an order was shipped. An Entity is simpler — it gets persisted and version-tracked, but its changes are not recorded as events. You extend Entity for supporting data where the history of individual mutations is irrelevant: lookup tables, configuration records, auxiliary references that participate in an action but don't need their own event trail.

Read the full file on GitHub · 1,074 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 023500d75900
  2. 23d ago Changed · +193 tokens per session 38f2308a35a3
  3. 2mo ago First seen · 1,074 lines · 18,130 tokens per session scan A 572bf7214846

Subscribe to this mod's changes

ekbatan AGENTS.md is an instructions file published in the GitHub repository ekbatan-io/ekbatan (22 stars, last pushed today), licensed Apache-2.0. It adds 18,323 tokens to every session, about $0.0733 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-30.

Related

Other instructions, from other repositories

vibetags com-example-service-OrderService.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for orderservice, rules for method calculatetax, rules for method processpayment, rules for method validateorder and context & focus.

PIsberg/vibetags · 553 tokens

vibetags com-example-security-SecurityConfig.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for securityconfig, locked status, rules for method getencryptionalgorithm, rules for method getkeyrotationhours and rules for method getmaxloginattempts.

PIsberg/vibetags · 281 tokens

vibetags com-example-service-TransactionalPaymentService.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for transactionalpaymentservice and strict exception handling.

PIsberg/vibetags · 104 tokens

vibetags com-example-concurrent-SessionCache.instructions.md

Instructions for PIsberg/vibetags, covering copilot instructions for sessioncache and thread-safety guarantee.

PIsberg/vibetags · 71 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens