mq-bridge-app 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

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/marcomq/mq-bridge-app/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.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.svg" alt="Measured on agentmods" 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. 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 $0.01851 $0.01851
Opus 5 $0.00925 $0.00925
Sonnet 5 $0.00370 $0.00370
Haiku 4.5 $0.00185 $0.00185

Measured 4d ago against content hash 83d951648a49, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 4d ago), licensed MIT. It adds 1,851 tokens to every session, about $0.0093 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.