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.
curl -O https://raw.githubusercontent.com/J3n5en/EnsoAI/main/AGENTS.mdgit clone --depth 1 https://github.com/J3n5en/EnsoAIWrote 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/j3n5en/ensoai/agents-md)<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.
<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>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.01114 | $0.01114 |
| Opus 5.5 | $0.00446 | $0.00446 |
| Sonnet 5.5 | $0.00223 | $0.00223 |
| Haiku 4.5 | $0.00111 | $0.00111 |
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.
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>
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 · 114 lines · 1,114 tokens per session scan A 5dbc03b6f905
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.
EnsoAI AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| EnsoAI AGENTS.mdJ3n5en/EnsoAI | Instructions file | 998 | 1mo ago | MIT | A | 1,114 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | 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 | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |