ArchitectPro is a professional-grade desktop environment designed for Software Architects and Senior Developers. It serves as a "Context Engineering Cockpit", bridging the gap between complex local Python codebases and Large Language Models (LLMs).
By integrating high-level decision-making strategies (Hexagonal Architecture, Black Box Systems) with the repository-packing power of Repomix, ArchitectPro allows you to generate highly specific, secure, and architecturally sound contexts for AI analysis.
- Smart Packing: Uses
repomixto consolidate local Python projects into AI-friendly XML or Markdown formats. - Abstraction Control: Choose between Application (Detailed), Solution (Mid-Level), or Enterprise (Abstract) levels. This automatically tunes the
repomixfilters to ignore boilerplate, tests, or migrations based on your needs. - Selective Injection: Browse and check specific
.pyfiles to append their raw content directly to your prompt for targeted code reviews.
Built-in, Jinja2-templated prompt engineering strategies designed to force LLMs into structural thinking:
- Hexagonal Architecture: Guides the AI to refactor code into strict Domain, Ports, and Adapters layers.
- Steenberg Black Box: Implements modularity principles focusing on strict I/O boundaries and replaceability.
- Strategic Reasoning: One-click access to Graph-of-Thoughts (GoT), Chain-of-Verification (CoVe), and Architectural Debt Mapping.
- Modern Interface: High-DPI responsive GUI built with
CustomTkinter. - System Logging: Real-time console output for tracking Repomix operations and system status.
- Token Estimation: Built-in character-to-token calculator to help stay within LLM context limits (Claude, GPT-4, Gemini).
- Python 3.10+
- Node.js & NPM (Required for the packing engine)
- Repomix:
npm install -g repomix
-
Clone the repository:
git clone https://github.com/bbsoft0/ArchitectPro.git cd ArchitectPro -
Install Python dependencies:
pip install customtkinter jinja2 python-dotenv
-
API Configuration (Optional): Create a
.envfile in the root directory if using advanced AI features:GEMINI_API_KEY=your_key_here
- Target Directory: Select your Python project root.
- Context Focus: Define your goal (e.g., "Enterprise" for high-level refactoring).
- Smart Pack: Click "Py Smart Pack (XML)". This triggers Repomix to map your entire project structure.
- Select specific files from the generated list that require immediate attention.
- Toggle "Lazy Mode" if you only want the AI to return the specific lines that need changing (Find/Replace format).
- Observe the Token Counter to ensure your project fits in the LLM window.
- Navigate the tabs (Black Box, Hexagonal, Reasoning).
- Click a strategy (e.g., "Strategic Black-Box Planning").
- ArchitectPro copies the combined Instructions + Project Map + Source Code to your clipboard.
- Paste into your preferred LLM (Claude, ChatGPT, etc.) for an architect-level response.
ArchitectPro follows the philosophy that it is faster to write five lines of clean code today than to edit one line of spaghetti later.
The tool enforces this by:
- Defining Boundaries: Forcing the AI to see modules as Black Boxes.
- Isolating Side Effects: Encouraging Hexagonal adapters for database and API calls.
- Structural Context: Providing the AI with the whole repository map so it understands cross-file dependencies.
Repomix Command Fails
- Verify
npm install -g repomixwas successful. - On Windows, ensure the
npmglobal bin folder is in your System PATH.
Files not appearing in list
- Click "Browse" again or refresh the path. The app specifically filters for
.pyfiles in professional mode.
Log Files
- See
ArchitectPro.logfor a full history of subprocess commands and internal errors.