Build a VS Code extension that turns a user-supplied model API key into a scoped coding assistant — not a general agent. Use TypeScript for the extension, and let the model be either Claude or GPT (read ANTHROPIC_API_KEY or OPENAI_API_KEY from the environment; if neither is set, show a clear setup message rather than failing silently). Index only the currently open workspace, respecting .gitignore. Provide a sidebar chat where a user describes a component or change; send the request plus the relevant open files' contents (not the whole repo) as context. Show the model's proposed changes as a unified diff per file, with accept/reject/partial-apply controls — never write to disk without explicit approval. Add a lightweight local preview for generated React components using a sandboxed iframe and a minimal Vite dev server, so a user can see a component render before accepting it. Log every request, response, and applied or rejected diff to a local file for auditability. Do not build one-click deployment, a hosted backend, or unattended multi-file refactors without per-file review — those are explicitly out of scope. Requires an Anthropic or OpenAI API key; without one, the extension still installs but the assistant panel stays disabled with instructions for adding a key.