deep-research: Instructions file for Codex

AGENTS.md

deep-research AGENTS.md is an instructions file for Codex, OpenCode from u14app/deep-research. It costs 1,460 tokens per session, scanned C, original, MIT.

A development guide for Deep Research, a Next.js application that uses a web interface, API routes, and shared UI components. It lists the package commands, project folders, and current testing situation.

In plain words
What is it for?
Working on the application's pages, API routes, components, configuration, builds, linting, and future test files.
Why use it?
It gives an AI assistant the repository context and the correct commands for installing dependencies, building, checking code, and running any available tests.

Instructions file for CodexOpenCode

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

This is u14app/deep-research's own configuration. It tells Codex and OpenCode how to work on deep-research 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 deep-research configures โ†’

About the project

Deep Research is an application that uses large language models and web search to produce research reports. It supports multiple AI providers and search services, processes data locally in the browser, and can be deployed to platforms including Vercel and Cloudflare.

u14app/deep-research ยท 4,687 stars ยท on GitHub ยท research.u14.app

Reuse

Borrowing it

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

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 deep-research AGENTS.md

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

Your own site ยท 80ร—15
<a href="https://agentmods.dev/instructions/u14app/deep-research/agents-md"><img src="https://agentmods.dev/badge/instructions/u14app/deep-research/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,460 This file is loaded in full into every session.
When invoked 1,460 The same file โ€” it is already loaded in full.
Security scan C 1 finding. 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.01460 $0.01460
Opus 5.5 $0.00584 $0.00584
Sonnet 5.5 $0.00292 $0.00292
Haiku 4.5 $0.00146 $0.00146

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

Security

Grade C, and why

deep-research AGENTS.md scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Destructive Actions**: Avoid `rm -rf` or history rewriting in git unless explicitly requested.
AGENTS.md ยท 123 lines

How it starts

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

AGENTS.md

This document provides essential guidelines and technical references for AI agents (and human developers) working on the Deep Research repository. Adhere to these patterns to ensure consistency, security, and maintainability.


๐Ÿš€ Development Workflow & Commands

The project uses pnpm as the primary package manager.

Core Commands

  • Install Dependencies: pnpm install
  • Development Server: pnpm dev (Runs at http://localhost:3000)
  • Build Project: pnpm build
  • Static Export: pnpm build:export (Generates out/ directory)
  • Standalone Build: pnpm build:standalone
  • Linting: pnpm lint

Testing

  • Status: Currently, there are no automated tests in the codebase.
  • Guideline: If adding tests, use Vitest or Jest following standard Next.js patterns. Place test files next to the code they test (e.g., ComponentName.test.tsx) or in a __tests__ directory.
  • Single Test: To run a single test (if added), use pnpm vitest run path/to/file.test.ts.

๐Ÿ“‚ Project Structure

  • src/app: Next.js App Router (Pages, API routes, Layouts).
  • src/components: UI components.
    • ui/: Shadcn primitives.
    • Internal/: Custom shared components.
    • Research/, Knowledge/, etc.: Feature-specific components.
  • src/hooks: Custom React hooks for business logic and state interaction.
  • src/libs: External service integrations (e.g., MCP server logic).
  • src/store: Zustand stores for global state and persistence.
  • src/utils: Helper functions and core deep research logic.
  • src/locales: I18n translation files (JSON).

๐ŸŽจ Code Style & Conventions

1. TypeScript & Types

  • Strict Mode: strict: true is enabled in tsconfig.json. Always provide explicit types for function parameters and return values.
  • Global Types: Core business logic types (e.g., SearchTask, Knowledge, Source) are defined in src/types.d.ts. Check this file before creating new interfaces.
  • Explicit Any: While @typescript-eslint/no-explicit-any is currently off, avoid any unless absolutely necessary for external library compatibility. Prefer unknown or specific interfaces.
  • Zod: Use Zod for schema validation, especially for AI response parsing and API request bodies. See src/app/api/mcp/server.ts for examples.

Read the full file on GitHub ยท 123 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 ยท 123 lines ยท 1,460 tokens per session scan C 1740f40dca71

Subscribe to this mod's changes

deep-research AGENTS.md is an instructions file published in the GitHub repository u14app/deep-research (4,687 stars, last pushed 4mo ago), licensed MIT. It adds 1,460 tokens to every session, about $0.0058 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

deep-research AGENTS.md compared with instructions from other repositories

deep-research AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deep-research AGENTS.mdu14app/deep-researchInstructions file4.7k4mo agoMITC1,460Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode