This page walks through the full IssueLoop workflow from a fresh install to claiming and resolving your first bug ticket. You will install the package, point it at a repository, run the test suite, let the LLM triage the failures, and then pull the top ticket out of the queue — all in a few lines of Python or from the CLI.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/onenot8/issueLoop/llms.txt
Use this file to discover all available pages before exploring further.
The default LLM provider is Ollama running locally with
qwen2.5-coder:7b — free, fully offline, and no API key required. If Ollama is already installed and running, you can complete this entire quickstart without touching any cloud service.Configure
Call
issueloop.use(...) once at the start of your script to set the database backend and LLM provider. The example below shows a multi-provider setup with Anthropic as the primary and Ollama as the local fallback — IssueLoop tries them in order and falls back automatically if one is unavailable.Scan and run tests
Point IssueLoop at your repository to build a file inventory, then execute the test suite.
scan_repo takes a path; run_tests takes the short repository name as registered in test_manifest.json.run_tests returns a list of result dicts — one per test command — each containing test_id, exit_code, and the captured output. Failures are written to the local log cache and picked up automatically by the next step.Create tickets
Send every failure log through the LLM triage step. IssueLoop deduplicates overlapping failures and writes one The return value is a list of ticket dicts. Each dict has the same shape as the JSON returned by
Ticket per independent problem, with a plain-English summary and an assigned priority.get_top_error in the next step.Claim a ticket
Pull the highest-priority pending ticket out of the queue. The ticket is atomically marked Example return value:If there are no pending tickets,
in_progress so that no other caller receives the same ticket.get_top_error returns None.Equivalent CLI workflow
Every step above has a direct CLI counterpart. This is useful for shell scripts, CI pipelines, or any non-Python environment.issueloop next prints the full ticket JSON to stdout, so you can pipe it into jq or any other tool: