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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/j3n5en/ensoai/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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00557 $0.00557
Sonnet 5 $0.00223 $0.00223
Haiku 4.5 $0.00111 $0.00111

Measured 6d ago against content hash 5dbc03b6f905, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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. 6d 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 (993 stars, last pushed 7d ago), licensed MIT. It adds 1,114 tokens to every session, about $0.0056 per session on Opus 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens