An AI-powered Senior Engineer Agent for your terminal.
Project description
🕵️♂️ Code Inspector AI
Your Multi-Agent Senior Engineer for the Terminal.
Code Inspector is a local-first, multi-agent CLI that automates the entire code review workflow. Unlike simple linters, it uses a team of specialized AI agents to perform deep architectural reviews, generate commits and write PR descriptions.
🤖 The Multi-Agent Team
You aren't just running a script; you're hiring a digital squad:
- The Architect (Senior Reviewer): The heavy hitter. It reads full files, understands your system's design, and catches the expensive mistakes that linters miss.
- The Scribe (Commit Agent): Watches your staged changes and crafts precise, Conventional Commit messages so you never write "wip" again.
- The Communicator (PR Agent): Reads your entire branch history and writes a beautiful Pull Request description that your manager will love.
Installation
pip install codeinspector
⚡ Quick Start
1. Set your API Key
You need a Google Gemini API key (Free tier works great).
# Windows (PowerShell)
$env:GOOGLE_API_KEY = "your_api_key_here"
# Linux/Mac
export GOOGLE_API_KEY="your_api_key_here"
2. Configure Your Engineer (Optional)
Pick your preferred model (e.g., gemini-1.5-pro for reasoning, gemini-2.0-flash for speed).
codeinspector config model
3. Review Your Code
Stage your changes and let the agents get to work.
git add .
codeinspector review --interactive
📖 The "Bad Cop" Story: Why Rules Matter
Every engineering team has "Unwritten Rules" that cause endless debates in Pull Requests (e.g., "No DB calls in controllers" or "No N+1 queries").
Code Inspector ends the debate. By defining your "Team Constitution" in codeinspector.yaml, you turn the AI into your designated Bad Cop.
How to set it up:
-
Initialize the Rules:
codeinspector config rules init
(This creates a
codeinspector.yamlwith best-practice defaults) -
Add Your Own:
codeinspector config rules add "SECURITY: All internal APIs must check for 'X-Internal-Token'."
Now, when a developer runs codeinspector review, the AI will strictly enforce your specific architectural standards before a human ever looks at the code.
Commands Cheat Sheet
| Command | Description |
|---|---|
| Review | |
codeinspector review |
Run an architectural review on staged changes. |
codeinspector review --interactive |
Chat Mode: Discuss the feedback with the AI. |
| Configuration | |
codeinspector config model |
Select your Gemini model (Flash, Pro, Ultra). |
codeinspector config rules init |
Generate a starter codeinspector.yaml. |
codeinspector config rules add "..." |
Add a new rule to your config file. |
| Automation | |
codeinspector commit |
Generate a Conventional Commit message. |
codeinspector pr |
Generate a PR description & create it on GitHub. |
codeinspector preview |
See what the AI would generate without acting. |
🤝 Contributing
- Fork the repo
codeinspector config rules init(To use our own rules on the project!)codeinspector review --interactive(To verify your code before pushing)
📄 License
Distributed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codeinspector-0.1.2.tar.gz.
File metadata
- Download URL: codeinspector-0.1.2.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c1f6ae613d327e5a161379a7574970778878abe01b632e6ef83cd7d5df66b44
|
|
| MD5 |
b8ed2f5c2b3e91c2dd76fb3060246927
|
|
| BLAKE2b-256 |
e4da9412bcb49a014d3fba2d2a9315a29d4129c8cee71abab3d4656f035b9e15
|
File details
Details for the file codeinspector-0.1.2-py3-none-any.whl.
File metadata
- Download URL: codeinspector-0.1.2-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de282704ec35d13433cf3ebd9b632da9696ff3e773db1b069b4a785efa8c9ea0
|
|
| MD5 |
5c5f528fe1b2a777732d0c0be85f6099
|
|
| BLAKE2b-256 |
a912e16928ea473fce49f3f1012a1e920978f12b44721f2b8ae060b664da2ab4
|