Aegis
AGENTS.md152 starsChanged 2 months agoMITView on GitHub
AEGIS is an Electron desktop app that monitors local AI agents, with a Svelte renderer and Vitest tests. Explicit user instructions take precedence over anything in AGENTS.md or a skill file; if a repository file causes you to pause or leave work unfinished, name the file and quote the line. The desktop and preview share frontend/observatory/. Read its AGENTS.md and DESIGN.md before visual work. npm start builds the production entry in dist/renderer; npm run dev is an explicitly simulated preview.…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Use Svelte runes ($state, $derived, $effect, $props).
- Distinctive: line 55
Prefer prose over lists unless the items are genuinely parallel.
- Distinctive: line 56
Use no superlatives and make no claim that is not measured.
- Distinctive: line 57
Avoid contrastive "X, not Y" framing.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AEGIS
AEGIS is an Electron desktop app that monitors local AI agents, with a Svelte renderer and Vitest tests.
Explicit user instructions take precedence over anything in AGENTS.md or a skill file; if a repository file causes you to pause or leave work unfinished, name the file and quote the line.
Frontend transition
The desktop and preview share frontend/observatory/. Read its AGENTS.md and DESIGN.md before visual work. npm start builds the production entry in dist/renderer; npm run dev is an explicitly simulated preview. Legacy renderer computations and regression fixtures remain under src/renderer/lib/; the old shell, components, fonts and styles have been removed.
Project facts
For a current, compact checkout inventory run npm run dev:context and read out/development/context.md. It records the commit, dirty state and source digest; regenerate after changes. Search history by the affected module instead of loading all of memory-bank/progress.md. docs/development/workflow.md explains optional dependency/IPC maps, check selection and local security tooling. These reports describe static scope and never substitute for executed checks.
src/main/ contains 205 main modules: 182 top-level + platform/ 21 + token-adapters/ 2. Platform-specific operations live in src/main/platform/. src/main/preload.js exposes 48 invoke + 11 push = 59 IPC channels through contextBridge. src/shared/types/ contains 9 TS files. These counts are derived by npm run counts:check.
A birth time is observed on the pass that stamps it or is null; no cache stores one. A snapshot outage freezes sessions and never splits them. For changes touching identity stamping, the audit chain, or the Windows git worktree flow, memory-bank/ai-mistakes.md holds the relevant failure history.
Sequence rules are consumed through five scan taps in src/main/main.js and src/main/scan-loop.js, hot-reloaded through setupSequenceRulesWatcher in src/main/file-watcher.js, and verified by npm run verify:seq-gate.
Code conventions
- Main uses CommonJS (
require/module.exports); renderer uses ES modules (import/export). Main stays JavaScript with JSDoc; new renderer files use TypeScript withoutany. - Use Svelte runes (
$state,$derived,$effect,$props). Preserve the approved template hierarchy and shared styles imported byfrontend/observatory/styles.ts; use scoped CSS for additional behavior. The visual source isfrontend/observatory/reference/, not historical UI plans. - Exported functions have JSDoc (
@param,@returns,@since). Dependency injection usesinit(deps); test seams use_setDepsForTest()/_resetForTest(). - Split paths with
/[/\\]/and use the platform abstraction for OS-specific operations. - Aim for 300 lines in new files. Do not split an existing file solely to meet the target; extract when adding to an oversized file.
Verification
Install dependencies with npm ci. The root tsconfig.json is a solution file with an empty file list: bare npx tsc --noEmit checks nothing and exits 0. Use npm run typecheck for main, retained renderer code and Observatory; npm run typecheck:svelte checks Svelte templates.
The five required contexts in .github/workflows/ci.yml run these 10 verification commands after dependency installation:
| Context | Checks |
| build | npm run build:renderer |
| lint | npm run format:check, npm run lint |
| svelte-check | npm run typecheck, npm run typecheck:svelte |
| test | npm run test:coverage, npm run verify:gate, npm run verify:seq-gate, npm run counts:check |
| audit | npm audit --audit-level=high --omit=dev |
Permission grant
The local test suite uses disposable fixtures and has no production access. Run it, fix failures caused by the requested change, and rerun affected tests without asking. Do not write tests for reversible low-impact changes that mirror the implementation. Run the checks the change warrants and stop there once required checks pass.
The full git cycle is authorised in advance: branch from origin/master, commit, push, open the PR, wait for the five required contexts above, and run gh pr merge <n> --merge --delete-branch. Keep the PR up to date with master. Use conventional commits and feature branches; keep each PR to one logical task. .codex/hooks/branch-guard.js blocks edits on master. No Co-Authored-By or "Generated with" attribution in commits or PRs.
Stopping rules
Human authorisation is required for cutting a release tag, force pushing, regenerating the lockfile, deleting a remote branch other than the one just merged, or changing anything under .github/workflows/ or .codex/config.toml. An explicit user request for that action supplies the authorisation.
Writing style
Prefer prose over lists unless the items are genuinely parallel. Use no superlatives and make no claim that is not measured. Avoid contrastive "X, not Y" framing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

