agentleFS
MicrosoftKnown publishermicrosoft/AI-Engineering-Coach/AGENTS.md

AI-Engineering-Coach

AGENTS.md4.3k starsChanged 6 months agoMITView on GitHub

VS Code extension that analyzes local AI session logs and surfaces insights in a webview dashboard. Read-only, zero telemetry, all analysis runs on the user's machine.

  • Reads credentials

Trending

Quiet since September.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 6 mentionsJun 2026: 1 mentionJul 2026: 6 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/AI-Engineering-Coach repository that our weekly crawl found: only 14 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about microsoft/AI-Engineering-Coach

The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 14

Talked about on Bluesky, GitHub and Hacker News (14 times).

On Bluesky · 7

2 more on Bluesky

On GitHub · 6

1 more on GitHub

On Hacker News · 1

  • 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 repositoryOne other file it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    If you're a human, README.md is the better starting point.

    line 12
  2. Very specific:

    Run npm run check (and npm run test:e2e if you touched the webview) before pushing.

    line 171
  3. Distinctive:

    Inclusive language: Prefer allowlist/denylist, primary/replica, etc.

    line 181
  4. Very specific:

    Run npm run check before declaring work complete.

    line 189
  5. Very specific:

    Add or update inline # Tests blocks when changing rule or metric behavior.

    line 190
  6. Very specific:

    Keep parsing, warm-up, and cache writes inside their existing workers (src/core/*-worker.ts).

    line 191
  7. Distinctive:

    Use repo-relative markdown links so they resolve on GitHub and in the published Hugo site.

    line 192
  8. Very specific:

    Commit secrets, tokens, .env files, or anything matching local/, marketing/, PROPOSED_FIXES.md, or other .gitignore entries.

    line 204
  9. Distinctive:

    Add telemetry, analytics, or remote logging.

    line 210

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

You are an experienced TypeScript engineer working on the AI Engineer Coach VS Code extension. Your job is to keep analysis correct, the extension host responsive, and user data private — this codebase has zero telemetry and never modifies user session logs.

If you're a human, README.md is the better starting point.

Tech stack

  • Node ≥ 20 (CI uses Node 22)
  • TypeScript 6.0.3, strict mode
  • VS Code engine ^1.120.0 (@types/vscode 1.120.0)
  • Bundler esbuild 0.28.0 (esbuild.mjs, output → dist/extension.js)
  • Tests vitest 4.1.7 (unit + inline rule tests), Playwright 1.60.0 (e2e webview)
  • Lint eslint 10.4.0
  • Docs site Hugo (sources in docs/content/, published to microsoft.github.io/AI-Engineering-Coach/)

Repository map

AI-Engineering-Coach/
├── src/
│   ├── extension.ts            # VS Code activation entry point
│   ├── core/                   # Parsers, analyzers, the rule engine
│   │   ├── analyzer.ts          # Top-level coordinator across analyzer-*.ts
│   │   ├── parser.ts            # Reads session logs from disk
│   │   ├── parse-worker.ts      # Worker thread: logsDirs → progress + result/error
│   │   ├── warm-up-worker.ts    # Worker thread: sessions → antiPatterns + configHealth
│   │   ├── cache-write-worker.ts# Worker thread: persists cache payload
│   │   ├── metric-engine.ts     # DSL evaluator for rules and metrics
│   │   ├── rule-loader.ts       # Loads built-in + personal + project rule layers
│   │   ├── rule-trust.ts        # Trust gate (pending → review → approve → reload)
│   │   ├── rules/<id>.md        # 45+ built-in detection rules (markdown + DSL)
│   │   └── metrics/<id>.metric.md# Built-in metrics referenced by rules
│   ├── webview/                # Dashboard UI: app.ts plus page-*.ts per route
│   ├── chat/                   # VS Code Chat participant integration
│   ├── mcp/                    # Tools exposed to the chat participant / MCP
│   └── summary-export-vscode.ts# Markdown/JSON summary export
├── docs/
│   ├── content/                # Hugo source for https://microsoft.github.io/AI-Engineering-Coach/
│   ├── AUTHORING_RULES.md      # How to author a rule or metric (DSL + tests)
│   └── hugo.toml
├── scripts/                    # Packaging, smoke tests, data inventory tools
├── skills/                     # Reusable instructions for recurring agentic tasks
├── tests/e2e/                  # Playwright end-to-end tests
└── AGENTS.md                   # You are here

Build, test, and ship

TaskCommand
Install dependenciesnpm ci
Bundle the extensionnpm run build
Watch-mode rebuildnpm run watch
Type-checknpm run typecheck
Lintnpm run lint
Spellcheck markdown + TSnpm run spellcheck
Unit tests (vitest)npm test
All checks (CI gate)npm run check
End-to-end (Playwright)npm run test:e2e
Package the VSIXnpm run package (see skills/package-extension.md)
Bundle-size budgetnpm run check-size

CI runs npm run check (typecheck + lint + spellcheck + knip + test) plus the size check on every PR. Run those locally before pushing.

Skills

Repo-specific instructions for recurring tasks live in skills/. They are symlinked into .claude/skills/ and .github/instructions/ so popular agent harnesses pick them up automatically. See skills/README.md for the authoring format.

Available today:

  • skills/update-docs.md — author or update a Hugo doc page.
  • skills/package-extension.md — produce an installable .vsix.

Rule and metric authoring

Detection rules and metrics are the primary extensibility surface — markdown files with YAML front matter and a small DSL, no code changes required.

  • Built-in rules: src/core/rules/<id>.md (45+ today)
  • Built-in metrics: src/core/metrics/<id>.metric.md
  • Authoring guide with annotated examples: docs/AUTHORING_RULES.md
  • Trust layers (built-in / personal / project) gated through src/core/rule-trust.ts

Rules ship with inline # Tests blocks that run as part of npm test.

Workers

Heavy lifting happens off the extension host thread:

  • src/core/parse-worker.ts — logsDirs → progress + result/error.
  • src/core/warm-up-worker.ts — sessions → antiPatterns + configHealth.
  • src/core/cache-write-worker.ts — persists the cache payload.

Local rule trust flow

Rules move pending → review → approve → reload; edits revoke trust. See docs/content/improve/anti-patterns.md and docs/content/improve/rule-editor.md.

Documentation index

These pages are published at https://microsoft.github.io/AI-Engineering-Coach/. The links below point at the source markdown so they resolve on GitHub too.

  • Top-level: docs/content/_index.md
  • Features: docs/content/features/_index.md
  • Getting Started
    • Installation
    • Supported Tools
  • Observe
    • Dashboard
    • Timeline
  • Measure
    • Output
    • Burndown
    • Activity Patterns
  • Improve
    • Anti-Patterns
    • Rule Editor
    • Rule Playground
    • Data Explorer
    • Skill Finder
    • Context Health
  • Level Up
    • Achievements
    • Learning Center
    • Agentic SDLC
    • Share

Code style

Strict TypeScript, no any in new code, prefer named exports, keep heavy work off the extension-host thread.

// Good: typed, narrow, awaitable, off-thread.
export async function parseSessions(
  logsDirs: string[],
  onProgress: (p: LoadProgress) => void,
): Promise<ParseResult> {
  return runWorker('parse-worker', { logsDirs }, onProgress);
}

// Bad: untyped, blocks the extension host, swallows errors.
export function parseSessions(logsDirs) {
  try { return require('./parser').parseSync(logsDirs); } catch { return null; }
}

Rule and metric files use YAML frontmatter (id, name, severity, …) followed by markdown body and an optional # Tests block. See docs/AUTHORING_RULES.md.

Git workflow

  • Branch from main: feat/<scope>, fix/<scope>, docs/<scope>, chore/<scope>.
  • Commits use Conventional Commits prefixes (feat:, fix:, docs:, chore:, refactor:, test:).
  • Run npm run check (and npm run test:e2e if you touched the webview) before pushing.
  • Reference the issue in the commit body or PR description (Resolves #123).
  • See CONTRIBUTING.md for the CLA + review process.

Conventions

  • No telemetry, no network calls in core analysis paths. The optional AI features (rule compiler, skill finder, context review) use the VS Code Copilot language model API only when the user explicitly invokes them.
  • Read-only with respect to user data. The extension never modifies session log files.
  • Inclusive language. Prefer allowlist/denylist, primary/replica, etc.
  • Author over generate. Rules and skills are markdown — write them by hand or via the Rule Editor, not as opaque generated artifacts.

Boundaries

✅ Always:

  • Run npm run check before declaring work complete.
  • Add or update inline # Tests blocks when changing rule or metric behavior.
  • Keep parsing, warm-up, and cache writes inside their existing workers (src/core/*-worker.ts).
  • Use repo-relative markdown links so they resolve on GitHub and in the published Hugo site.

⚠️ Ask first:

  • Adding a runtime dependency (bundle-size budget enforced by npm run check-size).
  • Introducing a network call from the extension host or a worker.
  • Changing the rule trust flow (pending → review → approve → reload) or the DSL surface.
  • Renaming public commands, configuration keys, or extension IDs (breaks user settings).
  • Bumping engines.vscode or the Node version.

🚫 Never:

  • Commit secrets, tokens, .env files, or anything matching local/, marketing/, PROPOSED_FIXES.md, or other .gitignore entries.
  • Edit generated artifacts: dist/, docs/public/, *.vsix, node_modules/, test-results/, .vscode-test/.
  • Modify files under the user's session-log directories at runtime — this extension is strictly read-only with respect to user data.
  • Add telemetry, analytics, or remote logging.
  • Skip hooks (--no-verify) or push with failing npm run check.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.