Borrowing it
Nothing to install: this file belongs to andreibrosmaster/ph-compliance-mcp. 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/andreibrosmaster/ph-compliance-mcp/main/AGENTS.mdgit clone --depth 1 https://github.com/andreibrosmaster/ph-compliance-mcpWrote 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/andreibrosmaster/ph-compliance-mcp/agents-md)<a href="https://agentmods.dev/instructions/andreibrosmaster/ph-compliance-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/andreibrosmaster/ph-compliance-mcp/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/andreibrosmaster/ph-compliance-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/andreibrosmaster/ph-compliance-mcp/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.01187 | $0.01187 |
| Opus 5.5 | $0.00475 | $0.00475 |
| Sonnet 5.5 | $0.00237 | $0.00237 |
| Haiku 4.5 | $0.00119 | $0.00119 |
Grade A, and why
ph-compliance-mcp 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 2mo 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 — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — Working In This Repo
This project is executed by agents (Claude Code / OpenCode / Cline) under a SCAN → AUDIT → PLAN → CONFIRM → IMPLEMENT → VERIFY → DOCUMENT loop. This file is the operating manual.
Read first
../second-brain/state.md— current state and next actions (single source of truth)../second-brain/roadmap.md— phase checkboxesdocs/adr/— decisions, before re-deciding somethingllms.txt+docs/seo.md— the public identity and GEO surface; keep them in sync
Rules
- One phase at a time. Hand an agent one phase's task block plus the
sections it depends on — never the whole blueprint at once.
1b. Git attribution is the user, never the AI tool. Commit author and
committer are
andreibrosmaster <[email protected]>(set repo-local in.git/config). NEVER use a Codebuff/Codebuff-Team/ AI-tool identity as author or committer, and NEVER include "Codebuff", "Co-Authored-By", "Generated with …", or any AI-attribution trailer in commit messages or file text. The.githooks/commit-msgguard rejects these mechanically — do not bypass it. - Identity is
ph-compliance-mcp. The product is the Philippine Legal & Compliance MCP (ADR-004). Package name, server name (ph-compliance), resource scheme (ph-compliance://), env prefix (PH_COMPLIANCE_), README,llms.txt, and docs must all say this. Never introduce newph-legalstrings (the pre-ADR-004 codename; the directory was renamedph-compliance-mcp/on 2026-08-03). - Scope: legal + compliance, 15 domains. The V1 taxonomy is 15 domains (ADR-000 core 11 + ADR-004 compliance expansion: business-transactional, accounting, payroll, human-resources). Coverage includes statutes, jurisprudence, and NGA/LGU/GOCC issuances. New domains still go through an ADR. No embeddings before Phase 5 (ADR-002).
- ADR discipline. Any architectural decision gets an ADR in
docs/adr/(next number). Update ADRs you materially change. - FTS5 first.
src/retrieval/fts-search.ts+confidence.tsare the V1 retrieval path. No vector/hybrid files before Phase 5. - No synthesis without citation. Tool responses carry structured citations; below confidence threshold → "insufficient corpus coverage."
- Provenance on everything ingested. URL + retrieval date + content hash.
- Checksums are load-bearing.
corpus-loader.tsverifies each asset's SHA-256 before caching; on mismatch it refuses to load and reports clearly. - LOC budget.
scripts/check-loc-budget.mjs: warn >220 LOC, flag >350. Keep modules small. 8b. Agency acronyms are word-boundary anchored. In issuance normalizers,AGENCY_HINTSacronyms must use\b…\bso "SEC" cannot match inside "SECURITY" (misdetects SSS/GSIS documents as the SEC). - Eval before release. The eval suite (
evals/golden/evaluation.xml— 10 QA pairs seeded;run-eval.tsharness is Phase 5) becomes a hard release gate in Phase 5 (blueprint §12/§14) — don't regress it, don't skip it. 9b. MCP tool conventions (mcp-builder skill). Every tool registers with zod object schemas forinputSchema/outputSchema, all four annotations (readOnly/destructive/idempotent/openWorld), and returnsstructuredContent(never truncated) alongside a text rendering. The SDK runtime-validatesstructuredContentagainstoutputSchema— every branch (including "not found"/"insufficient coverage") must satisfy the schema, or the tool errors out. Target the SDK API of^1.30.0(peers: zod^3.25);registerResourceis the 4-arg form with URL callbacks. - Document every session. Write
../second-brain/sessions/<date>-<phase>.md, updatestate.mdand roadmap checkboxes. Context does not survive resets — the brain does.
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.
- 2mo ago Changed · +10 tokens per session 1ea1a9fc59df
- 2mo ago First seen · 74 lines · 1,177 tokens per session scan A 23b44690aa2a
ph-compliance-mcp AGENTS.md is an instructions file published in the GitHub repository andreibrosmaster/ph-compliance-mcp (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,187 tokens to every session, about $0.0047 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-31.
ph-compliance-mcp AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ph-compliance-mcp AGENTS.mdandreibrosmaster/ph-compliance-mcp | Instructions file | 1 | yesterday | Apache-2.0 | A | 1,187 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,649 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |