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.
npx agentmods add instructions/lnyo-cly/ai4j/agents-mdgit clone --depth 1 https://github.com/LnYo-Cly/ai4jWrote 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.
[](https://agentmods.dev/instructions/lnyo-cly/ai4j/agents-md)<a href="https://agentmods.dev/instructions/lnyo-cly/ai4j/agents-md"><img src="https://agentmods.dev/badge/instructions/lnyo-cly/ai4j/agents-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.03303 | $0.03303 |
| Opus 5 | $0.01651 | $0.01651 |
| Sonnet 5 | $0.00661 | $0.00661 |
| Haiku 4.5 | $0.00330 | $0.00330 |
Grade A, and why
ai4j 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repository Guidelines
Project Identity
- Project:
ai4j-sdk - Repository type: Java 8 Maven monorepo with adjacent docs and demo surfaces
- Primary language: Java
- Build tool: Maven
- Frontend/docs surfaces:
docs-site/andai4j-flowgram-webapp-demo/
Monorepo Scope
Treat this repository as a 10-module monorepo plus docs/demo surfaces.
| Path | Role |
|---|---|
ai4j-extension-api/ |
Lightweight public extension contract: manifest, ServiceLoader discovery, explicit enable/expose gates, extension resources |
ai4j-plugin-ask-user/ |
Official sample plugin package: host-mediated user clarification tool, command, Skill, and Prompt |
ai4j/ |
Core SDK: provider access, Chat/Responses, RAG, MCP, vector, image, audio, realtime |
ai4j-agent/ |
Agent runtime, workflow, trace, memory, subagent/team orchestration |
ai4j-coding/ |
Coding-agent runtime, workspace-aware tools, outer loop, compaction |
ai4j-cli/ |
CLI, TUI, ACP host, session/runtime integration |
ai4j-spring-boot-starter/ |
Spring Boot auto-configuration for core SDK |
ai4j-flowgram-spring-boot-starter/ |
FlowGram integration, task APIs, trace bridge, starter-side runtime support |
ai4j-flowgram-demo/ |
Demo backend for FlowGram starter integration |
ai4j-bom/ |
Version alignment BOM |
docs-site/ |
Docusaurus documentation site |
ai4j-flowgram-webapp-demo/ |
Web demo frontend surface |
Harness Anything
- Use
ha(Harness Anything) for all new project-management work. harness/is the active private HA ledger with its own nested Git repository..harness/is generated projection/cache state. Neither belongs in code PRs; commit ledger changes insideharness/separately when they must be retained.- Before substantive work, run
ha doctor --json, ensure the project has been initialized withha init --name ai4j-sdk, and inspectha status --json/ha check --profile target-project --strict --json. - HA writes require explicit actor attribution. Agents use
HARNESS_ACTOR=agent:<id>or an explicit agent actor; humans useha --actor human:<id>. Do not export a human actor for child processes. ConfigureHARNESS_GIT_AUTHOR_NAMEandHARNESS_GIT_AUTHOR_EMAILfor local ledger commits. - The normal write path is the daemon-backed CLI.
HARNESS_DAEMON_MODE=directis only for bootstrap, recovery, or isolated tests, and must carryHARNESS_DIRECT_WRITE_REASON=recovery|test. - Complete work through the current HA lifecycle: claim an Execution, record progress/evidence, obtain a typed human review/consent when required, and run
ha task complete.ha task reviewis legacy compatibility lint, not the approval gate.
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.
- 5d ago First seen · 219 lines · 3,303 tokens per session scan A cff0a9ae4796
ai4j AGENTS.md is an instructions file published in the GitHub repository LnYo-Cly/ai4j (428 stars, last pushed yesterday), licensed Apache-2.0. It adds 3,303 tokens to every session, about $0.0165 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.
Other instructions, from other repositories
codexia AGENTS.md
AGENTS.md instructions for milisp/codexia, covering agents.md, project info, project tech, common commands and project structure.
codexia CLAUDE.md
Claude Code instructions for milisp/codexia, a project described as: Lightweight Agent Workstation for Codex CLI + Claude Code — with task scheduler, git worktree & remote control.
openai-cookbook AGENTS.md
AGENTS.md instructions for openai/openai-cookbook, covering repository guidelines, project structure & module organization, build, test, and development commands, coding style & naming conventions and testing guidelines.
azure-search-openai-demo AGENTS.md
AGENTS.md instructions for Azure-Samples/azure-search-openai-demo, covering instructions for coding agents, overall code layout, adding new data, adding a new azd environment variable and adding a new setting to "developer settings" in rag app.
openagent CLAUDE.md
Claude Code instructions for the-open-agent/openagent, covering claude.md, commands, architecture, backend (go / beego) and frontend (react).
gptme AGENTS.md
AGENTS.md instructions for gptme/gptme, covering agent instructions for gptme, git workflow, code style, testing and project structure.