Borrowing it
Nothing to install: this file belongs to dimagi/commcare-android. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/dimagi/commcare-android/master/AGENTS.mdgit clone --depth 1 https://github.com/dimagi/commcare-androidWrote 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/dimagi/commcare-android/agents-md)<a href="https://agentmods.dev/instructions/dimagi/commcare-android/agents-md"><img src="https://agentmods.dev/badge/instructions/dimagi/commcare-android/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.
<a href="https://agentmods.dev/instructions/dimagi/commcare-android/agents-md"><img src="https://agentmods.dev/badge/instructions/dimagi/commcare-android/agents-md.svg" alt="Reviewed on agentmods" width="80" 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.01657 | $0.01657 |
| Opus 5.5 | $0.00663 | $0.00663 |
| Sonnet 5.5 | $0.00331 | $0.00331 |
| Haiku 4.5 | $0.00166 | $0.00166 |
Grade B, and why
commcare-android AGENTS.md scanned grade B 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 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.
Enumerates other installed skillsmediumAgent snooping
Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.
**List the Confluence docs the change affects.** Those docs get updated when the app release containing the change goes out, so the PR only records which pages need it: user-facing changes must list them in the PR's **Do How it starts
The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AI Agent Development Guidelines for CommCare Android
Build
- Always use the Gradle wrapper (
./gradlew) from the commcare-android directory for building commcare-core
Project Overview
- CommCare Android is an open-source Android application for data collection and service delivery in low-resource settings
- CommCare Core is a shared Java library that provides core functionalities for CommCare's Android and Web Client
Concision (applies to all writing)
Commits, PR descriptions, code comments, and documentation default to concise and high-level, and never restate what is already clear from reading the code.
- Commit and PR bodies: convey the why and the shape of the change, not a walkthrough of the diff.
- Code comments: reserve for non-obvious why; never narrate what the code plainly does.
- Documentation: prefer one high-level sentence over a paragraph; touch only the lines a change affects.
Project Documentation
Tech documentation for this repo is organized by Gradle submodule and, within the main app module, by product area:
/docs/commcare/— CommCare-specific subsystems (e.g., translations)/docs/connect/— Connect-specific subsystems/docs/personalid/— PersonalID-specific subsystems (e.g., OAuth/SSO, photo management)/docs/(root) — cross-cutting subsystems that span multiple products (e.g., push notifications)commcare-support-library/docs/— docs for the standalonecommcare-support-libraryMaven artifact (e.g., third-party identity provider integration)
Before making any code change, search /docs and any module-level docs/ folders for documentation relevant to the area you're modifying. Update the corresponding doc when behavior, APIs, or data flow change.
List the Confluence docs the change affects. Those docs get updated when the app release containing the change goes out, so the PR only records which pages need it: user-facing changes must list them in the PR's Documentation section, or say "None". To find them, search Confluence for the features the branch changes and compare the results against the documentation links on the Jira ticket. In Claude Code, open the PR first with "Pending" under the Documentation header, then run the docs-affected-by-branch skill (.claude/skills/) on the branch in a subagent. It searches both the CommCare and Connect Confluence spaces. Pass the subagent the PR link and the Jira ticket key, and tell it to replace "Pending" with its findings when it is done. A subagent can't ask the user, so if you don't know the ticket, ask the user before opening the PR; pass "none" if there isn't one. Without Confluence access, ask the user which pages are affected. Never drop the section as empty.
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 · 107 lines · 1,657 tokens per session scan B dbec42615be9
commcare-android AGENTS.md is an instructions file published in the GitHub repository dimagi/commcare-android (48 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,657 tokens to every session, about $0.0066 per session on Opus 5.5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.
commcare-android AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| commcare-android AGENTS.mddimagi/commcare-android | Instructions file | 48 | yesterday | Apache-2.0 | B | 1,657 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 9,887 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 8,130 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 150k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 3,153 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 285k | 2d ago | MIT | A | 4,342 | Codex, OpenCode |