Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>FAF — Project ContextNew to Visual Studio Code? Get it now.
FAF — Project Context

FAF — Project Context

faf

|
2 installs
| (0) | Free
Score your repo's AI context in the sidebar — tier, empty slots, and drift against AGENTS.md, CLAUDE.md and .cursorrules.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

FAF — Project Context

VS Code Marketplace Open VSX

A human-facing HUD for your repo's AI context, inside the editor. Score and tier for your project.faf, drift against AGENTS.md, CLAUDE.md, GEMINI.md and .cursorrules, and the context card rendered without leaving VS Code.

FAF is the Foundational AI-context Format — IANA-registered project DNA for AI. This extension is the developer's viewport onto it. The AI's half is faf-mcp.

FAF Context sidebar and rendered context card, side by side, scoring faf-cli itself at 100% Trophy

What it does

  • Status bar — tier glyph + score (✪ FAF 100% / ◇ FAF 92%). Tooltip: tier, gap to the next tier, populated-slot count. Click opens the context card.
  • Sidebar (Activity Bar → FAF Context) — a score/tier header with the gap to the next tier, the 33 scored slots folded into four collapsible groups (Project / Human Context / Stack / Enterprise) with per-slot state, and a Drift group: one row per AI-context file (CLAUDE.md, AGENTS.md, .cursorrules, GEMINI.md) showing its mtime relationship to project.faf, with an inline Sync action.
  • Context card — FAF: Open Context Card (also the status-bar click) opens faf-cli's single-source context-card render in a webview beside the editor: fully static, strict default-src 'none' CSP, scripts disabled.
  • CodeLens on project.faf — one lens above each section header (project: / human_context: / stack:) with that section's fill tally; click to jump to the first empty slot.
  • Onboarding — FAF: Initialize project.faf authors a starter file (palette-visible only when the workspace has none). FAF: Sync Context Files runs faf sync --direction auto. FAF: Show DNA Journey prints the birth→growth journey to the output channel. A three-step Get started with FAF walkthrough ties them together.
  • Watch — project.faf and the four context files are watched; any change re-scores the HUD once, debounced 150 ms.
  • FAF: Score a GitHub Repo — prompt for any public GitHub URL, score it via the bundled CLI, and open the result in the same context-card webview. Nothing touches your workspace; the clone happens in a temp dir that's cleaned up immediately after.

Install

  • VS Code / Cursor / Windsurf: search FAF — Project Context in the Extensions view, or code --install-extension faf.faf-context.
  • VSCodium / Open VSX IDEs: install from Open VSX.

Then open a folder that contains a project.faf (or run FAF: Initialize project.faf to author one).

How it works

  • One runtime dependency: faf-cli. Its library (dist/index.js) is bundled by esbuild into dist/extension.js for in-process scoring, drift, and the card render.
  • Init / Sync / DNA run faf-cli's CLI (dist/cli.js, shipped inside the .vsix) with VS Code's own Node — process.execPath + ELECTRON_RUN_AS_NODE=1. No dependency on the user's PATH, no npx, no network.
  • The scoring kernel (faf-scoring-kernel, Rust → WASM) stays external so its synchronous __dirname + readFileSync load resolves against real node_modules.
  • Scoring, tiers, slots, drift, and the context card are 100% imported from faf-cli — the extension re-derives none of it.

faf-vscode vs faf-mcp

Audience Job
faf-mcp the AI / agent inject + sync context so the model answers right
faf-vscode (this) the developer show, at a glance, where project.faf stands; make score / sync / drift a one-click editor concern

Trust

capabilities.untrustedWorkspaces is limited: scoring, the sidebar, the card, and drift work in an untrusted workspace. Init, Sync, and DNA spawn the CLI, so they warn and no-op until you trust the workspace.

Tier symbols

✪ ★ ◆ ◇ ● ○ ♡ — never emoji or medals.

Links

  • faf.one — the FAF home
  • docs.faf.one — the format, scoring, and the CLI
  • faf-cli on npm

Develop

npm install
npm run build            # esbuild bundle -> dist/extension.js
npm test                 # bun test test/unit
npm run smoke            # build + headless check through the bundled dist
npm run typecheck        # tsc --noEmit (strict)
npm run package          # vsce package -> .vsix
npm run test:integration # Tier 2 — real VS Code host. Needs a display (xvfb on Linux CI).

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft