Paste a GitHub issue URL, describe a task, or point at a diff. FixMap returns ranked context files, test routes, risk notes, and explainable diagnostics—without an account, API key, or model call.
Try one command · Watch the 24-second film · Install the Action · Connect MCP · Contribute
Give FixMap a public GitHub issue. It fetches the task, infers the repository, scans an isolated temporary checkout, and removes that checkout when the report is complete:
npx -y @aryam/fixmap@latest plan --issue https://github.com/aryamthecodebreaker/FixMap/issues/59No clone, signup, configuration, or source upload is required.
Coding agents are fast after they find the right context. The expensive mistakes happen before the first edit:
- opening a plausible file instead of the definition that owns the behavior
- missing the nearest test or workspace-specific test command
- treating an unresolved diff as “no changes”
- reviewing a change without an explicit map of affected code and risks
FixMap adds a deterministic routing step before an agent starts searching. Its output is evidence, not a correctness claim:
| Output | What it tells you |
|---|---|
| Ranked context files | Where to start, with confidence and inspectable reasons |
| Test routes | Which package command and related tests are likely to verify the change |
| Risk map | Which sensitive areas are touched and why |
| Diagnostics | Missing refs, scan limits, remote-fetch details, and other uncertainty |
| Markdown or JSON | A human handoff or machine-readable input for the next tool |
Analyze a task against any public GitHub repository:
npx -y @aryam/fixmap@latest plan \
--issue "support public GitHub issue URLs" \
--repo https://github.com/aryamthecodebreaker/FixMapAnalyze private source or working-tree changes locally:
npx -y @aryam/fixmap@latest plan --issue "password reset emails fail"
npx -y @aryam/fixmap@latest plan --diff main...HEADWrite machine-readable output:
npx -y @aryam/fixmap@latest plan \
--base main \
--head HEAD \
--format json \
--output fixmap-report.jsonRemote repository mode is issue-only. Clone the repository locally when you need --diff, --base, or --head.
FixMap exposes one stdio tool, fixmap_plan, so an agent can request the same report directly.
Claude Code:
claude mcp add fixmap -- npx -y @aryam/fixmap@latest mcpCursor, Windsurf, or another MCP client:
{
"mcpServers": {
"fixmap": {
"command": "npx",
"args": ["-y", "@aryam/fixmap@latest", "mcp"]
}
}
}The official MCP Registry identifier is io.github.aryamthecodebreaker/fixmap. Analysis runs locally over stdio; FixMap does not send repository source to a hosted model or service.
Install FixMap from GitHub Marketplace, or add the versioned Action directly:
name: FixMap
on:
pull_request:
permissions:
contents: read
issues: write
pull-requests: write
jobs:
fixmap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- id: fixmap
uses: aryamthecodebreaker/FixMap@v0.7.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}The Action upserts one marked pull-request comment, writes the complete report to the step summary, and exposes report, context-count, and test-route-count outputs. Pin a release tag; a floating v1 tag will follow wider acceptance testing.
On forked pull requests, GitHub supplies a read-only token. FixMap warns instead of failing and keeps the full report in the step summary and outputs. Do not switch to pull_request_target while checking out untrusted fork code just to restore comments.
FixMap is deliberately inspectable:
- Deterministic: the same task, repository, and diff produce the same ranking—there is no hidden model call.
- Explainable: every ranked file includes reasons such as path matches, content matches, exact definitions, changed-file evidence, or import proximity.
- Local-first: local repositories stay local; public URLs use an anonymous temporary checkout.
- Non-executing: FixMap never installs dependencies or runs repository build, test, hook, or package scripts.
- Git-aware: scans respect
.gitignore, include untracked files in working-tree diffs, and surface unresolved refs as errors. - Monorepo-aware: test routing understands npm, pnpm, Yarn, Bun, and workspace package boundaries.
- Bounded: file counts, text samples, issue bodies, network responses, and remote-fetch time are capped with explicit diagnostics.
Public repository inputs accept only canonical credential-free https://github.com/owner/repository URLs. FixMap disables credential helpers, inherited Git configuration, hooks, submodules, symlinks, and LFS smudging, then removes the checkout on success or failure. Public issue fetching uses GitHub’s fixed API host without credentials or redirects.
Ranking changes must pass both the internal evaluation gate and a frozen cross-repository evaluation built from six real, already-fixed issues in permissively licensed projects.
| v0.7.0 external evaluation | Result |
|---|---|
| Expected fixing file ranked Top-1 | 4 / 6 (67%) |
| Expected fixing file ranked Top-3 | 6 / 6 (100%) |
| Expected fixing file ranked Top-5 | 6 / 6 (100%) |
The dataset covers Express, Axios, debug, ky, Zod, and Pino at exact commits. Every input and ranked output is checked into benchmarks/external/, and a scheduled workflow reruns it weekly. Six cases are useful regression evidence—not a general accuracy claim.
The v0.7.0 release also passed 122 automated tests, typechecking, linting, production builds, package and Action smoke tests, the internal evaluation gate, the frozen external evaluation, a production dependency audit gate, and a deterministic 1,000-file scanner check.
Read the full benchmark methodology and scanner measurements.
FixMap now recognizes distinctive identifiers and exact code or literal fragments in task text, then boosts the nearby definition site instead of merely rewarding repeated words. That moved the frozen Zod #5944 fixing file from outside the Top-5 to Top-1 while keeping the dataset unchanged.
Read the v0.7.0 release notes · Inspect the changelog · See every external ranking
Play the launch film · Explore the browser demo · Open the repository
The website demo runs against a small browser-only sample. The CLI, MCP server, and Action scan real repositories.
FixMap combines bounded, visible signals rather than one opaque score:
- Normalize the issue, task text, repository input, and optional git diff.
- Scan code, tests, documentation, and configuration while respecting ignore rules.
- Rank path/content overlap, distinctive definition sites, changed files, import-graph proximity, nearby paths, and workspace ownership.
- Route the closest package-level test command and related test files.
- Report risk areas and diagnostics without executing the suggested commands.
The implementation lives in packages/core, shared by every interface.
packages/core scanner, ranking, routing, reports
packages/cli npx/CLI entry point and MCP server
packages/action bundled GitHub Action
apps/web interactive Next.js product site
benchmarks transparent ranking evaluation cases
examples inspectable sample input and output
FixMap requires Node.js 20.11 or newer.
npm ci
npm run cinpm run ci covers typechecking, tests, a high/critical production audit gate, linting, production builds, Action and MCP metadata, bundle drift, smoke tests, evaluations, and scanner correctness. Use npm run benchmark:scan for the non-gating performance benchmark.
FixMap is focused on JavaScript and TypeScript repositories. It does not claim that a ranked file is correct, execute suggested commands, or hide failed diff resolution.
Next priorities include:
- expanding the frozen cross-repository dataset beyond six cases
- adding co-change and ownership signals
- publishing more monorepo adapters and examples
- promoting a stable
v1Action tag after wider acceptance testing
See open issues for scoped work, or start with CONTRIBUTING.md. Security reports belong in the process described by SECURITY.md.
MIT © FixMap contributors.
