Borrowing it
Nothing to install: this file belongs to logly/mureo. 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/logly/mureo/main/AGENTS.mdgit clone --depth 1 https://github.com/logly/mureoWrote 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/logly/mureo/agents-md)<a href="https://agentmods.dev/instructions/logly/mureo/agents-md"><img src="https://agentmods.dev/badge/instructions/logly/mureo/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/logly/mureo/agents-md"><img src="https://agentmods.dev/badge/instructions/logly/mureo/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.17361 | $0.17361 |
| Opus 5.5 | $0.06944 | $0.06944 |
| Sonnet 5.5 | $0.03472 | $0.03472 |
| Haiku 4.5 | $0.01736 | $0.01736 |
Grade A, and why
mureo 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.
How it starts
The opening of the file, as written. The whole thing — 773 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Guidelines for AI agents contributing to the mureo codebase.
Project Overview
mureo — your local-first AI ad ops crew. Find waste, audit changes, run ad accounts safely.
Works with Claude Code, Cursor, Codex & Gemini. mureo sits on top of the official ad-platform MCPs and gives your AI a strategy to follow, an outcome to be measured against, and an audit trail you can show to anyone — credentials never leave your machine.
mureo combines strategy context, workflow commands, and domain knowledge to help AI agents achieve marketing goals across platforms. Provides MCP tools for direct platform operations and workflow commands for strategy-driven ad operations via Claude Code slash commands. Designed for AI agents — no database, no LLM SDK, no web framework.
Build & Test
pip install -e ".[dev]"
pytest tests/ -v
pytest tests/ --cov=mureo --cov-report=term-missing
# Browser assets (only when mureo/_data/web/ changes). Node's built-in
# runner — no package.json, no dependencies, no build step.
node --test tests/js/*.test.js
Architecture
mureo/
├── google_ads/ # Google Ads API client (Mixin composition)
│ ├── client.py # GoogleAdsApiClient (main entry)
│ ├── mappers.py # Response mapping to structured dicts
│ ├── _enum_names.py # map_enum_name + SDK-derived int->name maps (raw protobuf has no .name, #588)
│ ├── _placement_mappers.py # Negative-placement + group_placement_view row mappers (#544/#547)
│ ├── _ads.py # AdsMixin (RSA create/update/status/list)
│ ├── _ads_display.py # DisplayAdsMixin (RDA create + RDAUploadError)
│ ├── _asset_groups.py # AssetGroupsMixin (Performance Max asset groups: one read for
│ │ # text + images, and the text swap via one atomic
│ │ # GoogleAdsService.mutate, #590/#626). Owns both field-type
│ │ # tables — text width limits and image dimension rules
│ ├── _asset_groups_images.py # AssetGroupImagesMixin (the P-MAX image swap, #626:
│ │ # existing asset id or local upload, one atomic mutate)
│ ├── _keywords.py # KeywordsMixin (add/remove/suggest/diagnose)
│ ├── _placements.py # PlacementsMixin (negative placements: sites/apps/app categories, #544)
│ ├── _analysis.py # AnalysisMixin aggregator, composing the split modules below
│ ├── _analysis_auction.py / _analysis_btob.py / _analysis_budget.py # + _analysis_constants.py
│ ├── _analysis_keywords.py / _analysis_performance.py / _analysis_rsa.py / _analysis_search_terms.py
│ ├── _diagnostics.py # DiagnosticsMixin (campaign diagnosis, one method per delivery check)
│ ├── _extensions.py # ExtensionsMixin aggregator, composing the split modules below
│ ├── _extensions_callouts.py / _extensions_conversions.py / _extensions_sitelinks.py / _extensions_targeting.py
│ ├── _monitoring.py # MonitoringMixin (anomaly detection/reporting)
│ ├── _creative.py # CreativeMixin (LP analysis/message match)
│ ├── _media.py # MediaMixin (image asset upload)
│ ├── _rsa_validator.py # RSA ad text validator
│ ├── _rda_validator.py # RDA input validator (display ads)
│ ├── _message_match.py # LP screenshot capture (Playwright, SSRF-guarded)
│ ├── _gaql_validator.py # GAQL input validators (ASCII-only ID/date whitelists — see below)
│ ├── _date_ranges.py # Period-over-period comparison windows (SDK-free, #809)
│ └── accounts.py # Accessible-customer / account listing
├── meta_ads/ # Meta Ads API client (Mixin composition)
│ ├── client.py # MetaAdsApiClient (main entry)
│ ├── mappers.py # Response mapping
│ ├── _campaigns.py # CampaignsMixin
│ ├── _ad_sets.py # AdSetsMixin
│ ├── _ads.py # AdsMixin
│ ├── _creatives.py # CreativesMixin (image/carousel/collection/dynamic)
│ ├── _videos.py # VideosMixin (AdVideo upload/status/thumbnails)
│ ├── _audiences.py # AudiencesMixin
│ ├── _pixels.py # PixelsMixin
│ ├── _placement_exclusions.py # PlacementExclusionsMixin (ad-set publisher exclusions, #544)
│ ├── _insights.py # InsightsMixin
│ ├── _analysis.py # AnalysisMixin
│ ├── _catalog.py # CatalogMixin (product catalogs/feeds)
│ ├── _conversions.py # ConversionsMixin (Conversions API / CAPI)
│ ├── _hash_utils.py # SHA-256 PII hashing for CAPI
│ ├── _leads.py # LeadsMixin (lead forms/leads)
│ ├── _page_posts.py # PagePostsMixin (page posts/boost, page photos for an Instant Form cover)
│ ├── _instagram.py # InstagramMixin (accounts/media/boost)
│ ├── _split_test.py # SplitTestMixin (A/B split tests)
│ ├── _ad_rules.py # AdRulesMixin (automated rules)
│ ├── _conversion_count.py # Conversion-count parsing helper
│ ├── _graph_error.py # Graph error detail formatter (never the raw body)
│ ├── id_binding.py # verify_ids: object ids bound to the run's ad-account allow-list (#1068)
│ ├── _period.py # Date-period resolution helper
│ └── accounts.py # Ad-account listing
├── search_console/ # Google Search Console API client (reuses Google OAuth2 credentials)
│ └── client.py # SearchConsoleApiClient
├── amazon_ads/ # Amazon Ads official-MCP bridge (mureo-mediated, #113/#121)
│ ├── bridge.py # AmazonAdsBridge — MCPToolProvider (pure mcp_tools() + forwarding handler)
│ ├── endpoints.py # Regional endpoint URLs (na / eu / fe) + request headers
│ ├── lwa.py # Login with Amazon token exchange (mint / refresh)
│ ├── manifest.py # `mureo amazon refresh-manifest` → ~/.mureo/amazon_tools.json
│ └── provider.py # Registry registration for the in-tree bridge (first-wins on `amazon_ads`)
├── chatgpt_ads/ # ChatGPT Ads bundled provider over OpenAI's Advertiser API (#992-#995);
│ │ # reads, changes, creates and archives; imports neither mcp nor web
│ ├── _api.py # Base URL, OpenAPI version read, timeout / retry / page-size / throttle constants
│ ├── _errors.py # ChatGPTAdsAPIError + error_from_response: the one error-body reader
│ ├── _hashing.py # Custom-audience identifier normalisation and SHA-256 hashing
│ ├── _period.py # `period` vocabulary resolved in the ad account's time zone
│ ├── _validation.py # Argument checks shared by the handler modules
│ ├── client.py # ChatGPTAdsClient (httpx, GET / POST / multipart upload; each request states its 5xx retry and lost-answer note; cursor walk); imported on first tool call
│ ├── credentials.py # Ads API key from the `chatgpt_ads` store section, then CHATGPT_ADS_API_KEY
│ ├── handlers.py # One coroutine per read tool, the composed tool list and handler table, run_tool, run_with_client
│ ├── change_feed.py # ChatGPTAdsChangeFeed: the audit log as external changes for change import
│ ├── handlers_mutations.py # One coroutine per change tool + the spend-limit read
│ ├── handlers_create.py # Create (always paused, idempotency key) and archive handlers
│ ├── handlers_creative.py # Image upload, ad preview, location search
│ ├── handlers_audiences.py # Custom audiences: list / get / create, members from a local file, operations
│ ├── handlers_measurement.py # Pixels, conversion event settings (404 = feature gate), conversion report
│ ├── reversal.py # capture_reversal: the prior read that becomes the recorded reversal
│ ├── tools.py # The nine read Tool definitions + build_tool / id_param
│ ├── tools_mutations.py # The change tools + the spend-limit read, with their declarations
│ ├── tools_create.py # The create and archive tools, from the tools_mutations fragments
│ ├── tools_creative.py # The image upload, ad preview and location search tools
│ ├── tools_audiences.py # The six custom-audience tools
│ ├── tools_measurement.py # The pixel, conversion event and conversion report tools
│ └── provider.py # ChatGPTAdsProvider, registration (with its change feed), disable gate, platform delivery model
├── mcp/ # MCP server (Google/Meta/Search Console + Rollback/Analysis + Analytics registry, Creative Studio, Learning, mureo Context)
│ ├── server.py # MCP Server entry point (stdio-based)
│ ├── tool_checks.py # writes_to_platform / in_ops_history_scope / check_tool_call: dispatch's own classification, ops-history scope and caller-error checks, for a stored call (#983, #984)
│ ├── _helpers.py # Shared handler utilities
│ ├── journal.py # Append-only JOURNAL.jsonl of every tool call + outcome (#758)
│ ├── journal_chain.py # The append itself (#758 phase 6): rotation, the `prev`/`h`
│ │ # hash chain across files, and verify_chain. A truncated
│ │ # TAIL is the one thing it cannot prove — say so, always
│ ├── _journal_hook.py # Dispatcher hook: family/mutating classification, one record per call (#758)
│ ├── _plugin_tables.py # Plugin dispatch / semantics / serving-provider dict objects, below server; server fills them in place at load (#879)
│ ├── server_instructions.py # Assembles the MCP server's `instructions` sections in order; never imports server
│ ├── serving_providers.py # Plugins serving a built-in platform under their own tool prefix: the Platform tool families
│ │ # block, the built-in refusal and the pointer on the built-in no-credentials messages
│ ├── _server_slots.py # Family view / dispatcher / policy evaluator slots, below server; server publishes them at load for the journal, auto-evaluation and rollback hooks (#879)
│ ├── tools_google_ads.py # Google Ads tool definitions (aggregator)
│ ├── _tools_google_ads_*.py # Tool definition sub-modules
│ ├── _handlers_google_ads.py # Google Ads base handlers
│ ├── _google_ads_client.py # Google Ads client / credential resolution
│ ├── _handlers_google_ads_extensions.py # Extensions handlers
│ ├── _handlers_google_ads_analysis.py # Analysis handlers
│ ├── tools_meta_ads.py # Meta Ads tool definitions (aggregator)
│ ├── _tools_meta_ads_*.py # Tool definition sub-modules
│ ├── _handlers_meta_ads.py # Meta Ads base handlers
│ ├── _meta_ads_client.py # Meta Ads client / credential resolution
│ ├── _handlers_meta_ads_extended.py # Extended handlers
│ ├── _handlers_meta_ads_other.py # Other handlers
│ ├── _handlers_meta_ads_creatives.py # Upload / creative handlers
│ ├── tools_search_console.py # Search Console tool definitions
│ ├── _handlers_search_console.py # Search Console handlers
│ ├── tools_rollback.py # rollback_plan_get / rollback_apply
│ ├── _handlers_rollback.py # Rollback handlers (dispatcher read from _server_slots)
│ ├── tools_batch.py # mureo_batch_begin / _end / _status (#549)
│ ├── _handlers_batch.py # Batch lifecycle handlers
│ ├── tools_change_import.py # mureo_external_changes_import (#545)
│ ├── _handlers_change_import.py # Change-import handler
│ ├── tools_analysis.py # analysis_anomalies_check / analysis_delivery_collapse_* / analysis_exclusion_impact_preview / analysis_tracking_consistency_check
│ ├── _handlers_analysis.py # Anomaly detector composition handler
│ ├── _handlers_delivery_collapse.py # Delivery-collapse check / diagnose handlers (#546)
│ ├── _handlers_exclusion_impact.py # analysis_exclusion_impact_preview handler (#547)
│ ├── exclusion_preflight.py # Pre-dispatch exclusion sizing + refusal + notice (#547)
│ ├── exclusion_sources.py # Built-in per-platform delivery sources for the above (#547)
│ ├── tools_analytics_registry.py # mureo_analytics_modules_list / mureo_analytics_run (#440)
│ ├── tools_creative_studio.py # creative_studio_* (visual generation + compose)
│ ├── tools_learning.py # mureo_learning_insights_get / mureo_consult_advisor
│ ├── tools_learning_preflight.py # mureo_learning_reset_preflight (#548)
│ ├── tools_mureo_context.py # STRATEGY.md / STATE.json + mureo_outcome_evaluate tools
│ ├── _handlers_mureo_context.py # Context (STRATEGY/STATE) handlers
│ ├── _campaign_schema.py # mureo_state_upsert_campaign's `campaign` argument schema
│ ├── _handlers_outcome.py # mureo_outcome_evaluate: the evaluation
│ │ # table, by evaluation_of or by maps (#889)
│ ├── _tools_decisions.py # mureo_decision_record (#758 phase 3) — a PARTIAL of the
│ │ # mureo_context family, not a family of its own, so
│ │ # server.py and the journal labels are untouched
│ ├── _auto_evaluation_hook.py # mureo_state_get's automatic observation closure
│ │ # (#758 phase 5): the `auto_evaluate` switch, the
│ │ # policy-gate check that decides whether the write
│ │ # may happen, and the response fragment
│ ├── _outcome_thresholds.py # The outcome verdict's noise band + volume floors from
│ │ # STRATEGY.md ## Guardrails (#888), read here so
│ │ # analysis / context gain no edge onto the gate
│ ├── _tools_settings.py # mureo_state_settings_set (#848) — workspace settings,
│ │ # another PARTIAL of the mureo_context family
│ ├── _ops_history_param.py # `expected` / `decision_id` on mutating tools (#848):
│ │ # schema injection, the requirement check, the binding
│ ├── _ops_history_records.py # The same requirement on the two recording tools
│ ├── _history_ops.py # The `decisions` / `ops_history` history sources
│ ├── _handlers_decisions.py # Its handler: mints the id + timestamp, appends
│ ├── _tools_history.py # mureo_history_query (#758 phase 4b) — another PARTIAL
│ │ # of the mureo_context family; READ-ONLY, so the
│ │ # dispatcher injects no `reason` into its schema
│ ├── _handlers_history.py # Its handler: the filters, and one bounded section per
│ │ # source (action_log / journal / daily / reports /
│ │ # decisions / ops_history)
│ ├── journal_read.py # Reading JOURNAL.jsonl back — the parse, the date, the
│ │ # filter and the tail reader, shared with `mureo journal`.
│ │ # The *_files forms walk the rotated siblings as one record
│ ├── tool_guidance.py # Plugin tool notes (`_meta["mureo"]["guidance"]`) on when to
│ │ # consider a tool — rendered into the MCP server's
│ │ # `instructions`, only for plugin tools this server serves
│ └── tool_provider.py # Third-party plugin → MCP tool exposure layer (#89);
│ # served_tool_owners: the tool → provider map both
│ # always-on `instructions` blocks are scoped by
├── cli/ # Typer CLI (setup + auth + configure + BYOD + providers + rollback + repair + journal; ad ops are via MCP)
│ ├── main.py # CLI entry point (`mureo` command)
│ ├── setup_cmd.py # `mureo setup claude-code` / `cursor` / `codex` / `gemini`
│ ├── setup_codex.py # Codex install-kit: MCP, credential guard, operational + foundation skills
│ ├── _skill_paths.py # get_data_path / replace_dest, shared by the skill installers (#879)
│ ├── setup_gemini.py # Gemini extension manifest at ~/.gemini/extensions/mureo/
│ ├── install_desktop_cmd.py # `mureo install-desktop` — onboarding for Claude Desktop chat users
│ ├── settings_remove.py # remove_* counterparts of the MCP config / credential guard installers
│ ├── native_skills.py # Deploy/remove plugin native slash skills via `mureo.native_skills` group (#439)
│ ├── configure_cmd.py # `mureo configure` — open the local web configuration UI
│ ├── open_cmd.py # `mureo open` — open the running configure dashboard in a browser (#241)
│ ├── byod_cmd.py # `mureo byod import` / `status` / `remove` / `clear`
│ ├── demo_cmd.py # `mureo demo init` / `list` — synthetic demo bundle
│ ├── providers_cmd.py # `mureo providers list` / `add` / `remove` / `confirm` (official MCP catalog)
│ ├── amazon_cmd.py # `mureo amazon refresh-manifest` — Amazon Ads official-MCP bridge setup
│ ├── learn_cmd.py # `mureo learn add` / `tiers` — append insights to the diagnostic knowledge base
│ ├── service_cmd.py # `mureo service` — install/restart the auto-start configure daemon (#241)
│ ├── upgrade_cmd.py # `mureo upgrade` — pipx venv-aware bulk upgrade of mureo + plugins
│ ├── skill_status.py # Deployed workflow skills current / stale / missing (#728); read by
│ │ # upgrade_cmd and web/status_collector.py (#863)
│ ├── auth_cmd.py # `mureo auth setup` / `status` / `check-*` / `upgrade-google`
│ ├── rollback_cmd.py # `mureo rollback list` / `show` (inspection only; apply routes through MCP)
│ ├── journal_cmd.py # `mureo journal` — read back JOURNAL.jsonl (last/tool/since/failures/mutations/json/all)
│ ├── _journal_verify.py # `mureo journal --verify` — the hash chain over the live file and its
│ │ # rotated siblings; exit 0 ok / 1 broken / 2 no journal (#758 phase 6)
│ ├── repair_cmd.py # `mureo repair platform-key` — drop a platforms entry the DOCUMENT
│ │ # shows to be wrong (duplicate of a resolvable key, or empty stub);
│ │ # dry run by default, backs up first (#610/#616).
│ │ # `--all` sweeps every client, summary first, one prompt (#614).
│ │ # `--key <k> --drop-duplicate` records the operator's OWN decision
│ │ # about a duplicate whose two keys both resolve (#636); not with --all
│ ├── _repair_preview.py # What that command prints — the half that has to be TRUE: why an
│ │ # entry can go, what is NOT changed (scoped to the plan), every
│ │ # same-account sibling, and conversion_action_types (#616/#617/#618).
│ │ # Also the not_collected note an entry carries (#643) and both
│ │ # entries of a duplicate mureo hands back to decide (#645)
│ ├── _repair_clients.py # Which STATE.json files `--all` sweeps — reuses the Reports tab's
│ │ # optional list_clients / state_store_for_client seam, never a second one
│ ├── _state_file.py # The shared `--state-file` option + workspace default (rollback + repair)
│ └── _tty.py # TTY-safe helpers for non-interactive setup + terminal_safe() scrubbing
├── context/ # File-based strategy context (no DB)
│ ├── strategy.py # STRATEGY.md parser/writer
│ ├── state.py # STATE.json parser/writer — the single import site; since #917 a facade that
│ │ # re-exports state_io (read / atomic write / lock / clock), campaign_store
│ │ # (upsert_campaign, _platform_base, _stamp_fetched_at), action_log_store
│ │ # (append_action_log), batch_store (begin/end_batch), platform_store (rollups,
│ │ # daily, not_collected, conversion override) and report_store (set_report, set_display).
│ │ # Two more stores sit beside them and are NOT re-exported (#879): decision_store
│ │ # (append_decision) and settings_store (set_ops_history_enabled)
│ ├── models.py # StrategyEntry, StateDocument, CampaignSnapshot, BatchRecord; re-exports ActionLogEntry
│ ├── action_log_entry.py # ActionLogEntry (rollback_of, batch_id) + EXTERNAL_ORIGIN (#851), re-exported by models.py
│ ├── display_models.py # The display contract models (#706), re-exported by models.py
│ ├── batch.py # Batch id minting + the action_log stamping rule (#549)
│ ├── decisions.py # The `decisions` section (#758 phase 3): DecisionRecord, its
│ │ # bounds, the cross-reference checks and the pure queries (the
│ │ # writer is decision_store.append_decision, #879). Append-only
│ │ # — an adoption is a NEW record naming the first in
│ │ # `supersedes`, never an edit — because `display.proposals`
│ │ # is replaced whole on every dashboard write and so cannot
│ │ # be a history
│ ├── _decision_codec.py # That section's two codec halves. Strict like action_log's,
│ │ # not tolerant like batches': a decision record IS history
│ ├── expected.py, approval.py, iso_time.py, settings.py, decision_chain.py, ops_intent.py,
│ │ ops_linkage.py, ops_fields.py, ops_history_view.py,
│ │ ops_history_duplicates.py, ops_history_query.py
│ │ # Ops history (#848): expected effects, the settings section,
│ │ # linking entries to decisions inside the locked append, the
│ │ # derived decision → actions → evaluation view, the
│ │ # possible-duplicate hint between two decisions (#851), and the
│ │ # date-bounded read both MCP and the dashboard use. See
│ │ # docs/ops-history.md
│ ├── daily.py # The day-grain history write MINUS the file (#690/#710):
│ │ # `with_platform_daily(doc, ...)` (guard + per-date merge +
│ │ # trim) and `capped_platform_daily(daily)` (the 35-day
│ │ # retention rule on its own), for a writer that lands
│ │ # `daily` inside its OWN atomic document write.
│ │ # `set_platform_daily` is the path-based wrapper, so both
│ │ # routes keep one set of semantics. Optional `as_of_date`
│ │ # = today in the ACCOUNT's timezone: an account closes its
│ │ # day locally, so the host clock refused a complete
│ │ # yesterday-JST on a UTC host every night
│ ├── observations.py # What closes an action_log observation, and which are
│ │ # past due (#651). ONE rule for `mureo_state_get(
│ │ # action_log="pending")` and the Reports triage count;
│ │ # two entry shapes (rendered dict / ActionLogEntry)
│ ├── auto_evaluation.py # Closing a past-due observation mureo can decide on
│ │ # its own (#758 phase 5): the rule order, the fixed
│ │ # skip vocabulary, and ONE locked write for the whole
│ │ # pass. Pure decision + write, no MCP imports
│ ├── action_baseline.py # The baseline an action_log append is missing
│ │ # (#890): the campaign snapshot's metrics, whole,
│ │ # plus `days`; refused when stale. Pure
│ ├── actor_stamp.py # `stamp_actor` — the WHO/WHY stamp shared by
│ │ # `append_action_log` and the automatic closure, so a
│ │ # mureo-written entry carries the same identity on both;
│ │ # its identity half `stamp_identity` also stamps decisions
│ ├── monthly_budget.py # The `## Custom: Monthly Budget` reader (#652) — the operator's
│ │ # INTENDED monthly spend, twin of `guardrails_from_strategy_text`.
│ │ # Separate type from `Guardrails` on purpose: a target is not a
│ │ # ceiling. "Not set" is a first-class answer (never 0), a total
│ │ # derived from `max_total_daily_budget` says so, and the figure
│ │ # stays in STRATEGY.md — never copied into STATE.json
│ ├── platform_monthly_budget.py # Rung 2 of that precedence (#656): the sum of the
│ │ # per-campaign monthly budgets, for platforms that DECLARED they
│ │ # have the concept (`register_monthly_budget_support`; core
│ │ # declares none). A third `source`, so a configured sum is never
│ │ # shown as an agreed target. No total is stored — it is computed
│ │ # on read — and an incomplete or uncollected campaign set is
│ │ # withheld rather than summed short, reported as
│ │ # `IncompletePlatform(platform, reason)` so an operator is told
│ │ # WHICH gap it is (a wrong declaration, a sync behind, a failed
│ │ # collection) instead of reading a debug log. The two splits are
│ │ # separate fields — `per_platform` is only ever what the operator
│ │ # wrote — and the type refuses a split that does not match `source`
│ ├── monthly_budget_models.py # `MonthlyBudget` + the `SOURCE_*` vocabulary (#879), below
│ │ # both readers above so each imports it at top level;
│ │ # `monthly_budget.py` re-exports them. No runtime mureo imports
│ ├── platform_guards.py # Write-time platform-key guards (#534/#609) — the one "is this key
│ │ # real?" answer every other surface asks, including the read-side
│ │ # label path (`installed_platform_names`, shared since #631)
│ ├── platform_repair.py # The repair half (#610): plan + drop an entry under an unresolvable
│ │ # key. Unresolvable is the FILTER, not the criterion — the document
│ │ # must show the entry wrong (#616), and conversion_action_types is
│ │ # never dropped (#617). `drop_duplicates` is the one widening: a key
│ │ # the OPERATOR named, dropped only against a same-account sibling
│ │ # (#636). Drops, never merges; backs up; no action_log
│ ├── action_log_guard.py # A whole-document write that shortens or rewrites action_log leaves a
│ │ # timestamped backup and a WARNING first (#758 phase 6). Advisory like
│ │ # warn_on_duplicate_accounts — but a backup that FAILS stops the write
│ └── errors.py # Context-specific errors
├── analysis/ # Analysis utilities
│ ├── lp_analyzer.py # Landing page analyzer
│ ├── anomaly_detector.py # Zero-spend / CPA-spike / CTR-drop detection (pure, sample-size-gated)
│ ├── outcome_note.py # An evaluation row's note read back into parts (#894), from the
│ │ # NOTE_* templates outcome_eval / expected_eval write with.
│ │ # Imports them; nothing imports it back except the served view
│ ├── delivery_collapse.py # Delivery-collapse detection (#546) — weekday-aware baseline taken
│ │ # from the platform's own daily delivery, never from action_log
│ ├── delivery_collapse_config.py # ## Guardrails -> CollapseThresholds (the only I/O half)
│ ├── collapse_diagnosis.py # Change x metric timeline + elimination ladder; reports the
│ │ # open questions, never a cause it did not evidence
│ ├── exclusion_impact/ # Delivery-impact preview for bulk exclusions (#547; pure)
│ │ ├── models.py # DeliveryRecord / ExclusionTarget / ExclusionImpact + coverage verdicts
│ │ ├── matching.py # Per-entity-kind match rules (host, app id, negative keyword match type)
│ │ ├── estimator.py # The share itself — incremental and cumulative
│ │ ├── rules.py # ## Guardrails exclusion keys, the one refusal decision, inert-rule reporting
│ │ └── surfaces.py # Which tools are exclusion surfaces (mureo's + plugin-registered)
│ └── tracking/ # Tracking-parameter consistency: platform-neutral detector + per-platform URL accessors (#550)
├── rollback/ # Rollback feature (allow-list gated, append-only audit trail)
│ ├── models.py # RollbackStatus / RollbackPlan + batch verdicts (BatchCoverage, BatchRollbackPlan)
│ ├── planner.py # plan_rollback(ActionLogEntry) -> RollbackPlan | None
│ ├── batch.py # plan_batch_rollback(doc, batch_id) -> every member, gaps included (#549)
│ └── executor.py # execute_rollback(...) -> appends ActionLogEntry(rollback_of=index)
├── adapters/ # Provider adapters wrapping each ad-platform client as a registry Protocol
├── analytics/ # Analytics-module registry for external MCP / plugin platforms (#120)
│ # (builtin/ builds the native modules, `builtin_analytics_modules()`;
│ # the registry imports it and registers them — builtin never imports
│ # the registry, #879)
├── change_import/ # Import changes made OUTSIDE mureo into action_log (#545)
│ ├── models.py # ExternalChange / ChangeFeedResult / ChangeImportOutcome
│ ├── protocol.py # ChangeFeedProvider Protocol (`mureo.change_feeds` entry-point group)
│ ├── registry.py # Discovery + per-plugin fault isolation + lookup; registers
│ │ # `builtin_change_feeds()` on first use (builtin/ never imports it, #879)
│ ├── dedupe.py # Already-imported vs mureo's own change (why one is approximate)
│ ├── importer.py # Watermark, action_log write, per-platform outcome
│ └── builtin/ # Native feeds — google_ads only; the bundled ChatGPT Ads provider registers
│ # its own feed (mureo/chatgpt_ads/change_feed.py); see docs/change-import.md
├── core/ # Extension Protocols + file-backed impls + RuntimeContext; provider & skill discovery
│ ├── tool_failure.py # The MCP failure-envelope READER (failure_of / is_error_result, #863) and
│ │ # the refused / error envelope dict (failure_payload); mcp/_helpers.py
│ │ # wraps it in TextContent and re-exports these names.
│ │ # POLICY_REFUSAL_PREFIX / EXCLUSION_REFUSAL_PREFIX: the first lines
│ │ # of the policy-gate / exclusion-guardrail refusals, read as
│ │ # refused / policy_refused / exclusion_impact_refused (#1066)
│ │ # exception_text: the one exception-to-text formatter (#603, #865)
│ ├── credential_source.py # Per-call credential-source ABI (#821); mcp/credential_source.py
│ │ # re-exports the same objects (#863)
│ ├── platform_keys.py # Platform-key vocabulary; also defines ANALYTICS_ENTRY_POINT_GROUP, which
│ │ # context/platform_guards.py reads without importing analytics (#879)
│ ├── account_scope.py # Workspace account scoping (#411): resolve_customer_id / resolve_account_id,
│ │ # called by every platform client opener before it builds a client
│ ├── ga4_adc.py # The authorized_user ADC file + `ga4` section derived from a Google
│ │ # authorization granted analytics.readonly (#938), as <store name>-ga4-adc.json
│ │ # beside the store; never over a section naming another file
│ ├── google_scopes.py # The Google OAuth scopes and the granted-set check (no Google Ads
│ │ # scope fails the setup; Search Console / GA4 are optional)
│ └── rotation.py # Size-bounded append files (#758 phase 6): the one MUREO_JOURNAL_MAX_BYTES
│ # reader, the rotated name, and sibling_files (the whole record, oldest first)
├── providers/ # Official MCP provider catalog + one-command install helpers (#86)
│ # credential_env.py: the credential env a provider reads and the
│ # native-disable gate, shared by `mureo providers add` and the
│ # configure UI install route (#945); holds the env-var allow-list
│ # that web/env_var_writer.py imports back (providers -> core only)
├── policy/ # Built-in policy gates (strategy_gate) — ship with OSS, run by default
│ ├── guardrails.py # The `## Guardrails` parser (Guardrails, parse_guardrails,
│ │ # guardrails_from_entries); imports nothing from context, so
│ │ # context/monthly_budget.py reads it at top level.
│ │ # strategy_gate re-exports its public names (#879)
│ ├── learning_rules.py # Per-platform learning-period facts + their first-party sources (#548)
│ ├── always_on_block.py # Greedy whole-line fitting + omission notice for a bounded block on
│ │ # the MCP server's `instructions`; shared by platform_model.py
│ │ # and mcp/tool_guidance.py
│ ├── platform_model.py # Per-platform delivery-model prose + first-party sources (#648) —
│ │ # rendered into the MCP server's `instructions`, scoped to the
│ │ # platforms served (plugin tool notes are the other always-on
│ │ # channel, mcp/tool_guidance.py)
│ └── learning_reset.py # Reset-class + learning-state pre-flight the gate refuses on
├── learning/ # Read-side /learn companion: insight federation across configured sources
├── creative_studio/ # Creator-grade ad-creative (image) generation via pluggable providers
│ # (providers/_base.py: ImageProvider protocol + shared helpers, below the
│ # registry in providers/__init__.py and the built-in providers, #879)
├── byod/ # Bring Your Own Data — CSV-backed offline analysis (see BYOD Mode below)
├── web/ # Local `mureo configure` UI — stdlib http.server on 127.0.0.1 (no web framework)
│ │ # web imports cli helper modules by public names; cli imports only the
│ │ # web leaves (instance, service, report_clients) and configure_cmd;
│ │ # no web submodule loads server.py unless it needs it (#863)
│ ├── action_result.py # ActionResult + send_result: the one failure mapping of action routes (#864);
│ │ # send_steps: multi-step envelope, 500 + "steps" only when every step failed (#891)
│ ├── static_assets.py # The files GET /static/<name> may serve (_STATIC_ALLOWLIST) and their
│ │ # content types; add a new mureo/_data/web/ file here
│ ├── _extension_contributions.py # StaticAsset / ViewContribution / DashboardCard, re-exported by extensions.py
│ └── auth_wizard.py # Browser-based OAuth wizard spawned by web/oauth_bridge.py (per-platform creds)
├── demo/ # `mureo demo init` synthetic-bundle bootstrap (round-trips through BYOD)
├── auth.py # Credentials management (~/.mureo/credentials.json + env vars + Meta token auto-refresh)
├── auth_setup.py # Interactive setup wizard (browser OAuth flow)
├── credential_guard.py # Blocks AI agents from reading ~/.mureo/credentials.json
├── _credential_guard/ # The hook payloads' pieces, one module per step (reasons,
│ # path_guard, chars, quoting, spans, braces, bash_guard);
│ # import from credential_guard.py
├── logging_setup.py # Configure-server logging (#581): rotating ~/.mureo/logs/configure.log,
│ # MUREO_LOG_LEVEL, and the HTTP access-log query scrubber. Installed by
│ # the configure entry point only — never at import time, never on root.
├── client_factory.py # Per-platform BYOD-vs-live client factory (MCP handlers, analytics,
│ # change import); below mcp, so none of them loads the server (#863);
│ # open_google_ads_client / open_meta_ads_client are the one
│ # Google Ads / Meta Ads openers (#875)
├── bundled_providers.py # The one table of providers shipped inside mureo (Amazon Ads and ChatGPT Ads);
│ # the MCP server and the configure UI both register from it before
│ # entry-point discovery; below mcp and web (#992)
├── installed_packages.py
│ # The installed mureo / mureo-* distributions, for `mureo upgrade`
│ # and the dashboard's About / update check / upgrade (#863)
└── throttle.py # Rate limiting (token bucket + rolling hourly cap)
skills/ # Native slash skills — one `<name>/SKILL.md` per skill (migrated from
│ # .claude/commands in #439; invocable as `/<name>`). Plugins contribute
│ # more via the `mureo.native_skills` entry-point group, deployed/removed
│ # by `mureo/cli/native_skills.py`.
├── onboard/, daily-check/, rescue/, budget-rebalance/, … # ~20 operational (workflow) skills
│ └── SKILL.md
└── _mureo-*/ # 10 foundation skills: _mureo-shared / _mureo-state-schema /
└── SKILL.md # _mureo-report-persist / _mureo-strategy / _mureo-google-ads / _mureo-meta-ads /
# _mureo-amazon-ads / _mureo-chatgpt-ads / _mureo-learning / _mureo-pro-diagnosis
docs/integrations.md # Platform discovery + external MCP integration guide
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.
- 2d ago Changed · +4 lines · +116 tokens per session b620fd502606
- 4d ago Changed · +3 lines · +84 tokens per session c3e92690b206
- 9d ago Changed · +81 lines · +1,931 tokens per session c0deafecc8f0
- 12d ago Changed · +9 lines · +169 tokens per session 184acd332b4a
- 13d ago Changed · +1 lines · +37 tokens per session 74792b362de3
- 25d ago Changed · +1 lines · +25 tokens per session 0f095a157600
- 26d ago Changed · +1 lines · +27 tokens per session 8733e2122e22
- 1mo ago Changed · +5 lines · +148 tokens per session caf64cc6bc09
- 1mo ago Changed · +5 lines · +174 tokens per session 24757810a386
- 1mo ago First seen · 663 lines · 14,650 tokens per session scan A 40c5afedc15b
mureo AGENTS.md is an instructions file published in the GitHub repository logly/mureo (64 stars, last pushed yesterday), licensed Apache-2.0. It adds 17,361 tokens to every session, about $0.0694 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-30.
mureo AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mureo AGENTS.mdlogly/mureo | Instructions file | 64 | yesterday | Apache-2.0 | A | 17,361 | 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 | 7,230 | 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,303 | GitHub Copilot |
| deno copilot-instructions.mddenoland/deno | Instructions file | 109k | yesterday | MIT | A | 3,077 | GitHub Copilot |