Demo 18 - GitHub Copilot App (Desktop)

This starter demonstrates how the GitHub Copilot desktop app coordinates Java coding work as visible, reviewable sessions. Two independent methods intentionally throw UnsupportedOperationException; TASK.md and the focused JUnit tests 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

  • JDK 17 or later
  • Apache Maven 3.9 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

Before presenting, run this command from the demo folder. The project should compile and six tests should fail because the two methods are unfinished:

mvn test

Live demo

  1. Open the GitHub Copilot app and add this repository as a workspace. Select Java/18-github-copilot-app as 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.

  2. Start a planning session with this prompt:

    Read TASK.md, the source project, 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.

  3. 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.java and
    SprintPlannerTest.java only. Keep the public API unchanged and run mvn
    -Dtest=SprintPlannerTest test. Summarize the behavior and test results when
    finished.
    

    Session B:

    Implement only Workstream B from TASK.md. You may edit RiskAnalyzer.java and
    RiskAnalyzerTest.java only. Keep the public API unchanged and run mvn
    -Dtest=RiskAnalyzerTest test. 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.

  4. 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.

  5. 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 mvn test and report any
    unmet acceptance criterion with file evidence.
    
  6. 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 Java/18-github-copilot-app
git clean -fd Java/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.