deepchat: Instructions file for Codex

AGENTS.md

deepchat AGENTS.md is an instructions file for Codex, OpenCode from ThinkInAIXYZ/deepchat. It costs 481 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for DeepChat, an Electron and Vue desktop assistant that connects AI to personal information. They describe the code layout, package-manager requirements, and testing approach.

In plain words
What is it for?
Editing the desktop app, choosing the right test suite, running checks with pnpm, and protecting important user-facing behavior or regressions.
Why use it?
They help the coding agent make small, compatible changes without adding unnecessary dependencies or tests tied only to implementation details.

Instructions file for CodexOpenCode

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

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

About the project

DeepChat is an open-source desktop client for AI agents that keeps user data local first and connects agents with services such as MCP, Skills, ACP, and messaging apps. It is for people who want to use and control AI assistants from a desktop application. The catalogue add-ons extend DeepChat’s agent workflows.

ThinkInAIXYZ/deepchat · 6,384 stars · on GitHub · deepchat.thinkinai.xyz

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/thinkinaixyz/deepchat/agents-md"><img src="https://agentmods.dev/badge/instructions/thinkinaixyz/deepchat/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 481 This file is loaded in full into every session.
When invoked 481 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.00481 $0.00481
Opus 5.5 $0.00192 $0.00192
Sonnet 5.5 $0.00096 $0.00096
Haiku 4.5 $0.00048 $0.00048

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

Security

Grade A, and why

deepchat 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 1mo 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 · 29 lines

What it actually says

Repository Guidelines

  • Prefer the smallest correct change; add no abstraction or dependency without a real need.
  • Preserve unrelated worktree changes; avoid destructive Git unless explicitly requested.
  • Use pnpm only; require Node >=20.19 and pnpm >=10.11.
  • Core code: src/main, src/preload, src/renderer, src/shared; stack: Electron/Vue 3/TS.
  • Tests: use Vitest in test/main, Vitest with Vue Test Utils in test/renderer, and Playwright in test/e2e; run the smallest relevant suite.
  • Default to implementation-first development: inspect and design, complete the planned code change, then decide what new verification is needed. Do not default to TDD unless explicitly requested or a minimal executable reproduction is required to understand a complex failure.
  • Existing checks may run at any time. Treat new tests as regression protection, not implementation scaffolding; remove temporary probes and tests before handoff.
  • Commit only the smallest durable tests for user-visible behavior, documented contracts, persistence or migration, lifecycle or concurrency, recovery, security boundaries, or proven regressions. Prefer no new test to implementation-coupled coverage.
  • Keep native capabilities behind typed preload/IPC boundaries with context isolation enabled.
  • Keep executable previews on a separate origin with web security enabled; never give app-origin srcdoc both scripts and same-origin access. Validate native IPC senders before dispatch.
  • Use vue-i18n for user copy; prefer existing shadcn-vue primitives and VueUse utilities.
  • Follow Oxfmt: single quotes, no semicolons, 100 columns.
  • Before editing, inspect ownership, callers, tests, and nearby patterns; fix the root cause.
  • Before handoff run format, i18n, lint, typecheck, and relevant test suites.
  • Keep provider and ACP registry refreshes produced by normal builds.
  • Use Conventional Commits (type(scope): subject, <=50 chars); never add AI co-authors.
  • Target routine PRs to dev; only release branches target main.
  • Assess scope first; use SDD only for large features or complex changes, never small local work.
  • For UI changes, include concise BEFORE/AFTER ASCII layouts in the PR.
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. 1mo ago Changed · +2 lines · +38 tokens per session c6e00bdba79f
  2. 2mo ago First seen · 27 lines · 443 tokens per session scan A 80c4bfe06348

Subscribe to this mod's changes

deepchat AGENTS.md is an instructions file published in the GitHub repository ThinkInAIXYZ/deepchat (6,384 stars, last pushed yesterday), licensed Apache-2.0. It adds 481 tokens to every session, about $0.0019 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-30.

Related

deepchat AGENTS.md compared with instructions from other repositories

deepchat AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deepchat AGENTS.mdThinkInAIXYZ/deepchatInstructions file6.4kyesterdayApache-2.0A481Codex, 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