⏱️ Time: ~15 minutes
In this section, you'll set up your development environment and teach GitHub Copilot about your codebase.
- Open github.com/copilot-dev-days/agent-lab-java
- Click Use this template → Create a new repository
- Name:
my-soc-ops-java - Visibility: Public
- Name:
- ✅ Your own Soc Ops repo is ready!
- Go to your repo's Settings → Pages
- Under "Build and deployment", select GitHub Actions
- ✅ Every commit will now publish to:
https://{username}.github.io/{repo-name}
After creating your own repository, choose one:
- Open VS Code
- Run command:
Git: Clone→Clone from GitHub - Select your new repository (not the template repo)
- When prompted, install recommended extensions
- Open your new repository on GitHub
- Click Code → Codespaces
- Click Create codespace on main
- Wait for setup to finish
In the Chat panel:
/setup
The agent will:
- Detect your environment
- Install any missing dependencies
- Start the development server
✅ Success: App is running in your browser!
Context engineering is how you teach AI about your specific codebase. This makes Copilot's suggestions more accurate and relevant.
Instructions guide all agentic interactions, making them efficient and reliable.
Steps:
- Run command:
Chat: Generate Workspace Instructions File - Wait for the agent to analyze your codebase
- Review the generated instructions (probably too detailed!)
- Follow up with:
Compress down by half and add a mandatory development checklist (lint, build, test) to the top - Commit the instructions file
✅ Result: All future requests have a basic map of your workspace.
Background agents run in isolated git worktrees — perfect for tasks that don't need handholding.
Steps:
- Click
+in Chat → New background agent - Enter:
Add linting rules for unused imports and code style; fix any errors - Let it run, then Review and Apply the changes
- Right-click the session to delete it when done
Try a Cloud Agent too:
- Click
+→ New cloud agent - Enter:
Make the README more engaging as a landing page to the project
✅ Result: Linting rules added, errors fixed, README improved — all merged back to main!
Your repo comes with pre-configured instructions that help the AI understand the project.
📄 See .github/instructions/css-utilities.instructions.md
These document the custom Tailwind-like CSS classes available in this Spring Boot project.
💡 Optional: Delete the main text and re-run the prompt to see how it generates
📄 See .github/instructions/frontend-design.instructions.md
The "no purple gradients" instructions challenge the agent to think like a designer.
💡 Think about: What other AI biases could you challenge and nudge?
You've learned how to:
- Set up your development environment
- Generate and refine workspace instructions
- Use background and cloud agents for parallel work
- Understand existing instruction files