Borrowing it
Nothing to install: this file belongs to malloydata/publisher. 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/malloydata/publisher/main/AGENTS.mdgit clone --depth 1 https://github.com/malloydata/publisherWrote 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/malloydata/publisher/agents-md)<a href="https://agentmods.dev/instructions/malloydata/publisher/agents-md"><img src="https://agentmods.dev/badge/instructions/malloydata/publisher/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/malloydata/publisher/agents-md"><img src="https://agentmods.dev/badge/instructions/malloydata/publisher/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.09647 | $0.09647 |
| Opus 5.5 | $0.03859 | $0.03859 |
| Sonnet 5.5 | $0.01929 | $0.01929 |
| Haiku 4.5 | $0.00965 | $0.00965 |
Grade B, and why
publisher AGENTS.md scanned grade B with 2 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 3d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
Codex: add to `~/.codex/config.toml`: Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s http://localhost:4000/api/v0/status | jq .operationalState # -> "serving" How it starts
The opening of the file, as written. The whole thing — 312 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Working with Malloy Publisher
Publisher is the analytics engine for Malloy, created and maintained by Credible. It serves one or more Malloy model packages over a REST API and a single MCP endpoint. If you are an AI agent working in this repo, here is what you can do with it and how to start.
The fast path. Everything below is detail on these four steps:
- Start a server (section 1) and poll
GET http://localhost:4000/api/v0/statusuntiloperationalStateis"serving". - Make sure your MCP client is connected to
http://localhost:4040/mcp(section 2). If you started the server yourself in this session, your Malloy tools will not appear until the user reconnects the client; unattended, use REST (section 7). - Call
list_packagesfor the environment and package names, thenget_contextscoped to one package with your question (section 4). - Run
execute_querywith the names it returned, verbatim.
What you can do
- Discover what data exists: environments, packages, models, sources, and fields, without knowing any names in advance.
- Answer plain-English questions by running Malloy queries, which Publisher compiles to SQL and runs against the connected database.
- Build and change Malloy models: validate an edit with
compile_model, save it, thenreload_packageto run it by name. Themalloy-modelingskill covers the workflow. - Build a data app: a hand-authored HTML page in a package's
public/directory, backed by that package's models and served by Publisher with no build step. Themalloy-html-data-appsskill covers it. - Review Malloy for correctness with the
malloy-reviewskill. - Measure whether an agent can actually answer questions against a model, with the
eval-loopskill: it scores answers against verified goldens, reports which entities retrieval delivered, diagnoses each failure and who owns it, and builds a servable report.examples/storefront/evals/storefront-touris a worked example over the bundledstorefrontpackage: twelve questions and an answer key, each golden derived twice. Its README has the exact commands. The set is the questions and the key; running it, and whatever the run produces, is yours. - Build a report: a
.malloyfile with an## artifacttag is a report, a page of query and text tiles behind filter controls with drill click-through, no code and no build step. Itslayout=is the one choice:gridfor a dashboard scanned at a glance,linearfor a story read top to bottom. A report can live anywhere in the package; write a new one at the package root unless asked otherwise, and point# drill { to="path/without-extension" }at another report by its path. People who want the classic drag-and-drop feel can build the same file in the Console instead — drag a tile to move it, drag any edge or corner to resize it — and the two are interchangeable, because the builder splices the file rather than owning a layout document of its own. Themalloy-reportsskill covers it; docs/reports.md is the reference, and docs/choosing-a-surface.md says when to pick a report, which layout, or a data app. - Govern access: givens declare runtime parameters that drive filter widgets, row-level access decides which rows a caller sees,
#(authorize)decides whether a caller may query a source at all, and discovery curation — a package'sindex.malloy— decides what is visible, and queryable, in the first place. The bundledgoverned-analyticspackage shows all four together. - Materialize for cost and speed: one
#@ persistannotation turns an expensive source into a table, rebuilt on demand, from themalloy-pubCLI, or on a cron with the opt-in scheduler;#@ preaggregaterolls a measure up to a coarse grain. Themalloy-materializationskill covers it; docs/materialization.md and docs/preaggregation.md are the references. - Model a warehouse from scratch: add a connection (BigQuery, Snowflake, Postgres, MySQL, SQL Server, Trino, Databricks, MotherDuck, DuckLake, and more), then
search_database_schemaranks its tables against a plain-English description and hands back thesource:line for each. DuckDB is built in for CSV, Parquet, JSON, and Excel files. - Browse it all in the Publisher Console, the built-in web UI on the REST port (docs/console.md), where charts and dashboards defined in the model render.
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.
- 3d ago Changed bfc270a71449
- 7d ago Changed · -24 tokens per session 72dee95bcdf2
- 9d ago Changed · +2 lines · +201 tokens per session 03b9bebd9075
- 10d ago Changed · -1 lines · -15 tokens per session fc81f6450d7e
- 13d ago Changed · +37 tokens per session 7726fb90c992
- 15d ago Changed · +163 tokens per session c7b37d67313f
- 17d ago Changed · +330 tokens per session 2fd6b47cae3b
- 21d ago Changed · +16 tokens per session a86ce5435ebf
- 22d ago Changed · +29 lines · +399 tokens per session 8ab401e395eb
- 27d ago First seen · 282 lines · 8,540 tokens per session scan B 970a89f396ab
publisher AGENTS.md is an instructions file published in the GitHub repository malloydata/publisher (118 stars, last pushed today), licensed MIT. It adds 9,647 tokens to every session, about $0.0386 per session on Opus 5.5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.