EnsoAI: Instructions file for Codex

AGENTS.md

EnsoAI AGENTS.md is an instructions file for Codex, OpenCode from J3n5en/EnsoAI. It costs 1,114 tokens per session, scanned A, original, MIT.

A project knowledge base for EnsoAI, a desktop application that manages Git worktrees and connects several AI coding agents.

In plain words
What is it for?
Locating inter-process communication, application state, interface components, Git services, terminal integration, AI-agent integration, and shared types.
Why use it?
It shows where major features live in the Electron and React codebase, reducing time spent searching through unrelated files.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/j3n5en/ensoai/agents-md"><img src="https://agentmods.dev/badge/instructions/j3n5en/ensoai/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,114 This file is loaded in full into every session.
When invoked 1,114 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.01114 $0.01114
Opus 5.5 $0.00446 $0.00446
Sonnet 5.5 $0.00223 $0.00223
Haiku 4.5 $0.00111 $0.00111

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

Security

Grade A, and why

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

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

How it starts

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

PROJECT KNOWLEDGE BASE

Generated: 2026-01-13 Commit: ccc93c2 Branch: main

OVERVIEW

EnsoAI - Git Worktree 管理器 + 多 AI Agent 集成。Electron 39 + React 19 + TypeScript 5.9 + Tailwind 4。

STRUCTURE

EnsoAI/
├── src/
│   ├── main/          # Electron 主进程 (IPC, Services, Menu)
│   ├── preload/       # Electron 预加载脚本 (Context Bridge)
│   ├── renderer/      # React 前端 (Components, Stores, Hooks)
│   └── shared/        # 跨进程共享类型定义
├── resources/         # 静态资源 (Ghostty themes 438个)
├── scripts/           # 构建脚本 (dev.js 进程管理)
├── docs/              # 设计文档 (design-system.md 关键)
└── build/             # Electron Builder 图标资源

WHERE TO LOOK

任务 位置 备注
IPC 通信 src/main/ipc/*.ts 17 个 handler 模块,按功能分离
状态管理 src/renderer/stores/*.ts Zustand stores,settings.ts 最大(37KB)
UI 组件 src/renderer/components/ui/ @coss/ui 组件,52 个文件
Git 操作 src/main/services/git/ simple-git 封装
终端 src/main/services/terminal/ + src/renderer/hooks/useXterm.ts node-pty + xterm.js
AI Agent src/main/services/claude/ Claude IDE Bridge (7 文件)
类型定义 src/shared/types/*.ts 15 个类型文件,ipc.ts 最重要
设计规范 docs/design-system.md UI 开发必读

CONVENTIONS

工具链(非标准配置)

  • Biome 替代 ESLint/Prettier — biome.json 配置
  • Tailwind 4 新语法 — @theme 块定义在 globals.css
  • OKLCH 色彩空间 — 非传统 HEX/HSL

路径别名

@/*      → src/renderer/*
@shared/* → src/shared/*

提交规范(CLAUDE.md 已定义)

  • Conventional Commits 格式
  • 描述用中文
  • feat|fix|ci|build 才进 Release Notes

ANTI-PATTERNS (禁止)

禁止 原因
as any / @ts-ignore Biome 规则明确禁用类型逃逸
手动实现 UI 组件 必须优先用 @coss/ui,见 docs/design-system.md
CDN 加载 Monaco worker CSP 限制,必须本地 worker import
直接修改 globals.css 主题 使用 Ghostty themes 同步机制

UNIQUE STYLES

UI 尺寸常量

Tab 栏:   h-9 (36px)
树节点:   h-7 (28px)
小按钮:   h-6 (24px)
缩进:     depth * 12 + 8px

Flexbox 截断模式

// 固定元素
<Icon className="h-4 w-4 shrink-0" />
// 可截断文本
<span className="min-w-0 flex-1 truncate">{text}</span>

Read the full file on GitHub · 114 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 · 114 lines · 1,114 tokens per session scan A 5dbc03b6f905

Subscribe to this mod's changes

EnsoAI AGENTS.md is an instructions file published in the GitHub repository J3n5en/EnsoAI (998 stars, last pushed 1mo ago), licensed MIT. It adds 1,114 tokens to every session, about $0.0045 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

EnsoAI AGENTS.md compared with instructions from other repositories

EnsoAI AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
EnsoAI AGENTS.mdJ3n5en/EnsoAIInstructions file9981mo agoMITA1,114Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode