Repositories and GitHub
Connecting your GitHub repositories lets DevSpec read your code and build a searchable map of it. Dev then answers from how your product really works, your agents start with the right context, and your commits and pull requests link back to the work they belong to. DevSpec works with GitHub. Your organization connects GitHub once, and each project then chooses which of the allowed repositories it tracks.
DevSpec reads your code, pull requests and GitHub checks so you can connect repository activity to the work it belongs to, and publishes its own check on your pull requests. It can also show a branch's rules; Administration read gives it access to classic branch-protection details without allowing it to change them. DevSpec never commits code of its own. You review pull requests on GitHub, and DevSpec merges one only when Merge when cleared is on and the pull request has passed every check (see "Let DevSpec merge pull requests once they're cleared" below). Your code is only used to run DevSpec for you. It's never sold and never used to train AI, and removing a repository deletes everything DevSpec read from it. See the privacy policy for how we handle your data.
Repositories are managed in Project settings → Repositories, or on the first step of a new project's Project setup.
Give your organization access to GitHub
GitHub access is connected once for your DevSpec organization. In DevSpec, organization Owners and Admins connect or disconnect GitHub. On GitHub, the GitHub owner chooses which repositories DevSpec can reach, and GitHub repository admins can also add their own repositories to an existing installation unless the GitHub owner has turned on GitHub's setting that restricts app installation to organization owners. Any Maintainer on a project then chooses which of those allowed repositories that project tracks in Project settings → Repositories.
Organization Owners and Admins set it up:
- Open Settings → Organization → Connections. The GitHub access section shows whether your organization is connected.
- Click Connect GitHub. GitHub opens in a new tab, and the DevSpec page shows "Finish on GitHub, then come back. This page updates by itself."
- On GitHub, choose the account or GitHub organization to install on, and which repositories to allow:
- All repositories: new repositories show up in DevSpec automatically.
- Only select repositories: you grant each new repository on GitHub as you need it.
- GitHub asks you to authorize DevSpec. This is how DevSpec confirms who you are on GitHub before it connects anything; it only reads who you are and keeps no access to your account.
- Return to DevSpec. The section shows the GitHub account and which repositories are allowed.
GitHub lists exactly what DevSpec is asking for on its install screen. If you aren't an owner of the GitHub organization, GitHub lets you request the install instead, and DevSpec tells you the request went to a GitHub owner. Once an owner approves it on GitHub, DevSpec connects it to your organization by itself and sends you a notification, and you can carry on choosing repositories.
You can also start the same trip from a project's repository picker or from Project setup. Once connected, the picker shows which GitHub account is connected. Use Change repositories on GitHub, there or on the Connections page, to change which repositories are allowed.
Organization Members can see the GitHub access status but not change it. Guests don't see organization settings.
Disconnect GitHub
An Owner or Admin can remove DevSpec's access with Disconnect GitHub, in the GitHub access section or next to the connected account in a project's repository picker, including during Project setup. Before anything changes, DevSpec names the GitHub account and says how many repositories in how many projects stop updating, and asks you to confirm. DevSpec then uninstalls its app from that account on GitHub.
The repositories stay in their projects, and their Maintainers are told they've stopped updating. Uninstalling the app from GitHub's own settings has the same effect.
To resume, connect that GitHub account again from Settings → Organization → Connections and include the repositories you want DevSpec to access. If you only removed a repository from the allowed list, add it back with Change repositories on GitHub. DevSpec reconnects existing tracked repositories when it can verify access, keeping their project history. You don't need to remove and add them again or make a test commit. If GitHub needs an owner's approval, recovery waits for that approval. If GitHub is temporarily unavailable, DevSpec retries automatically.
If your GitHub account is connected to another organization
A GitHub account can be connected to only one DevSpec organization at a time. If you choose one that another DevSpec organization already holds, DevSpec tells you it is already connected to another DevSpec organization and leaves that organization's connection untouched. To move it here, an Owner or Admin in the organization holding it can use Disconnect GitHub on Settings → Organization → Connections, or a GitHub owner can uninstall the app on GitHub; after that, you can connect it here. If you installed on the wrong account, choose Install on a different GitHub account.
Moving a GitHub account's connection affects every repository using that connection in the other DevSpec organization, not just one repository. It does not move any DevSpec projects or their history. Don't disconnect a shared connection just to repair a single repository without checking that impact.
If a repository is renamed or moved
DevSpec keeps a repository's existing project and history when it can verify that it is the same repository. Renaming it does not require you to remove and add it again.
If it moves to another GitHub account, that account must be connected to your DevSpec organization and include the repository in its allowed access. Use Fix on the repository to check access or connect the destination account. A GitHub owner may need to approve access. DevSpec reconnects automatically once it can verify access; your next normal push confirms delivery, with no test commit needed.
If DevSpec cannot reach the moved repository, the repository card shows that access was lost so you can reconnect it. If the destination GitHub account belongs to another DevSpec organization's connection, recovery stays blocked: your existing project and history do not move with the repository.
Link your GitHub account
Link the GitHub account you use, so pull requests and commits from it show as yours in your projects. Open Settings → Profile, and under Your GitHub account choose Link GitHub account. GitHub confirms it's you; DevSpec keeps no access to your account. When you connect an agent to a project with GitHub repositories, the agent gives you the same link if you haven't linked one yet. Installing the app, or requesting it, links your account too.
A GitHub account is linked to one person at a time. If someone else confirms on GitHub that they control an account linked to you, it moves to them and you're told. Your name is only shown to people in projects you're a member of; anyone else sees the GitHub username. To stop showing your name on an account's work, choose Unlink.
If you can't install the app yourself
The app is the only way DevSpec connects to GitHub. It works for repositories under your own GitHub account or a GitHub organization's. Installing on a GitHub organization needs a GitHub owner only when the app requests organization-level or repository administration permissions (which DevSpec requests to read classic branch-protection rules). If you aren't a GitHub owner, request the install on GitHub's install screen and ask an owner to approve it, as described in "Give your organization access to GitHub" above. Once an owner has installed the app, GitHub repository admins can also add the repositories they administer on GitHub, unless the GitHub owner has turned on GitHub's setting that restricts app installation to organization owners.
Add a repository to a project
Project Maintainers add and remove repositories.
- Open Project settings → Repositories and click Add repository. The Add or remove repositories dialog lists the repositories your organization has allowed. Repositories this project already tracks are marked.
- Click Add beside a repository.
- Choose its Tracking branch (see "Choose a tracking branch" below) and click Save.
DevSpec then reads the repository and builds a search index of its code. The card shows progress as it goes, and the project's Overview shows a Reading your code card during the first index. See Code indexing.
A project can track several repositories, such as a frontend, a backend and shared libraries, and Dev searches across all of them. Adding a repository to one project doesn't add it to your other projects.
Choose a tracking branch
Every repository in a project has one Tracking branch: the branch where day-to-day work lands. DevSpec reads your code from this branch and tracks work as it lands here. It's the only setting a repository must have.
- It's pre-filled with the repository's default branch. You can pick another; the branch must already exist on GitHub.
- Your agent works on its own branch and opens a pull request into the tracking branch, and DevSpec publishes its check on that pull request. See "Let DevSpec merge pull requests once they're cleared" below for how it lands.
- Pick a staging or development branch (such as
stagingordevelop) if you test changes before releasing, or your default branch if work goes straight there. Protecting it on GitHub ensures every change lands through a pull request with DevSpec's check. See "Protect your tracking branch" below. - Dev searches the tracking branch. It can also read any other branch straight from GitHub when you ask about it.
To change it, click the branch beside Tracking branch on the repository card and pick a branch. See Working with your agents for how agents work with pull requests.
Choose a release branch
A repository's Release branch is where work goes once it has landed on the tracking branch, such as main when you track staging. DevSpec treats pull requests into it as releases and checks them as releases (see "See pull requests and DevSpec's GitHub check" below).
- It starts as Automatic: the repository's default branch, unless you track the default branch itself, in which case there's no release branch.
- To change it, click the branch beside Release branch on the repository card, then search for and pick another branch, or choose No release branch.
- DevSpec doesn't index the release branch. The setting only tells DevSpec which pull requests are releases.
Read a repository card
Each tracked repository has a card in Project settings → Repositories. Its header shows the repository's name, a link to it on GitHub and, for Maintainers, the card's buttons. Under the name, one line shows:
- the indexing status, the file count and when it was last indexed
- how many commits it's behind GitHub, when it's behind
- whether DevSpec is receiving the repository's pushes (see "If pushes aren't arriving" below)
- Connection needs attention, if the connection to GitHub needs fixing
While it's cloning or indexing, a progress bar shows how far it has got, with an estimated time remaining.
Below that are the repository's Tracking branch, Release branch and Delivery signal, then its branch protection status (see "Protect your tracking branch" below) and Files to skip when indexing (see Code indexing).
Maintainers get these icon buttons on the card (hover to see the name):
| Button | What it does |
|---|---|
| Check for updates | Asks GitHub for new commits and updates the index if the repository is behind. |
| Full reindex | Reads every file again from scratch. |
| Retry failed files | Tries again on the files that failed last time. |
| Retry clone & index | Starts over when cloning or indexing failed. |
| Cancel indexing | Stops an index that's running. |
| Remove repository | Stops tracking the repository in this project. |
Tell DevSpec how a repository ships
A repository's Delivery signal tells DevSpec what has to happen after work merges into the tracking branch before that work counts as delivered. Choose it on the repository card:
- Live deployment: merging deploys a live app or service. Once a deployment target is connected for the repository, the card names it, and DevSpec waits for the deploy before work counts as delivered. Until then, the card offers Set up deployment. See Delivery.
- Merge only: work is complete once it merges into the tracking branch. DevSpec doesn't wait for a deployment.
A repository with no delivery signal chosen is treated like Merge only.
Protect your tracking branch
DevSpec recommends requiring pull requests on your tracking branch, and requiring DevSpec's check before anything merges into it. Then work that goes against someone's decision is stopped before it lands, rather than flagged afterwards with a choice to keep or undo it. A required check on its own doesn't stop direct pushes, which is why pull requests are required too. If the repository has a separate release branch, DevSpec recommends the same for that branch.
Each repository card shows where its branches stand (DevSpec checks both GitHub Rulesets and classic branch-protection rules):
-
Protected: both requirements are in place on GitHub.
-
Not protected yet: a compact status row for each branch alongside a click-by-click GitHub Rulesets guide:
- Click Create ruleset on GitHub (or open Settings → Rules → Rulesets → New ruleset → New branch ruleset on GitHub) to open GitHub's setup form.
- In Ruleset Name, type a clear name (for example,
Protect staging, orProtect staging and main). - Open the Enforcement status dropdown and pick Active (it starts as Disabled).
- Under Target branches, click Add target → Include by pattern, type your tracking branch, and click Add Inclusion pattern (do the same again for your release branch if you have a separate one).
- Scroll down to Branch rules and tick Require a pull request before merging. Leave Required approvals at 0 unless you want a teammate to manually approve every pull request.
- Tick Require status checks to pass, click + Add checks, type DevSpec, and select it. In the dropdown next to DevSpec, pick DevSpec (not Any source).
DevSpecappears in GitHub's Add checks search once DevSpec has run on a pull request in that repository. - Leave everything else unticked and click Create at the bottom, then return to DevSpec and click Check again.
Maintainers get Create ruleset on GitHub to open GitHub's new branch ruleset form directly, Check again to re-read GitHub once saved, and an Existing rulesets link whenever part of the protection is already in place.
-
Not enforceable on GitHub Free: the repository is private on GitHub's free plan, where GitHub can't enforce branch protection. DevSpec still checks every pull request and shows its verdict, and connected agents still wait for DevSpec's check, but GitHub can't stop someone merging by hand. To have GitHub enforce it, a Maintainer can upgrade your GitHub plan or make the repository public (Upgrade or make public on GitHub), or choose Carry on with results only: the card then shows Results only, and Show options brings the choices back.
-
DevSpec has no access: DevSpec couldn't read the branch rules on GitHub just now. That's an access or connection problem, not a plan limit. Use Check again once it's fixed.
DevSpec only ever reads branch rules. It never changes your settings on GitHub.
If pushes aren't arriving
There's nothing to test when you add a repository: your first real push confirms that DevSpec is receiving them. Under each repository card, a status line then shows:
- Receiving your pushes, with the time of the last one.
- Pushes aren't arriving · Fix, if GitHub records pushes that never reach DevSpec. DevSpec checks for this regularly and alerts the project's Maintainers when it happens.
Click Fix and DevSpec tells you the cause and the one thing to do about it:
- Check access on GitHub or Restore access on GitHub: the DevSpec app has lost access to the repository, or been suspended, on GitHub. Fix it there, then use Test it now.
- Check again later: the problem is on DevSpec's side, and there's nothing for you to change.
While pushes aren't arriving, DevSpec still checks each repository for changes periodically in the background, so new commits show up late rather than never.
When GitHub asks for updated permissions
The repository page tells you whether a permission update is available or existing access needs attention, and names the affected features. Choose Review permissions on GitHub and ask a GitHub administrator to approve the update. Features with sufficient access keep working.
The GitHub app asks for read access to your code and pull requests, and for:
- Checks and Commit statuses write, to publish DevSpec's check on your pull requests.
- Pull requests, Contents and Workflows write, so DevSpec can merge a pull request when Merge when cleared is on.
- Administration read, to read classic branch-protection rules.
- Dependabot alerts read, for security advisories.
Review the full permission list on GitHub before connecting. Reviewing pull requests stays on GitHub, and DevSpec never commits code of its own.
Permission to administer a project in DevSpec does not give you permission to approve an installation change on GitHub.
See pull requests and DevSpec's GitHub check
DevSpec keeps your pull requests up to date from GitHub on its own. Wherever a pull request is mentioned, in a session, on a task or on a deployment, click it to open it in DevSpec. A session's Work tab lists the pull requests that came out of it, with their check and merge status. Open pull requests into a tracked repository's tracking branch are also listed on Delivery, under Waiting to land. See Delivery.
DevSpec publishes one check on every open pull request in a tracked repository, and on GitHub merge-queue runs. What it checks depends on where the pull request is going:
- Into the tracking branch: the work the pull request carries, reported as one of the five states below.
- Into the release branch: the release. Work that already landed on the tracking branch was checked there, so a release is held only by work still waiting for an OK, an acceptance criterion recorded as not met, or a commit that went to the release branch without coming through the tracking branch. Work that's still being checked where it landed doesn't hold the release.
- Into any other branch: nothing. The check shows Not checked here, which GitHub treats as passing, and the work is checked when it heads for the tracking branch.
The five states are:
- Checking: DevSpec's conflict, duplicate or final-work checks are still in progress.
- Clear: all DevSpec checks on the pull request passed with no unsettled holds.
- Waiting for an OK: the pull request would undo an earlier decision or land an Experiment that still needs someone's OK.
- Needs attention: a check found a broken requirement, a failed acceptance criterion, a declined conflict ruling, commits with no linked task on an enforced branch, or, on a release, a commit that didn't come through the tracking branch.
- Couldn't check yet: DevSpec could not finish evaluating the pull request yet and will update the check when ready.
A draft pull request that's only waiting to be marked ready for review shows Waiting to be marked ready inside DevSpec. GitHub shows Checking until you mark it ready.
If a pull request merges or closes before DevSpec has finished checking it, DevSpec finishes the check instead of leaving it running. It shows Merged before DevSpec finished or Closed, neither a pass nor a failure. Anything still owed on merged work is checked where the work landed, and opening the pull request in DevSpec shows what hadn't been checked. A closed pull request that's reopened is checked from scratch.
On GitHub, the check shows only fixed, privacy-safe summary text and an Open this pull request in DevSpec link — never internal task titles, acceptance criteria or teammates' names. If you add DevSpec's check as a required status check in GitHub branch protection or rulesets, GitHub blocks merging until the check is Clear (see "Protect your tracking branch" above).
DevSpec's final check on finished work runs once per pull request into the tracking branch, when the pull request is opened or marked ready for review, whether or not the branch is protected. Work that reaches the tracking branch without a pull request, such as a direct push, is checked when it lands. If DevSpec's check says its backup ruled the final check because its usual one was unavailable, that check catches fewer conflicts, so give the work a closer look.
In a session, Dev can read a pull request by its number, including the work it delivered.
What you see when you open a pull request
Opening a pull request in DevSpec puts DevSpec's check first: its state, who is checking or whose OK it waits on, and any Review questions, which teammates can answer right there. Below it:
- Whether it will merge by itself. In GitHub merge queue while GitHub is landing it, or Merge when cleared on (or GitHub auto-merge on, when auto-merge was turned on in GitHub) with what it's still waiting for, such as "waiting for DevSpec check" or "waiting for GitHub review". The Merge when cleared switch is here too (see the next section).
- Linked work: the tasks the pull request carries, with their progress and acceptance criteria.
- Deployment: once it's merged into a repository with a deployment target, each target's progress: queued, deploying, deployed or failed.
- Its GitHub review, the CI checks on its latest commit, the destination branch's GitHub rules (with View rules on GitHub), its branches, any linked knowledge, its description and the files it changes.
Use Discuss to talk the pull request through in a session, or View on GitHub for its diff and review conversation.
Let DevSpec merge pull requests once they're cleared
Merge when cleared has DevSpec merge a pull request for you as soon as it's ready, so nobody has to watch for the last check to finish. DevSpec merges it once:
- DevSpec's check on its latest commit is Clear,
- any approval the pull request needs has been given, and
- every other required check on GitHub has passed.
If the branch uses a GitHub merge queue, DevSpec adds the pull request to the queue instead, and GitHub merges it from there.
For the whole project: Merge when cleared by default, at the top of Project settings → Repositories, switches it on for open pull requests across the project. It starts on, and a Maintainer can turn it off.
For one pull request: open the pull request in DevSpec and use its Merge when cleared switch, which you can turn off even when the project default is on. Below the switch, DevSpec shows who the work was Requested by, who it was Approved by, and who switched Merge when cleared on, including the agent that did it for them. Contributors and Maintainers can change the switch.
Your agents open a pull request for their work and switch Merge when cleared on, then stop and wait; DevSpec merges once the pull request clears.
To merge, DevSpec's GitHub app needs the Pull requests, Contents and Workflows write permissions. If they haven't been approved on GitHub, the repositories page says so (see "When GitHub asks for updated permissions" above).
Dependency updates from Dependabot and Renovate
A pull request that Dependabot or Renovate opens and that only changes dependency files doesn't need a task. Dependency files are package manifests and lockfiles, and workflow or container files where every changed line moves a version pin. If the pull request changes anything else, the bots' own settings included, DevSpec's check says which files and checks it like any other change.
Each update is reviewed by the agent of someone on the project who has switched on PR & dependencies under Checks and background jobs on Agent setup. The agent checks the update's release notes, your requirements and your pinned versions, and lands it when it passes, with no task and nobody's approval needed. What it found shows on the pull request under Dependency review. A pull request an agent opens itself to carry an update needs no task either, once its review confirms nothing else in the project has to change. See Automations.
When your team has decided to hold an update back, its pull request shows Held back, with the reason and what it's waiting on, and DevSpec's check holds it. The dependency review leaves it alone while that decision stands. Held-back updates are recorded in the project's Inventory.
Security alerts from your repositories
DevSpec reads your repositories' Dependabot alerts on GitHub and opens a Security advisory incident for each high or critical one, naming the package and the branch the alert describes. GitHub checks its alerts against your repository's default branch. When GitHub no longer lists the alert as open, the incident clears.
When your team decides an advisory isn't a realistic risk for how the project uses the package, record that in the project's Inventory as an accepted advisory, with the reason and what would change the decision. The advisory then shows as accepted rather than as an open incident, even while GitHub's alert stays open. Dismissing the alert on GitHub also clears the incident, but keeps no record in DevSpec of why.
Where alerts aren't available, for example when Dependabot alerts are switched off for the repository or the permission hasn't been approved, DevSpec checks the repository's dependencies against a public vulnerability database instead. An incident you closed yourself isn't reopened. See Incidents.
Remove a repository
A Maintainer removes a repository with Remove repository on its card, then Remove repo to confirm. The repository is untracked from this project: indexing stops, and the code DevSpec read from it is deleted. On a large repository this can take a few minutes. You can add it back later; it's indexed again from scratch.
Removing a repository doesn't revoke DevSpec's access on GitHub. To change which repositories DevSpec can reach, use Change repositories on GitHub on Settings → Organization → Connections. To remove its access altogether, use Disconnect GitHub there.
What DevSpec can do with your code
- Every member of the project can read code tracked into it, through Dev in sessions. Keep that in mind before you track a private repository into a project with many members.
- DevSpec never commits code of its own. Changes come from your agent or from you, using your own git credentials. DevSpec publishes its pull-request check, shows GitHub reviews, checks and branch rules, and merges a pull request only when Merge when cleared is on and the pull request has cleared. Code review stays on GitHub, and DevSpec never approves a pull request or changes your branch protection.
- DevSpec reads your files, commits and pull requests, and hears about your pushes through its GitHub app. It doesn't add webhooks to your repositories.
- Organization access reaches only the repositories you allowed on GitHub.
- The first full index of your organization's first repository is free. After that, indexing is a background charge on your organization's balance. See Code indexing.