project-context
Background knowledge about the Agent Lens VS Code extension architecture. Preloaded by agents for project context.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Background knowledge about the Agent Lens VS Code extension architecture. Preloaded by agents for project context.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Investigate and fix a bug using the project's TDD workflow. Use when given a bug report or GitHub issue to fix.
Guide for writing tests in Agent Lens. Use when creating unit tests, integration tests, or setting up test infrastructure.
Guide for developing the Agent Lens VS Code extension. Use when creating or modifying extension code, webviews, tree views, or commands.
Guide for writing tests. Use this when creating unit tests, integration tests, or setting up test infrastructure.
Guide for developing VS Code extensions. Use this when creating or modifying extension code, webviews, tree views, or commands.
| name | project-context |
| description | Background knowledge about the Agent Lens VS Code extension architecture. Preloaded by agents for project context. |
| user-invocable | false |
VS Code extension that visualizes AI agent workflows across GitHub Copilot, Claude Code, and OpenAI Codex.
TypeScript, Lit 3, D3.js 7 + d3-dag, Vitest 3, esbuild, js-yaml
src/
extension.ts — Activation, command registration, watchers
models/ — Interfaces: Agent, Skill, Session, Graph, Metrics
parsers/ — Session discovery and parsing (pure functions)
sessionProvider.ts — SessionProvider interface (all providers implement this)
copilotProvider.ts — GitHub Copilot session discovery
claudeProvider.ts — Claude Code session discovery
codexProvider.ts — OpenAI Codex CLI session discovery
agentParser.ts — Agent frontmatter + handoff parsing
skillParser.ts — Skill frontmatter parsing
frontmatterParser.ts — YAML frontmatter extraction
discovery.ts — Glob-based agent/skill file discovery
sessionRegistry.ts — Coordinates providers, dedupes, watches changes
detectors.ts — Agent/skill detection helpers
analyzers/
graphBuilder.ts — Agents + skills → DAG with handoff edges
metricsCollector.ts — Token usage, agent/model/tool/skill counts
views/
treeProvider.ts — Sidebar tree (agents, skills, actions)
graphPanel.ts — Graph webview panel controller
metricsPanel.ts — Metrics webview panel controller
sessionPanel.ts — Session explorer panel controller
webview/
graph.ts — D3 graph visualization (Lit custom element)
layout.ts — D3-DAG Sugiyama layout algorithm
metrics.ts — Metrics dashboard webview
session.ts — Session explorer (timeline)
src/views/*Panel.ts) manage webview lifecyclesrc/models/npm run build — Build extension + webviewnpm test — Run all tests (vitest)npx vitest run <path> — Run a single test filenpm run build:ext — Build extension onlynpm run build:webview — Build webview onlyNodeKind: agent, skill, builtin-agent, claude-agent
EdgeKind: handoff, tool-call, skill-use
feat(scope):, fix(scope):, etc.)*.test.ts next to source files