Demo 18 - GitHub Copilot App (Desktop)
This starter demonstrates how the GitHub Copilot desktop app coordinates
JavaScript coding work as visible, reviewable sessions. Two independent methods
intentionally throw Not implemented; TASK.md and the focused Node.js test
files define the expected behavior.
The split is deliberate: the sprint-planning and risk-analysis workstreams can run in parallel without editing the same source or test files.
Prerequisites
- Node.js 18 or later
- Git installed and this repository cloned locally
- GitHub Copilot app installed on Windows or macOS
- An active GitHub Copilot subscription and a signed-in GitHub account
The tests use Node’s built-in test runner, so no package installation is needed. Before presenting, run this command from the demo folder. Six tests should fail because the two methods are unfinished:
npm test
Live demo
-
Open the GitHub Copilot app and add this repository as a workspace. Select
Javascript/18-github-copilot-appas the working folder if the app offers folder scoping. Explain that the app is a control center for agent sessions, while the repository remains the source of truth. -
Start a planning session with this prompt:
Read TASK.md, the source modules, and the tests. Explain the two independent workstreams, identify their acceptance criteria, and propose a validation plan. Do not edit files yet.Review the plan and show the files the session used as context before authorizing implementation.
-
Start two implementation sessions so the audience can see work progressing in parallel.
Session A:
Implement only Workstream A from TASK.md. You may edit sprintPlanner.js and sprintPlanner.test.js only. Keep the public API unchanged and run npm run test:sprint. Summarize the behavior and test results when finished.Session B:
Implement only Workstream B from TASK.md. You may edit riskAnalyzer.js and riskAnalyzer.test.js only. Keep the public API unchanged and run npm run test:risk. Summarize the behavior and test results when finished.Point out each session’s status, isolated changes, command activity, and completion summary. The exact labels and controls can vary by app version.
-
Open each completed session. Review the diff before accepting or applying it, and verify that the agent stayed within its assigned files. Ask a follow-up in the relevant session when a requirement or test is unclear.
-
After both changes are available together, start an integration session:
Review the combined changes against every requirement in TASK.md. Do not change code unless you find a concrete defect. Run npm test and report any unmet acceptance criterion with file evidence. -
Show the final diff and test result. Explain that session summaries make it easy to move between tasks, but the human still decides what to keep and what is ready to commit or open as a pull request.
Reset after the demo
From the repository root, restore only this demo and remove files generated by the agent:
git restore Javascript/18-github-copilot-app
git clean -fd Javascript/18-github-copilot-app
Review untracked files before using git clean on a shared working tree.
Talking points
- The desktop app gives multiple agent sessions a single, visual control center.
- Splitting work by source and test files makes parallelism useful and reduces conflicting edits.
- A session is an auditable unit: prompt, context, tool activity, diff, tests, and summary stay together.
- Repository instructions and tests travel with the code; chat history alone is not a specification.
- Agent completion is not approval. Review the diff and run executable checks before committing or opening a pull request.
- Use the CLI for terminal-native work, the IDE for editor flow, and the desktop app when coordinating and monitoring multiple coding sessions is the focus.