camel AGENTS.md

Repository instructions for AI coding agents working on Apache Camel, a Java framework for connecting systems and routing data between them. They define project requirements and rules for agent-created commits, comments, and pull requests.

In plain words
What is it for?
Use them when an AI agent edits Apache Camel, creates commits or pull requests, or adds comments to GitHub and issue-tracking discussions.
Why use it?
They reduce inconsistent attribution, excessive pull requests, and changes that do not follow the project’s contribution rules.

Instructions file for CodexOpenCode

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/apache/camel/agents-md
Clone the repo
git clone --depth 1 https://github.com/apache/camel

Made for: Codex, OpenCode.

Per session 7,481 This file is loaded in full into every session.
When invoked 7,481 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 $0.07481 $0.07481
Opus 5 $0.03741 $0.03741
Sonnet 5 $0.01496 $0.01496
Haiku 4.5 $0.00748 $0.00748

Measured 2d ago against content hash c275c79a8803, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

camel 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 · 628 lines

How it starts

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

Apache Camel - AI Agent Guidelines

Guidelines for AI agents working on this codebase.

Project Info

Apache Camel is an integration framework supporting routing rules in Java, XML and YAML DSLs.

  • Version: 4.23.0-SNAPSHOT
  • Java: 17+
  • Build: Maven 3.9.12+

AI Agent Rules of Engagement

These rules apply to ALL AI agents working on this codebase.

Attribution

  • All AI-generated content (GitHub PR descriptions, review comments, JIRA comments) MUST clearly identify itself as AI-generated and mention the human operator. Example: "Claude Code on behalf of [Human Name]"
  • Never guess or hallucinate the operator's name. Always determine it programmatically:
    • Use gh api /user --jq '.login' to get the authenticated GitHub username.
    • If for any reason the lookup fails, omit the name rather than guessing.
  • AI coding agents MUST be configured to add co-authorship trailers to commits (e.g., Co-authored-by). For Claude Code, enable this via the attribution settings.

PR Volume

  • An agent MUST NOT open more than 10 PRs per day per operator to ensure human reviewers can keep up.
  • Prioritize quality over quantity — fewer well-tested PRs are better than many shallow ones.

Git branch

  • An agent MUST NEVER push commits to a branch it did not create.
  • If a contributor's PR needs changes, the agent may suggest changes via review comments, but must not push to their branch without explicit permission.
  • An agent MUST use its own fork to push branches instead of the main apache/camel repository. Pushing directly to the upstream repo fills it with stale branches that waste CI time and disk space for all contributors. A pr-cleanup-branches.yml workflow deletes non-protected branches when their PR is closed, but using a fork avoids the problem entirely.
  • An agent must provide a useful name for the git branch. It should contain the global topic and issue number if possible.
  • After a Pull Request is merged or rejected, the branch MUST be deleted. The pr-cleanup-branches.yml workflow handles this automatically for branches pushed directly to apache/camel, but agents using forks must delete their remote branch manually.

Read the full file on GitHub · 628 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 First seen · 628 lines · 7,481 tokens per session scan A c275c79a8803

Subscribe to this mod's changes

camel AGENTS.md is an instructions file published in the GitHub repository apache/camel (6,306 stars, last pushed 2d ago), licensed Apache-2.0. It adds 7,481 tokens to every session, about $0.0374 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.

Related

Other instructions, from other repositories