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

1 star

Watchers

0 watching

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors