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
Who's talking about microsoft/AI-Engineering-Coach
- A Hacker News story“Show HN: Strava for AI coding – analytics on your Copilot/Claude/Codex usage”Hacker News · May 16, 2026 · 8 points
- @yug1224.com“AIコーディングアシスタントの利用履歴を分析してプロンプトの癖や改善点を教えてくれるVS Code拡張機能らしい ローカル完結でプライバシーも安心だし自分のAI活用スキルを上げるのに使えそう yug1224 …”Bluesky · Jul 27, 2026 · 2 likes
- @github-trending-js.bsky.social“📦 microsoft / AI-Engineering-Coach ⭐ 3,373 (+79) 🗒 TypeScript better agentic engineering”Bluesky · Jul 21, 2026 · 2 likes
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / AI-Engineering-Coach ⭐ 3,972 (+184) 🗒 TypeScript better …”Bluesky · Sep 13, 2026 · 1 likes
- @yug1224.com“AIとのやり取りやプロンプトの癖を分析してスキル向上を支援するVS Code拡張機能っぽい ローカル環境で動作して自分の開発スタイルを振り返るのに使えそう yug1224 starred …”Bluesky · Jul 28, 2026 · 1 likes
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
- Jul 27, 2026AIコーディングアシスタントの利用履歴を分析してプロンプトの癖や改善点を教えてくれるVS Code拡張機能らしい ローカル完結でプライバシーも安心だし自分のAI活用スキルを上げるのに使えそう yug1224 starred… — @yug1224.com2 likes and reposts
- Jul 21, 2026📦 microsoft / AI-Engineering-Coach ⭐ 3,373 (+79) 🗒 TypeScript better agentic engineering — @github-trending-js.bsky.social2 likes and reposts
- Sep 13, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / AI-Engineering-Coach ⭐ 3,972 (+184) 🗒 TypeScript better agentic engineering — @github-trending-js.bsky.social1 likes and repost
- Jul 28, 2026AIとのやり取りやプロンプトの癖を分析してスキル向上を支援するVS Code拡張機能っぽい ローカル環境で動作して自分の開発スタイルを振り返るのに使えそう yug1224 starred microsoft/AI-Engineering-Coach… — @yug1224.com1 likes and repost
- Jul 27, 2026AIコーディングアシスタントの利用ログを分析してプロンプトの癖を可視化するVS Code拡張機能っぽい 開発の効率アップやスキル向上に役立ちそうかな yug1224 starred microsoft/AI-Engineering-Coach… — @yug1224.com1 likes and repost
2 more on Bluesky
- Jul 27, 2026AIコーディングアシスタントの利用ログを分析してプロンプトの癖を可視化するVS Code拡張機能っぽい 自分のAIの使い方がスコア化されて改善に役立ちそうかな yug1224 starred microsoft/AI-Engineering-Coach… — @yug1224.com1 likes and repost
- Jul 27, 2026AIコーディングの利用ログを分析してプロンプトの癖や効率を可視化するVS Code拡張機能ツールっぽい 自分のAIの使い方がどうなっているか気になって試したい yug1224 starred microsoft/AI-Engineering-Coach… — @yug1224.com0 likes and reposts · 1 reply
On GitHub · 6
- Jun 15, 2026feat: Microsoft Foundry / Google Cloud Blog を Knowledge 知見ソースに追加 — himiyosh/tech-dashboard0 reactions · 1 comment
- May 29, 2026Explore microsoft/AI-Engineering-Coach for ideas to adapt into this plugin — Habitat-Thinking/ai-literacy-superpowers0 reactions
- May 26, 2026Microsoft AI Engineering Coach Integration — joshuatownsend/project-minder0 reactions · 1 comment
- May 17, 2026📰 Hacker News AI 社区动态日报 2026-05-17 — ivanweng2077/big_model_radar0 reactions
- May 17, 2026Miniflux Digest · AI 信息 · 2026-05-17 — urzz/repo_for_report0 reactions
1 more on GitHub
- May 16, 2026[Tool] AI Engineer Coach — shanselman/TinyToolTown0 reactions · 3 comments
On Hacker News · 1
- May 16, 2026Show HN: Strava for AI coding – analytics on your Copilot/Claude/Codex usage8 points · 1 comment
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.
- agentic-workflowsSkill
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
- Distinctive: line 12
If you're a human, README.md is the better starting point.
- Very specific: line 171
Run npm run check (and npm run test:e2e if you touched the webview) before pushing.
- Distinctive: line 181
Inclusive language: Prefer allowlist/denylist, primary/replica, etc.
- Very specific: line 189
Run npm run check before declaring work complete.
- Very specific: line 190
Add or update inline # Tests blocks when changing rule or metric behavior.
- Very specific: line 191
Keep parsing, warm-up, and cache writes inside their existing workers (src/core/*-worker.ts).
- Distinctive: line 192
Use repo-relative markdown links so they resolve on GitHub and in the published Hugo site.
- Very specific: line 204
Commit secrets, tokens, .env files, or anything matching local/, marketing/, PROPOSED_FIXES.md, or other .gitignore entries.
- Distinctive: line 210
Add telemetry, analytics, or remote logging.
≈ “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
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/vscode1.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 tomicrosoft.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 hereBuild, test, and ship
| Task | Command |
| Install dependencies | npm ci |
| Bundle the extension | npm run build |
| Watch-mode rebuild | npm run watch |
| Type-check | npm run typecheck |
| Lint | npm run lint |
| Spellcheck markdown + TS | npm run spellcheck |
| Unit tests (vitest) | npm test |
| All checks (CI gate) | npm run check |
| End-to-end (Playwright) | npm run test:e2e |
| Package the VSIX | npm run package (see skills/package-extension.md) |
| Bundle-size budget | npm 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(andnpm run test:e2eif you touched the webview) before pushing. - Reference the issue in the commit body or PR description (
Resolves #123). - See
CONTRIBUTING.mdfor 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 checkbefore declaring work complete. - Add or update inline
# Testsblocks 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.vscodeor the Node version.
🚫 Never:
- Commit secrets, tokens,
.envfiles, or anything matchinglocal/,marketing/,PROPOSED_FIXES.md, or other.gitignoreentries. - 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 failingnpm run check.
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.

