avyaansharma/codebase-history-analyzer ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python tool called Codebase Archaeologist that can answer questions like “why was this logic added?” by digging through a git repo’s history, commit diffs, linked pull requests, and issues. I want it to understand code at the symbol level, so it can trace a class or function to the commits and discussions that explain the change, then give a grounded answer with citations instead of guessing.
It should have a simple command line interface for asking questions about a repository, and it should also expose the same capability through an MCP server so I can use it in tools like Claude Desktop or Cursor. Use an agent style approach that can search, follow links between commits, PRs, and issues, verify claims before answering, and loop if it needs more context.
If you need to look up current docs for any libraries or APIs, go ahead and do that.
Are you gonna build this?
make sure you review the code using coderabbit