Skip to content

Terkix-dev/AGENTS.md

Repository files navigation

🤖 Universal Project Compiler Agent

Python 3.10+ License: AGPL-3.0 FastAPI Termux Ready Status: Active Code Quality


📱 Android-first • 🚀 Termux-ready • 🔧 No Docker • ✨ AI-powered

Transform documents, specs, repositories, OCR text, Markdown, or natural language into complete, runnable, production-ready software projects in seconds.

📖 Documentation🚀 Get Started🔗 API💬 Issues


✨ Features

🎯 Core Features

  • 🏗️ Python CLI (upca) for local workflows
  • ⚡ FastAPI service with planning & compilation endpoints
  • 🧠 AI-powered planning engine (Critical/High/Medium/Low tasks)
  • 🛡️ Safe compiler with security validation
  • 🔐 Secret redaction & path traversal protection
  • 📱 Termux-optimized (runs on low-memory Android)

🔒 Security & Quality

  • ✅ HTTP security headers
  • 🚫 Secret pattern detection
  • 🔍 Safe slug generation
  • 📝 Full test coverage
  • 🧹 Ruff linting & Codespell
  • 📚 Complete documentation

🚀 Quick Start

Prerequisites

  • Python 3.10+
  • Git
  • 200MB disk space (Termux-friendly)

Installation & Run

# Clone and setup
git clone https://github.com/Huynhthuongg/AGENTS.md.git
cd AGENTS.md
./scripts/setup.sh
./scripts/start.sh

Open http://127.0.0.1:8000 in your browser or use the CLI:

# Plan a project
upca plan --text "# CRM Dashboard\nNeed auth, API, admin dashboard, dark mode"

# Compile & generate
upca compile --text "# CRM Dashboard\nNeed auth, API, admin dashboard" --output-dir generated

📱 Termux Setup

pkg update && pkg install python git
cd ~
git clone https://github.com/Huynhthuongg/AGENTS.md.git
cd AGENTS.md
./scripts/setup.sh
./scripts/start.sh

☁️ Vercel Deployment

This repository includes a Vercel serverless entrypoint and routing config, so the FastAPI dashboard is served at / instead of returning 404: NOT_FOUND.

# From the project root
vercel

Vercel uses:

  • vercel.json to route every request to the Python serverless function.
  • api/index.py as the FastAPI entrypoint.
  • requirements.txt to install runtime dependencies.

🔌 API Examples

Health Check

curl -s http://127.0.0.1:8000/health

Plan Endpoint

curl -s -X POST http://127.0.0.1:8000/plan \
  -H 'Content-Type: application/json' \
  -d '{
    "requirements": "# Portal\nNeed API, dashboard, auth and mobile responsive UI"
  }'

Compile Endpoint

curl -s -X POST http://127.0.0.1:8000/compile \
  -H 'Content-Type: application/json' \
  -d '{
    "requirements": "# E-commerce Store\nPython FastAPI backend, React frontend, PostgreSQL",
    "output_dir": "generated"
  }'

📁 Project Structure

AGENTS.md/
├── app/universal_compiler_agent/    # Main application package
│   ├── cli.py                        # CLI interface
│   ├── server.py                     # FastAPI server
│   ├── planner.py                    # Planning engine
│   └── compiler.py                   # Code generation
├── config/                           # Configuration examples
├── docs/                             # Architecture & specs
├── scripts/                          # Setup & helpers
│   ├── setup.sh                      # Initial setup
│   ├── start.sh                      # Start server
│   ├── check.sh                      # Run tests & linters
│   └── backup.sh                     # Backup script
├── tests/                            # Unit tests
├── .github/workflows/                # CI/CD pipelines
├── pyproject.toml                    # Project configuration
└── LICENSE                           # AGPL-3.0

🛠️ Development

Setup Development Environment

# Install dev dependencies
python -m pip install -e '.[dev]'

# Run quality checks
./scripts/check.sh

The check.sh script runs:

  • 🔍 Ruff (linter)
  • ✏️ Codespell (spell checker)
  • ✅ Pytest (test suite)

📊 Current Release

Property Details
Version 0.1.1
Release Date 2026-06-02
Python 3.10+
License AGPL-3.0-only
Status ✅ Active Development

Release Highlights v0.1.1

  • 🏃 CLI dry-run previews
  • 📂 Safe output directory validation
  • 🎛️ Dashboard route alignment
  • 🧪 Hardened test workflows

🔐 Security Model

We take security seriously:

  • 🚫 No hardcoded secrets in generated output
  • 🔍 Pattern detection redacts API keys, tokens, passwords
  • 🛡️ Path validation prevents directory traversal attacks
  • 🔒 HTTP headers follow security best practices
  • AGPL-3.0 ensures transparency

📦 Dependencies

Core

  • FastAPI (0.115+) - Web framework
  • Uvicorn (0.30+) - ASGI server
  • Pydantic (2.8+) - Data validation

Development

  • Pytest (8.0+) - Testing
  • Ruff (0.6+) - Code linting
  • Httpx (0.28+) - HTTP client
  • Codespell (2.3+) - Spell checking

🌟 Sponsors & Contributors

Thank You to Our Sponsors!

Sponsor Badge

Become a sponsor and help us develop faster! Your support helps maintain and improve this project.

🏆 Featured Sponsors

Your Logo Here
Your Company Here
🌟 Platinum Sponsor
Sponsor 2
Support Us
🥈 Gold Sponsor

👥 Contributors

Thanks to all our contributors! Your contributions make this project better every day.

Contributors


📖 Documentation


🐛 Issues & Feedback

Found a bug? Have a feature request? We'd love to hear from you!


📄 License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).

This means:

  • ✅ You can use, modify, and distribute this software
  • ✅ You must share your modifications if you use it
  • ✅ You must include the original license

See LICENSE for full details.


🚀 Ready to Get Started?

📖 Read the Docs💻 Clone the Repo⭐ Star on GitHub

Made with ❤️ by Huynhthuongg

colored line

Python Love Open Source

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors