mq-bridge-app: Instructions file for Codex

AGENTS.md

mq-bridge-app AGENTS.md is an instructions file for Codex, OpenCode from marcomq/mq-bridge-app. It costs 1,851 tokens per session, scanned A, original, MIT.

Project instructions for mq-bridge-app, a Rust and Svelte application. They describe its structure, recent interface decisions, and testing commands.

In plain words
What is it for?
Use them when working on the app's Rust backend, Svelte interface, state handling, runtime bridge, or unit and Rust tests.
Why use it?
They give an agent the project context needed to make changes that fit the existing architecture and behavior.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to marcomq/mq-bridge-app. 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/marcomq/mq-bridge-app/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/marcomq/mq-bridge-app

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 mq-bridge-app AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/marcomq/mq-bridge-app/agents-md/github.svg)](https://agentmods.dev/instructions/marcomq/mq-bridge-app/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/marcomq/mq-bridge-app/agents-md"><img src="https://agentmods.dev/badge/instructions/marcomq/mq-bridge-app/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 mq-bridge-app AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/marcomq/mq-bridge-app/agents-md"><img src="https://agentmods.dev/badge/instructions/marcomq/mq-bridge-app/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,851 This file is loaded in full into every session.
When invoked 1,851 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.01851 $0.01851
Opus 5.5 $0.00740 $0.00740
Sonnet 5.5 $0.00370 $0.00370
Haiku 4.5 $0.00185 $0.00185

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

Security

Grade A, and why

mq-bridge-app 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 · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Project Snapshot

mq-bridge-app is a Rust + Svelte application.

  • Backend/runtime: Rust (crates/core, crates/cli, crates/desktop)
  • UI: Svelte 5 + Vite (ui/src), utilizing Runes for state management.
  • Legacy migration: mostly completed; remaining compatibility shims still exist.

Current UI Architecture

  • Main app bootstrapping: ui/src/bootstrap.ts, ui/src/main.ts
  • Main tabs/components:
    • ui/src/components/PublishersPanel.svelte
    • ui/src/components/ConsumersPanel.svelte
    • ui/src/components/RoutesPanel.svelte
    • ui/src/components/SettingsPanel.svelte
  • State/stores:
    • ui/src/lib/stores.ts
    • ui/src/lib/runtime-status.ts
    • Modernized state handling via Svelte 5 $state and $derived runes.
  • Runtime bridge helpers:
    • ui/src/lib/runtime-window.ts

Important Recent Behavior Decisions

  1. Consumer tab/save behavior

    • Save keeps the active consumer subtab (no definition/messages flicker).
  2. Runtime status indicator

    • Topbar runtime status is sourced from polled runtime state, not stale legacy globals.

Testing Guidance

  • Unit tests:

    • Commands: npm run test:unit and cargo test
    • Focused suites used often:
      • tests/unit/consumers-view.test.ts
      • tests/unit/publishers-view.test.ts
      • tests/unit/routes-view.test.ts
      • tests/unit/import-export.test.ts
      • tests/unit/bootstrap-runtime-status.test.ts
  • UI/E2E tests:

    • Command: npm run test:ui
    • Main spec: tests/playwright/ui.spec.js
    • Tests currently reset config before each case via /config post.
    • Visual regression baselines use Playwright's built-in toHaveScreenshot assertions in tests/playwright/ui-visual.spec.js.
    • Do not use LLM-based screenshot comparison.
    • Do not run npm run test:ui:update-screenshots just to make failing tests pass. Update screenshot baselines only after reviewing the diff and confirming the UI/layout change is intentional.

Known Active Areas

  • Further reduction of legacy/global window dependencies.
  • Completion of the transition from legacy Svelte stores to Svelte 5 $state and $derived Runes.
  • Remaining migration cleanup from *-view.ts controller modules into cleaner component/service boundaries.
  • Enhanced real-time monitoring features and throughput visualization.
  • Additional consumer traffic E2E coverage can still be expanded.

Read the full file on GitHub · 174 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 First seen · 174 lines · 1,851 tokens per session scan A 83d951648a49

Subscribe to this mod's changes

mq-bridge-app AGENTS.md is an instructions file published in the GitHub repository marcomq/mq-bridge-app (7 stars, last pushed 2mo ago), licensed MIT. It adds 1,851 tokens to every session, about $0.0074 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

mq-bridge-app AGENTS.md compared with instructions from other repositories

mq-bridge-app AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mq-bridge-app AGENTS.mdmarcomq/mq-bridge-appInstructions file72mo agoMITA1,851Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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 ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot