ph-compliance-mcp AGENTS.md

ph-compliance-mcp AGENTS.md is an instructions file for Codex, OpenCode from andreibrosmaster/ph-compliance-mcp. It costs 1,177 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.

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/andreibrosmaster/ph-compliance-mcp/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,177 This file is loaded in full into every session.
When invoked 1,177 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.1 $0.01177 $0.01177
Opus 5 $0.00589 $0.00589
Sonnet 5 $0.00235 $0.00235
Haiku 4.5 $0.00118 $0.00118

Measured 5d ago against content hash 23b44690aa2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 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.

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 ph-legal-mcp/ directory is a historical artifact renamed at first git init).
  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. 5d 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 5d ago), licensed Apache-2.0. It adds 1,177 tokens to every session, about $0.0059 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-31.

Related

Other instructions, from other repositories