App Blink enriches developer interactions with LLMs through two complementary tools: the @app Copilot Chat Participant (for automatic contextual grounding) and the Prompt Playground (for drafting and iterating on customized AI prompts).


💬 The `@app` Chat Participant

When chatting with GitHub Copilot (Ctrl+Cmd+I or Cmd+I), prefixing your query with @app automatically injects the active application's full environment context into the prompt:

@app Scaffold a responsive checkout card matching our brand colors and spacing tokens.

Context Automatically Injected by `@app`:

1. **Active Application ID & Type**: Tells the model whether you are targeting Flutter Mobile (iOS/Android), Angular Web (CSR/SSR), or TypeScript Cloud Functions. 2. **Design Tokens & Palette**: Supplies the active color palette (`primary`, `secondary`, `accent`), surface tokens, and typography definitions. 3. **Architecture Conventions**: Injects framework-specific state patterns (e.g. Angular Signals vs Flutter Notifiers/Signals). 4. **Active File & Dependencies**: Summarizes the currently open buffer and relevant packages in `pubspec.yaml` or `package.json`.

🧪 Interactive Prompt Playground

The Prompt Playground is a dedicated webview panel inside your editor for testing, refining, and evaluating prompts before adding them to automated workflows or marketing generators.

How to Open the Playground

* Run `App Blink: Open Prompt Playground` from the Command Palette. * Or click the **Playground** button in the sidebar.

Workspace Variable Interpolation

The playground supports dynamic variables that are resolved in real time against your monorepo:
Variable Resolves To
${appName} Display name of the active app
${appId} Unique package identifier or slug
${framework} flutter or angular
${designTokens} Formatted JSON/CSS representation of brand tokens
${currentGitDiff} Uncommitted working tree diff
${latestCommit} Most recent commit message and hash
${firebaseProject} Connected Firebase project ID

Example Playground Template

```text You are an expert ${framework} engineer. Review the following active diff for ${appName} against our design tokens:

${designTokens}

Working diff: ${currentGitDiff}

Suggest performance optimizations and verify token fidelity. ```