ph-compliance-mcp: Instructions file for Codex

AGENTS.md

ph-compliance-mcp AGENTS.md is an instructions file for Codex, OpenCode from andreibrosmaster/ph-compliance-mcp. It costs 1,187 tokens per session, scanned A, original, Apache-2.0.

A repository operating manual for AI coding agents working on a Philippine legal-compliance project. It defines the reading order and a scan, audit, plan, confirmation, implementation, verification, and documentation workflow.

In plain words
What is it for?
Use it to guide work in the repository, keep project documentation aligned, follow its phased process, and preserve the required author and commit-message rules.
Why use it?
It gives agents project-specific rules and context before they change code, reducing the risk of skipping required documents, decisions, or checks.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; built for cline.

This is andreibrosmaster/ph-compliance-mcp's own configuration. It tells Codex and OpenCode how to work on ph-compliance-mcp 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 ph-compliance-mcp configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/andreibrosmaster/ph-compliance-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/andreibrosmaster/ph-compliance-mcp

Made for: Codex, OpenCode.

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 ph-compliance-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/andreibrosmaster/ph-compliance-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/andreibrosmaster/ph-compliance-mcp/agents-md)
Your own site
<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.

agentmods 80×15 button for ph-compliance-mcp AGENTS.md

Your own site · 80×15
<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>
Per session 1,187 This file is loaded in full into every session.
When invoked 1,187 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 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.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

Measured 2mo ago against content hash 1ea1a9fc59df, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 74 lines

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 checkboxes
  • docs/adr/ — decisions, before re-deciding something
  • llms.txt + docs/seo.md — the public identity and GEO surface; keep them in sync

Rules

  1. 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-msg guard rejects these mechanically — do not bypass it.
  2. 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 new ph-legal strings (the pre-ADR-004 codename; the directory was renamed ph-compliance-mcp/ on 2026-08-03).
  3. 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).
  4. ADR discipline. Any architectural decision gets an ADR in docs/adr/ (next number). Update ADRs you materially change.
  5. FTS5 first. src/retrieval/fts-search.ts + confidence.ts are the V1 retrieval path. No vector/hybrid files before Phase 5.
  6. No synthesis without citation. Tool responses carry structured citations; below confidence threshold → "insufficient corpus coverage."
  7. Provenance on everything ingested. URL + retrieval date + content hash.
  8. Checksums are load-bearing. corpus-loader.ts verifies each asset's SHA-256 before caching; on mismatch it refuses to load and reports clearly.
  9. 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_HINTS acronyms must use \b…\b so "SEC" cannot match inside "SECURITY" (misdetects SSS/GSIS documents as the SEC).
  10. Eval before release. The eval suite (evals/golden/evaluation.xml — 10 QA pairs seeded; run-eval.ts harness 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 for inputSchema/outputSchema, all four annotations (readOnly/destructive/idempotent/openWorld), and returns structuredContent (never truncated) alongside a text rendering. The SDK runtime-validates structuredContent against outputSchema — 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); registerResource is the 4-arg form with URL callbacks.
  11. Document every session. Write ../second-brain/sessions/<date>-<phase>.md, update state.md and roadmap checkboxes. Context does not survive resets — the brain does.

Read the full file on GitHub · 74 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. 2mo ago Changed · +10 tokens per session 1ea1a9fc59df
  2. 2mo ago First seen · 74 lines · 1,177 tokens per session scan A 23b44690aa2a

Subscribe to this mod's changes

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.

Related

ph-compliance-mcp AGENTS.md compared with instructions from other repositories

ph-compliance-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ph-compliance-mcp AGENTS.mdandreibrosmaster/ph-compliance-mcpInstructions file1yesterdayApache-2.0A1,187Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot