daedalus: Instructions file for Codex

AGENTS.md

daedalus AGENTS.md is an instructions file for Codex, OpenCode from Nitjsefnie-Harness-Commons/daedalus. It costs 6,053 tokens per session, scanned A, original, MIT.

Repository instructions for Daedalus, a Chrome extension that remotely controls and inspects web pages.

In plain words
What is it for?
Use them when developing Daedalus features involving page matching, screenshots, browser debugging, cookies, network capture, or emergency fixes.
Why use it?
They give coding agents the project’s rules, verified interface details, and required investigation steps before changing the code.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to Nitjsefnie-Harness-Commons/daedalus. 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/Nitjsefnie-Harness-Commons/daedalus/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Nitjsefnie-Harness-Commons/daedalus

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nitjsefnie-harness-commons/daedalus/agents-md.svg)](https://agentmods.dev/instructions/nitjsefnie-harness-commons/daedalus/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/nitjsefnie-harness-commons/daedalus/agents-md"><img src="https://agentmods.dev/badge/instructions/nitjsefnie-harness-commons/daedalus/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 6,053 This file is loaded in full into every session.
When invoked 6,053 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.06053 $0.06053
Opus 5 $0.03027 $0.03027
Sonnet 5 $0.01211 $0.01211
Haiku 4.5 $0.00605 $0.00605

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

Security

Grade A, and why

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

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 · 125 lines

How it starts

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

Daedalus

Daedalus is a Chrome-extension-based remote control system for matching web pages — eval bridge, screenshots, CDP, cookies, network capture, hotfixes, declarativeNetRequest blocking.

Read README.md first — it is the reference for the command surface, install, and usage.

<investigate_before_answering> Never claim anything about this codebase's API, field names, or endpoints without opening the file. Field names (id, code, type, tab, token) are exact — verify against server.py or this file before writing bridge commands. </investigate_before_answering>

Extension (extension/)

  • Token: auto-generated on first install, stored in chrome.storage.local.
  • content.js (ISOLATED world): message relay between page and background. On load it asks the background to replay hotfixes (replayHotfixes); the background picks the eligible fixes from the extension-wide daedalus-hotfixes record and runs each through the eval routing below, so a page whose CSP forbids dynamic compilation is reached over CDP. Hotfix source is page-observable by design — it executes in the page — but is no longer posted into it.
  • page.js (MAIN world): the last-resort page relay's new Function / eval and Blob-script paths, reached only after the background's source-free probe and CDP fallback cannot run submitted source. A hostile same-tab page can choose the relay's one-shot JavaScript value. Exposes the documented window.GM Tampermonkey-style subset (xmlhttpRequest, openInTab, storage methods, addStyle, etc.); cookie operations remain typed operator commands, with no page-facing GM.cookie surface.
  • background.js (service worker): SSE stream, command dispatch, fetch relay, screenshots, CDP, cookies, tabs, downloads, notifications.
    • Eval routing: a constant MAIN-world Function probe carrying no submitted source runs first. true selects banner-free page-main injection; any other result selects the CDP CSP fallback, whose successful attachment shows Chrome's debugger banner. Once either channel dispatches submitted source, every outcome is terminal; only attach or shape failure before source runs reaches the page relay.
    • CDP Runtime.evaluate uses REPL mode, reads direct values by reference, bounds promise settlement at 10 seconds, and releases result and exception handles even when a kept session or capture holds the attachment.
    • Trust: a page you do not control can choose the returned value on any channel. On page-main its own eval and Function bindings can also read the submitted source; on cdp it can choose the value whenever that source uses page-controlled state or page promise machinery. The world field (page-main, cdp, page:<hostname>) records the channel, not whether to trust the value; the background adds the mandatory page: prefix, so relay hostnames cannot collide with the other two — a descriptive property, not a trust boundary.
    • The relay admits 1,000 live entries; a new one at capacity gets a terminal error without eviction, and a live entry expires with one terminal error after 300,000 ms.
  • Tab tracking: chrome.tabs API, registered on create/update with a 30s chrome.alarms heartbeat.

Read the full file on GitHub · 125 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 · +15 lines · +1,048 tokens per session eaa223a221ec
  2. 7d ago First seen · 110 lines · 5,005 tokens per session scan A 2c3cf6ff0f55

Subscribe to this mod's changes

daedalus AGENTS.md is an instructions file published in the GitHub repository Nitjsefnie-Harness-Commons/daedalus (1 stars, last pushed 2d ago), licensed MIT. It adds 6,053 tokens to every session, about $0.0303 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.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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 · 6,785 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,296 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,469 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens