A minimal Node.js + vanilla JavaScript playground for testing coding copilots on a tiny front-end experiment.
- Install dependencies:
npm install
- Start the app:
npm start
- Open
http://localhost:3000in your browser.
- Shows a small list of agents loaded from
public/data/agents.json. - Includes a search box to filter agents by name.
- Clicking an agent opens a suggestion panel and updates a tiny visualization (color swatch) on a canvas.
- Includes two intentional bugs for copilot repair practice.
- Case-sensitive search match.
- Stale async selection race when clicking agents quickly.
- Case-sensitive search bug:
- Type
Alicein the search box, then typealice. Alicematches, butalicedoes not.
- Type
- Stale async selection race bug:
- Click
Alice, then quickly clickBruno(orCarla) within about 1 second. - The newer selection appears first, but the older
Aliceresult can overwrite it afterward.
- Click
- Search is case-insensitive:
Alice,alice, andALICEall return the same match. - Rapid agent clicks never allow an older delayed selection to overwrite the most recent selection.
- Suggestion panel and canvas always stay in sync with the latest clicked agent.
- Install the GitHub Copilot extension in VS Code.
- Sign in with your GitHub account that has Copilot access.
- Open this project folder and start using inline chat or code suggestions.
Official docs:
- https://docs.github.com/en/copilot/get-started-with-github-copilot
- https://code.visualstudio.com/docs/copilot/overview
- Install GitHub CLI (
gh) and authenticate with your GitHub account. - Install the Copilot CLI extension:
gh extension install github/gh-copilot
- Use Copilot in terminal, for example:
gh copilot suggest "how do i start this project?" gh copilot explain "npm start"
Official docs:
- https://docs.github.com/en/copilot/how-tos/use-copilot-agents/use-github-copilot-in-the-cli
- https://docs.github.com/en/copilot/get-started-with-github-copilot
- Open the Codex getting-started documentation.
- Follow setup instructions for your environment/editor.
- Open this project and use Codex to apply edits from prompts.
Official docs:
- Install Codex CLI:
npm install -g @openai/codex
- In your project folder, start Codex:
codex
- Ask in plain language (for example):
Fix the search so it is case-insensitive.
Official docs:
- https://platform.openai.com/docs/guides/codex
- https://help.openai.com/en/articles/11096431
- https://github.com/openai/codex
I kept the project intentionally small and flat so copilots can understand and edit single files quickly: one static server, one HTML page, one JS file for app logic, one CSS file, and one JSON data file.