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.
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.
curl -O https://raw.githubusercontent.com/u14app/deep-research/main/AGENTS.mdgit clone --depth 1 https://github.com/u14app/deep-researchWrote 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.
[](https://agentmods.dev/instructions/u14app/deep-research/agents-md)<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.
<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>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.
| Model | Per session | Once 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 |
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. 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 athttp://localhost:3000) - Build Project:
pnpm build - Static Export:
pnpm build:export(Generatesout/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: trueis enabled intsconfig.json. Always provide explicit types for function parameters and return values. - Global Types: Core business logic types (e.g.,
SearchTask,Knowledge,Source) are defined insrc/types.d.ts. Check this file before creating new interfaces. - Explicit Any: While
@typescript-eslint/no-explicit-anyis currentlyoff, avoidanyunless absolutely necessary for external library compatibility. Preferunknownor specific interfaces. - Zod: Use Zod for schema validation, especially for AI response parsing and API request bodies. See
src/app/api/mcp/server.tsfor examples.
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.
- 2mo ago First seen ยท 123 lines ยท 1,460 tokens per session scan C 1740f40dca71
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.
deep-research AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| deep-research AGENTS.mdu14app/deep-research | Instructions file | 4.7k | 4mo ago | MIT | C | 1,460 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |