Skip to content

wronai/contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

174 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

reclapp.png

Reclapp 2.4.1 - AI-Native Declarative Platform

Version License: Apache-2.0 Python TypeScript GitHub stars GitHub forks GitHub issues GitHub pull requests Tests Code style: black Type checking: mypy Platform Dependencies

AI-Native Declarative Platform for building autonomous B2B applications with causal reasoning, verification loops, and production-ready safety rails.

🌟 Key Features

  • Unified Python CLI - Native implementation of all commands (evolve, analyze, refactor, tasks, etc.)
  • Modular Architecture - Extracted reclapp-llm and reclapp-contracts for better reusability.
  • Evolution Mode 2.0 - Full lifecycle from prompt to working service with auto-healing and E2E tests.
  • 8-Stage Validation - Syntax, Schema, Assertions, Static Analysis, Tests, Quality, Security, Runtime.
  • Multi-Provider LLM - Support for OpenRouter (free models), Ollama (local), Windsurf, and LiteLLM.
  • Parallel Task Execution - Dockerfile-style execution for complex workflows.

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • Docker & Docker Compose (optional)
  • npm or yarn

πŸ› οΈ Usage

Evolution Mode (Prompt β†’ Service)

Generate a full application from a natural language description.

# Generate and run with tests
reclapp evolve -p "Create a todo app with tasks and categories" -o ./my-app

# With auto-healing and keeping the service running
reclapp evolve -p "Build a CRM with contacts and deals" -o ./crm -k

Code Analysis & Refactoring

# Analyze existing codebase and extract Contract AI
reclapp analyze -d ./src -o contract.ai.json

# Refactor code based on contract changes
reclapp refactor -c contract.ai.json -d ./src --dry-run

Contract Management

# List available contracts in project
reclapp list -d examples --format table

# Parse Markdown contract to JSON
reclapp parse my-app.rcl.md

# Validate contract structure and business rules
reclapp validate contract.ai.json

Parallel Tasks

# Run multiple shell commands in parallel from a .tasks file
reclapp tasks build.tasks --workers 4

πŸ€– LLM Configuration

Reclapp uses a unified LLM manager with fallback support.

# Check provider status
reclapp llm status

# List recommended models
reclapp llm models

# Set preferred provider
reclapp llm set-provider openrouter

πŸ“ Modular Architecture

Reclapp is split into several packages for better maintenance:

  1. `reclapp` (core): Main CLI and orchestrator.
  2. `reclapp-llm`: Unified LLM provider interface (Ollama, OpenRouter, etc.).
  3. `reclapp-contracts`: Contract AI data models and Markdown parser.
  4. `clickmd`: Markdown terminal renderer for consistent output.

πŸ—οΈ Architecture

``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ RECLAPP 2.4.1 β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ INPUT β”‚ β”‚ β”œβ”€β”€ Prompt ("Create a CRM system") β”‚ β”‚ β”œβ”€β”€ RCL Markdown (*.rcl.md) β”‚ β”‚ └── JSON Contract (contract.ai.json) β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ CORE ENGINE (Python Native) β”‚ β”‚ β”œβ”€β”€ Evolution Manager (Auto-healing loop) β”‚ β”‚ β”œβ”€β”€ Task Executor (Parallel processing) β”‚ β”‚ └── LLM Manager (Multi-provider routing) β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ VALIDATION PIPELINE (8 Stages) β”‚ β”‚ β”œβ”€β”€ 1. Syntax 5. Tests β”‚ β”‚ β”œβ”€β”€ 2. Schema 6. Quality β”‚ β”‚ β”œβ”€β”€ 3. Assertions 7. Security β”‚ β”‚ └── 4. Static 8. Runtime β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ OUTPUT β”‚ β”‚ β”œβ”€β”€ Generated API (Express.js + TypeScript) β”‚ β”‚ β”œβ”€β”€ React Frontend (Vite) β”‚ β”‚ └── Infrastructure (Docker, CI/CD) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ```


Reclapp - AI-Native Declarative Platform for Autonomous B2B Applications

License

Apache License 2.0 - see LICENSE for details.

Author

Created by Tom Sapletta - tom@sapletta.com

Made with ❀️ by Softreck

About

AI-Native Declarative Platform for building autonomous B2B applications with causal reasoning, verification loops, and production-ready safety rails.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors