publisher: Instructions file for Codex

AGENTS.md

publisher AGENTS.md is an instructions file for Codex, OpenCode from malloydata/publisher. It costs 9,647 tokens per session, scanned B, original, MIT.

Instructions for working with Malloy Publisher, an open-source server that turns Malloy data models into queryable data services. Malloy is a language for describing and querying data.

In plain words
What is it for?
Starting the server, exploring environments and fields, answering plain-English data questions, validating and reloading Malloy models, and building HTML data apps.
Why use it?
They explain how to discover available data, connect an agent, and safely work with the local server.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Claude Code; reads ~/.codex paths.

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

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/malloydata/publisher/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/malloydata/publisher

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 publisher AGENTS.md

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

agentmods 80×15 button for publisher AGENTS.md

Your own site · 80×15
<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>
Per session 9,647 This file is loaded in full into every session.
When invoked 9,647 The same file — it is already loaded in full.
Security scan B 2 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.09647 $0.09647
Opus 5.5 $0.03859 $0.03859
Sonnet 5.5 $0.01929 $0.01929
Haiku 4.5 $0.00965 $0.00965

Measured 3d ago against content hash bfc270a71449, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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"
AGENTS.md · 312 lines

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:

  1. Start a server (section 1) and poll GET http://localhost:4000/api/v0/status until operationalState is "serving".
  2. 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).
  3. Call list_packages for the environment and package names, then get_context scoped to one package with your question (section 4).
  4. Run execute_query with 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, then reload_package to run it by name. The malloy-modeling skill 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. The malloy-html-data-apps skill covers it.
  • Review Malloy for correctness with the malloy-review skill.
  • Measure whether an agent can actually answer questions against a model, with the eval-loop skill: 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-tour is a worked example over the bundled storefront package: 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 .malloy file with an ## artifact tag is a report, a page of query and text tiles behind filter controls with drill click-through, no code and no build step. Its layout= is the one choice: grid for a dashboard scanned at a glance, linear for 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. The malloy-reports skill 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's index.malloy — decides what is visible, and queryable, in the first place. The bundled governed-analytics package shows all four together.
  • Materialize for cost and speed: one #@ persist annotation turns an expensive source into a table, rebuilt on demand, from the malloy-pub CLI, or on a cron with the opt-in scheduler; #@ preaggregate rolls a measure up to a coarse grain. The malloy-materialization skill 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_schema ranks its tables against a plain-English description and hands back the source: 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.

Read the full file on GitHub · 312 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. 3d ago Changed bfc270a71449
  2. 7d ago Changed · -24 tokens per session 72dee95bcdf2
  3. 9d ago Changed · +2 lines · +201 tokens per session 03b9bebd9075
  4. 10d ago Changed · -1 lines · -15 tokens per session fc81f6450d7e
  5. 13d ago Changed · +37 tokens per session 7726fb90c992
  6. 15d ago Changed · +163 tokens per session c7b37d67313f
  7. 17d ago Changed · +330 tokens per session 2fd6b47cae3b
  8. 21d ago Changed · +16 tokens per session a86ce5435ebf
  9. 22d ago Changed · +29 lines · +399 tokens per session 8ab401e395eb
  10. 27d ago First seen · 282 lines · 8,540 tokens per session scan B 970a89f396ab

Subscribe to this mod's changes

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.

Related

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).

microsoft/vscode · 9,649 tokens

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.

vercel/next.js · 7,384 tokens

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).

microsoft/vscode · 5,262 tokens

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.

langchain-ai/langchain · 4,680 tokens

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).

microsoft/vscode · 2,731 tokens

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.

denoland/deno · 3,077 tokens