TibiaWikiApi: Instructions file for Codex

AGENTS.md

TibiaWikiApi AGENTS.md is an instructions file for Codex, OpenCode from benjaminkomen/TibiaWikiApi. It costs 2,541 tokens per session, scanned A, original, MIT.

Project instructions for TibiaWikiApi, a Kotlin and Spring Boot web service that provides data from TibiaWiki through a REST API.

In plain words
What is it for?
Use them when building, running, testing, or changing the API and its Kotlin integration tests.
Why use it?
They clarify the required Java and Gradle versions, build commands, tests, deployment details, and repository conventions.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/benjaminkomen/tibiawikiapi/agents-md"><img src="https://agentmods.dev/badge/instructions/benjaminkomen/tibiawikiapi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,541 This file is loaded in full into every session.
When invoked 2,541 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.02541 $0.02541
Opus 5.5 $0.01016 $0.01016
Sonnet 5.5 $0.00508 $0.00508
Haiku 4.5 $0.00254 $0.00254

Measured 1mo ago against content hash 0594e418f84e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

TibiaWikiApi 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 1mo 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 · 147 lines

How it starts

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

TibiaWikiApi — agent notes

What this is

Spring Boot REST API over TibiaWiki (Fandom). Public Swagger: https://tibiawiki.dev. Deployed to GCP Cloud Run (cloudbuild.yaml). Resource list and ?expand=true: README.md.

Stack

  • JDK 25 (java.toolchain and Kotlin jvmTarget 25 in build.gradle.kts). Gradle wrapper 9.7.1 — always use ./gradlew.
  • Kotlin 2.4.10, Spring Boot 4.1.1.
  • Layout: production, unit, and integration code is Kotlin under src/main/kotlin, src/test/kotlin, and src/integrationTest/kotlin.

Build / run

JDK 25 required.

./gradlew build
./gradlew bootRun          # http://localhost:8080 — default profile is live jwiki → Fandom

GitHub Actions Gradle workflow is .github/workflows/buid.yml (filename typo; do not rename unless asked).

Tests (Gradle)

CI (buid.yml) runs:

./gradlew ktlintCheck jacocoTestReport

jacocoTestReport depends on check, which also runs the integrationTest source set. A slice of those ITs (FixturesProfileIT) uses @ActiveProfiles("fixtures") and the real FixtureArticleRepository — no mocks and no Fandom. ktlint is the style checker — do not add a style guide.

Cloud Run uses the default profile (live JwikiArticleRepository, LOGGING_JSON=true). When changing beans, constructors, logging, or Boot config: add or keep a default (or prod-like) profile IT that constructs real beans (DefaultProfileWikiBeansIT). Fixtures and @MockitoBean alone do not cover that path. Prod env flags that affect logging (e.g. LOGGING_JSON=true) must be exercised in CI (LoggingJsonActuatorIT).

The Bun harness in regression/ is not part of the Gradle test task.

Docker ENTRYPOINT / PORT (critical)

Cloud Run injects PORT. Bind it in Spring only: server.port=${PORT:8080} in application.properties. The production image ENTRYPOINT must be exec-form java with no $ / $$ / sh -c:

ENTRYPOINT ["java", "-Dserver.address=0.0.0.0", "-jar", "/project/TibiaWikiApi.jar"]

Read the full file on GitHub · 147 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. 1mo ago Changed · +3 lines · +66 tokens per session 0594e418f84e
  2. 1mo ago Changed · +5 lines · +98 tokens per session a6c723bd51bf
  3. 1mo ago Changed · -9 lines · -50 tokens per session 238a5e740172
  4. 1mo ago Changed · +18 lines · +178 tokens per session c004b44bd537
  5. 1mo ago Changed · +7 lines · +65 tokens per session d7eaa1448721
  6. 2mo ago First seen · 123 lines · 2,184 tokens per session scan A 5ed95042c8f5

Subscribe to this mod's changes

TibiaWikiApi AGENTS.md is an instructions file published in the GitHub repository benjaminkomen/TibiaWikiApi (41 stars, last pushed 4d ago), licensed MIT. It adds 2,541 tokens to every session, about $0.0102 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

TibiaWikiApi AGENTS.md compared with instructions from other repositories

TibiaWikiApi AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
TibiaWikiApi AGENTS.mdbenjaminkomen/TibiaWikiApiInstructions file414d agoMITA2,541Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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