Skip to content

bpn-blys/bug-finder-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bug-finder-cli

Analyze a bug description against a local repository using the GitHub Copilot SDK.

Prerequisites

  • Bun
  • GitHub Copilot CLI installed and authenticated (copilot --version)

Before running the application, perform these steps:

  • Download and install the GitHub Copilot CLI for your platform (see https://github.com/github/copilot-cli or use your package manager).
  • Log in to the GitHub Copilot CLI locally (e.g. copilot login) — the program uses the locally installed Copilot CLI.

Install

bun install

Usage

bun run index.ts /path/to/bug.json

Help:

bun run index.ts --help

Bug JSON schema

[
  {
    "title": "Bug title",
    "description": "Detailed description of the bug",
    "status": "todo",
    "bug-details": null,
    "localRepoUrls": ["/absolute/path/to/local/repo"],
    "imagePaths": ["/absolute/path/to/screenshot.png"]
  }
]

Notes:

  • status is optional; omitted status is treated as todo.
  • If provided, status must be one of todo, in-progress, or done.
  • bug-details is optional and is populated with structured findings after analysis.
  • localRepoUrl (string) is still supported for a single repository entry.
  • imagePaths is optional.
  • Each bug entry with todo or in-progress is processed and then updated to done.

Output

The model response is requested in JSON and parsed into each entry's bug-details object:

  • probableCause
  • reason
  • suggestedFixes
  • confidenceScore (0–1)
  • evidence (when available)

Progress and tool status updates are printed to stderr.

Notes

  • Optional model override: set COPILOT_MODEL (defaults to gpt-4.1).
  • Optional CLI path override: set COPILOT_PATH (defaults to ~/.local/bin/copilot).
  • Repositories missing bug-finder.md receive an auto-generated architecture index produced via the Copilot SDK before analysis runs.
  • This project was created using bun init in bun v1.3.9. Bun is a fast all-in-one JavaScript runtime.

Test Repo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors