Git rename score

git-rename-score · version 1.0.0 · Developer tools · free, no key needed

Score Git-style line-chunk content similarity as an exact integer percentage with byte evidence.

Use when you need to: score git rename similarity · compare file content similarity · calculate rename percentage.

Decide before calling

Read the versioned contract and the supported scope below. Reuse git-rename-score@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use git-rename-score@1.0.0 for score git rename similarity. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "source": "a\nb\n",
  "destination": "a\nc\n"
}

Response:

{
  "result": {
    "reference": "Git 2.51.0 diffcore-rename content similarity model",
    "version": "1.0.0",
    "score": 50,
    "copied_bytes": 2,
    "source_bytes": 4,
    "destination_bytes": 4
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "git-rename-score",
  "version": "1.0.0",
  "input": {
    "source": "a\nb\n",
    "destination": "a\nc\n"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/git-rename-score/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"source":"a\nb\n","destination":"a\nc\n"}'

The machine-readable contract is at /v1/tools/git-rename-score/versions/1.0.0.

CLI

node cli.mjs run git-rename-score 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.