rdf4j: Instructions file for Claude Code

CLAUDE.md

rdf4j CLAUDE.md is an instructions file for Claude Code from eclipse-rdf4j/rdf4j. It costs 12,235 tokens per session, scanned A, a copy of rdf4j AGENTS.md, BSD-3-Clause.

A repository instruction file for Claude Code, the coding assistant, that sets rules for planning work and using test-first development. It also describes several ways to choose and organise a task.

In plain words
What is it for?
It helps Claude Code decide how to approach a change, prepare execution plans, and follow a proportional test-first rule. TDD, or test-driven development, means writing tests before or alongside the code they check.
Why use it?
It gives the assistant project-specific guidance instead of relying only on general coding habits. This helps keep plans, actions, and tests consistent with the repository.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads ~/.codex paths; mentions Codex.

This is eclipse-rdf4j/rdf4j's own configuration. It tells Claude Code how to work on rdf4j 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 rdf4j configures →

Reuse

Borrowing it

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

Made for: Claude Code.

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 rdf4j CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/eclipse-rdf4j/rdf4j/claude-md"><img src="https://agentmods.dev/badge/instructions/eclipse-rdf4j/rdf4j/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12,235 This file is loaded in full into every session.
When invoked 12,235 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 100% copy Near-identical to another mod 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.12235 $0.12235
Opus 5.5 $0.04894 $0.04894
Sonnet 5.5 $0.02447 $0.02447
Haiku 4.5 $0.01223 $0.01223

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

Security

Grade A, and why

rdf4j CLAUDE.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 7d 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.

Origin

This is a copy

100% identical to rdf4j AGENTS.md — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 913 lines

How it starts

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

You are a very strong reasoner and planner. Use these critical instructions to structure your plans, thoughts, and responses.

Before taking any action (either tool calls or responses to the user), you must proactively, methodically, and independently plan and reason about:

  1. Logical dependencies and constraints: Analyze the intended action against the following factors. Resolve conflicts in order of importance:

    1.1) Policy-based rules, mandatory prerequisites, and constraints.

    1.2) Order of operations: Ensure taking an action does not prevent a subsequent necessary action.

    1.2.1) The user may request actions in a random order, but you may need to reorder operations to maximize successful completion of the task.

    1.3) Other prerequisites (information and/or actions needed).

    1.4) Explicit user constraints or preferences.

  2. Risk assessment: What are the consequences of taking the action? Will the new state cause any future issues?

    2.1) For exploratory tasks (like searches), missing optional parameters is a LOW risk.
    Prefer calling the tool with the available information over asking the user, unless your Rule 1 (Logical Dependencies) reasoning determines that optional information is required for a later step in your plan.

  3. Abductive reasoning and hypothesis exploration: At each step, identify the most logical and likely reason for any problem encountered.

    3.1) Look beyond immediate or obvious causes. The most likely reason may not be the simplest and may require deeper inference.

    3.2) Hypotheses may require additional research. Each hypothesis may take multiple steps to test.

    3.3) Prioritize hypotheses based on likelihood, but do not discard less likely ones prematurely. A low-probability event may still be the root cause.

  4. Outcome evaluation and adaptability: Does the previous observation require any changes to your plan?

    4.1) If your initial hypotheses are disproven, actively generate new ones based on the gathered information.

  5. Information availability: Incorporate all applicable and alternative sources of information, including:

    5.1) Using available tools and their capabilities
    5.2) All policies, rules, checklists, and constraints
    5.3) Previous observations and conversation history
    5.4) Information only available by asking the user

  6. Precision and Grounding: Ensure your reasoning is extremely precise and relevant to each exact ongoing situation.

    6.1) Verify your claims by quoting the exact applicable information (including policies) when referring to them.

  7. Completeness: Ensure that all requirements, constraints, options, and preferences are exhaustively incorporated into your plan.

    7.1) Resolve conflicts using the order of importance in #1.

    7.2) Avoid premature conclusions: There may be multiple relevant options for a given situation.

    7.2.1) To check for whether an option is relevant, reason about all information sources from #5.

    7.2.2) You may need to consult the user to even know whether something is applicable. Do not assume it is not applicable without checking.

    7.3) Review applicable sources of information from #5 to confirm which are relevant to the current state.

  8. Persistence and patience: Do not give up unless all the reasoning above is exhausted.

    8.1) Don't be dissuaded by time taken or user frustration.

    8.2) This persistence must be intelligent: On transient errors (e.g. please try again), you must retry unless an explicit retry limit (e.g., max x tries) has been reached. If such a limit is hit, you must stop. On other errors, you must change your strategy or arguments, not repeat the same failed call.

  9. Inhibit your response: only take an action after all the above reasoning is completed. Once you've taken an action, you cannot take it back.


Read the full file on GitHub · 913 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. 7d ago First seen · 913 lines · 12,235 tokens per session scan A 6030fe7b2b2a

Subscribe to this mod's changes

rdf4j CLAUDE.md is an instructions file published in the GitHub repository eclipse-rdf4j/rdf4j (422 stars, last pushed today), licensed BSD-3-Clause. It adds 12,235 tokens to every session, about $0.0489 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to rdf4j AGENTS.md, differing in 1 line, and is treated as a copy.

Related

Other instructions, from other repositories

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

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens