Open source · Independent project
repolens — AI Software Engineering Assistant
Analyses Python repositories, explains functions, catches bugs and security issues, generates tests that are verified to pass, writes docs and reviews pull requests — from the AST, with an optional LLM.
The problem
Reviewers and new team members spend hours understanding unfamiliar code, and generated tests are often never run.
What I built
- Repository analysis: structure, complexity, imports, docstring coverage and entry points.
- 18 AST rules for bugs and security, with a CI-friendly exit code.
- Test generation from doctests and characterisation runs in an isolated subprocess, then verified with pytest.
- Docs generation with a dependency graph, and PR review with risk scoring; CLI and FastAPI.
My engineering contribution
- Designed and wrote the tool, rules, tests, docs and CI.
Architecture and workflow
Files, a single module or a pull-request diff.
Technical decisions
- Deterministic static analysis first, so results are reproducible in CI without API keys.
- The HTTP API never executes submitted code.
Outcomes
- 47 tests, about 93% coverage, CI on Python 3.10–3.13 and a Docker build.