Metadata-Version: 2.4
Name: ai-software-factory
Version: 1.0.11
Summary: Autonomous AI Software Factory - Production-grade multi-agent system
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: langgraph>=0.2.45
Requires-Dist: langchain-core>=0.3.9
Requires-Dist: openai>=1.54.3
Requires-Dist: qdrant-client>=1.12.1
Requires-Dist: docker>=7.1.0
Requires-Dist: pydantic-settings>=2.6.1
Requires-Dist: pydantic>=2.9.2
Requires-Dist: opentelemetry-api>=1.28.1
Requires-Dist: opentelemetry-sdk>=1.28.1
Requires-Dist: opentelemetry-instrumentation-requests>=0.49b1
Requires-Dist: pytest>=8.3.3
Requires-Dist: pytest-cov>=6.0.0
Requires-Dist: pytest-asyncio>=0.24.0
Requires-Dist: black>=24.10.0
Requires-Dist: ruff>=0.7.2
Requires-Dist: mypy>=1.13.0
Requires-Dist: python-dotenv>=1.0.1
Requires-Dist: tiktoken>=0.8.0
Provides-Extra: local
Requires-Dist: llama-cpp-python>=0.3.1; extra == "local"
Requires-Dist: huggingface-hub>=0.26.2; extra == "local"
Requires-Dist: tqdm>=4.66.5; extra == "local"
Dynamic: license-file

# 🤖 AI Software Factory (Sub-Project)

**The core engine behind the AI Software Factory.** This package handles agent orchestration, local LLM inference, and filesystem management.

---

## 🚀 Version 1.0.10 Highlights
- **💨 Optimized Local Mode**: 2-3x faster response times on CPU using physical-core threading.
- **✨ Clean Console**: Silenced JSON logs and technical warnings for a professional CLI look.
- **📍 Current Directory Focus**: No more `./output` folder—the AI builds and edits files directly where you are.

---

## 🛠️ Usage Guide

### 1. Launching
After installation via `pipx`, simply run:
```bash
ai-factory
```

### 2. Configuration (`/auth`)
The first time you run the tool, use `/auth` to choose your engine:
- **🟢 Local Mode**: Zero-Key, private, and free. Downloads a ~1GB model on first use.
- **🔵 Cloud Mode**: High-speed, uses OpenRouter. Requires an API Key.

### 3. Basic Workflow
AI Factory distinguishes between **Casual Chat** and **Build Requests** automatically.
- **Project Request**: "Add a login page to this react app" -> Triggers the Architect/Developer workflow.
- **Casual Question**: "What is Python?" -> Responds with a helpful answer.

---

## 📋 Commands

| Command | Action |
|---------|--------|
| `/cd <path>` | Change the factory's working directory. |
| `/list` | List all files in the current focus folder. |
| `/read <file>` | View a file with line numbers (helps with manual review). |
| `/edit <file>` | Open a specific file for AI modification. |
| `/undo` | Roll back the last code change made by the AI. |
| `/status` | Check if you are in Local or Cloud mode. |
| `/questions` | Toggle whether the AI asks clarifying questions. |

---

## 📦 Maintenance
To update to the latest version of the AI Software Factory:
```bash
pipx upgrade ai-software-factory
```

---

## 🛡️ Best Practices
- **Skills**: Add a `.md` file to the `skills/` folder to tech the AI your specific coding style.
- **Backups**: If something goes wrong, check the `.ai-factory-backups/` folder in your project root.
- **Diffs**: Always review the `diff` before typing `yes` to apply changes.

**Developed with ❤️ and optimized for the terminal.**
