{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "bgts-ai-org-bgts-context-engine--rank-code-symbols-for-a-bug-question",
 "repo": "bgts-ai-org/bgts-context-engine",
 "repo_url": "https://github.com/bgts-ai-org/bgts-context-engine",
 "repo_slug": "bgts-ai-org-bgts-context-engine",
 "title": "Find the symbols behind a bug question before editing",
 "page_title": "How to find the symbols behind a bug question before editing with BGTS Context Engine",
 "summary": "Ask a plain bug question and get the ranked code symbols that answer it.",
 "who": "A developer or coding agent starting work on an unfamiliar repository, with a bug report that describes behaviour rather than file names.",
 "problem": "Embedding search returns files that mention the words in the question, not the functions that set the behaviour and the callers that depend on it.",
 "outcome": "A ranked, budgeted list of the symbols that participate in the behaviour, with a coverage report showing how much of the answer to trust.",
 "steps": [
  "`docker compose -f deploy/docker-compose.yml up -d`",
  "`pip install bgts-context-engine`",
  "`cp .env.example .env`",
  "`bce migrate`",
  "`bce index --repo /path/to/your/repo --name my-service`",
  "`bce context --task \"fix the login timeout in the meeting webhook\"`"
 ],
 "agent_prompt": "Using the bgts-context-engine repository, index the repository at <target repo path> with bce index, then run bce context with the bug description <bug description> as the task. Expected output: a ranked list of symbols with a coverage report. Verify that the top results include the function that sets the behaviour named in the bug.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The benchmark figures in the README come from BGTS's own harness, which is not yet in this repository, so check the ranking on your own code before relying on it.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Docker with Docker Compose, to run PostgreSQL 16 with Apache AGE and pgvector",
  "Python with pip",
  "A local repository to index",
  "A coding agent that can call MCP tools, or the bce command line"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/bgts-ai-org-bgts-context-engine/rank-code-symbols-for-a-bug-question/",
 "md": "https://dedupedai.com/use-cases/bgts-ai-org-bgts-context-engine/rank-code-symbols-for-a-bug-question/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/bgts-ai-org-bgts-context-engine--rank-code-symbols-for-a-bug-question.json",
 "api_version": "v1"
}
