Skip to main content

Set up your development environment

New to the team, or setting up a fresh machine? Let’s get you ready to contribute.

Before you start

  1. Check your repository access: Integration Hub holds our documentation and backlog; Modernisation Platform Environments holds our infrastructure code. Ask in #integration-hub-team if you’re unsure which repository or permissions you need.
  2. Clone it and open it in your editor.
  3. Follow its README to install dependencies and run the local checks.

For this documentation site, use the local development instructions.

Set up the AI toolkit

APM (Agent Package Manager) installs and updates our team’s engineering guidance for GitHub Copilot.

The toolkit currently supports GitHub Copilot only.

1. Install APM

Follow the APM installation guide then check it’s available:

apm --version

2. Install the toolkit

In a terminal at the root of the Integration Hub repository, run:

apm install --target copilot

This installs the apm.yml dependencies, using locked versions where available, and puts the guidance in .github/instructions/.

After installation, you should see the toolkit’s instruction files in .github/instructions/. Take a look in your editor’s file tree, or run ls .github/instructions/ in your terminal.

Keep it up to date

From the same repository root, run this before starting work and before opening or updating a pull request, even without AI:

apm update

Review and confirm APM’s update plan. This updates the toolkit, not APM itself.

Read any changed guidance, check your work against it and, if using Copilot, make sure it loads it.

File or folder What to do
apm.yml and apm.lock.yaml Review and commit any changes.
.github/instructions/ and apm_modules/ Generated files: don’t edit or commit.

You’re welcome to submit a pull request to our toolkit here: Integration Hub engineering toolkit.

Working outside the Integration Hub repository

We also work in repositories such as Modernisation Platform Environments. But the setup above stays in your Integration Hub checkout, so it won’t follow you when you switch repositories.

To take the guidance with you, install the toolkit for your user account. You only need to do this once on each machine, and you don’t need to add files to the other repositories you work in.

Set it up once

With APM installed, you can run this from any directory:

apm install --global --target copilot ministryofjustice/ai-toolkit/toolkits/integration-hub/engineering

Keep this copy up to date

Before starting work and before opening or updating a pull request, run this from any directory:

apm update --global --target copilot

Review and confirm the update plan, then read what’s changed.

Make sure Copilot can see it

Copilot CLI looks for your guidance in ~/.copilot/instructions/. Current versions of VS Code can use it too, but the setup depends on which agent runs your chat (called the harness in VS Code):

  • Copilot harness: the installation above puts the files where it expects them.
  • Local harness: add ~/.copilot/instructions as an enabled folder in chat.instructionsFilesLocations in your User settings.

After installing or updating, open the repository you’re working in and start a fresh chat. It’s worth checking the guidance is being picked up:

  • In VS Code, look for the toolkit instructions in the Agent Customizations editor. Try a small, relevant task and expand References in the response to see which instructions were used.
  • In Copilot CLI, ask Copilot to read the relevant installed instruction file before starting the task, and check that it actually reads it.

Before opening a pull request

  • Refresh the toolkit.
  • Review all AI-generated changes.
  • Run the relevant checks: documentation checks or file-transfer tests. Follow the test guide’s access requirements before running live AWS tests.
  • Explain what changed, why and how you checked it, including checks you didn’t run.

Keep sensitive data out of prompts, logs and pull requests. Never include secrets.

This page was last reviewed on 28 October 2026. It needs to be reviewed again on 28 January 2027 by the page owner #integration-hub .