capabilities.work

Calculate how far branches have diverged

One step with Harness. We can help you get access.

Look something up

Calculate how far branches have diverged

with Harness
Works with AI assistants

Use Harness: its Harness Repository API lets you calculate how far branches have diverged in a single step (POST /code/api/v1/repos/{repo_identifier}/commits/calculate-divergence). Harness also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How many commits ahead or behind is my branch compared to another?
  • Can I compute divergence for several branch pairs in one request?
Say it to your AI assistant
  • Calculate commit divergence for these branch pairs in repository {repo}.
  • Count ahead and behind commits in repo {repo}, capped at {max}.
For your developer

POST /code/api/v1/repos/{repo_identifier}/commits/calculate-divergence in Harness Repository API. Full spec on APIs.io.