UNPKG

oneie

Version:

Build apps, websites, and AI agents in English. Zero-interaction setup for AI agents (Claude Code, Cursor, Windsurf). Download to your computer, run in the cloud, deploy to the edge. Open source and free forever.

380 lines (266 loc) 10.5 kB
--- title: Readme dimension: things category: cascade tags: agent, ai, ontology, protocol related_dimensions: events, knowledge, people scope: global created: 2025-11-03 updated: 2025-11-03 version: 1.0.0 ai_context: | This document is part of the things dimension in the cascade category. Location: one/things/cascade/readme.md Purpose: Documents one cascade - agent-orchestrated workflow system Related dimensions: events, knowledge, people For AI agents: Read this to understand readme. --- # ONE Cascade - Agent-Orchestrated Workflow System **Transform ideas into production-ready code using 8 AI agents and a 6-dimension ontology** Version: 1.0.0 Status: Production Ready Built: 2025-10-12 --- ## What is CASCADE? CASCADE is a complete workflow system that turns your ideas into working code through: - **8 specialized AI agents** working in parallel - **6-level workflow**: Ideas Plans Features Tests Design Implementation - **Event-driven coordination** with zero handoff protocols - **Quality loops** with automatic problem solving - **Continuous learning** through lessons learned - **98% context reduction** (150k 3k tokens) - **5x faster execution** (115s 20s per feature) **Result:** 100x simpler, 5x faster, production-ready code with tests and documentation. --- ## Quick Start (5 Minutes) ### 1. Run `/one` Command In Claude Code: ```bash /one ``` ### 2. Choose "1. Start New Idea" Describe what you want to build: ``` Example: "Creators sell courses, students enroll and track progress" ``` ### 3. CASCADE Executes Automatically - **Director Agent** validates against ontology - **Specialists** implement in parallel (backend, frontend, integration) - **Quality Agent** defines tests and validates results - **Design Agent** creates wireframes that enable tests to pass - **Problem Solver** handles failures with ultrathink mode - **Documenter** writes complete documentation ### 4. Get Working Code After 2-3 weeks: - Working backend (services, mutations, queries) - Working frontend (pages, components, UI/UX) - Passing tests (unit, integration, e2e) - Complete documentation - Lessons learned captured --- ## Package Contents ### 📄 `cascade.yaml` (15.7 KB) Complete orchestrator configuration with: - 6-level workflow definition - 8 AI agent specifications - 20+ workflow event types - Coordination patterns - Quality loop configuration - Performance metrics ### 📚 `docs/` #### `getting-started.md` (8.5 KB) 5-minute quick start guide with: - Complete 6-level workflow explanation - 8 AI agent descriptions - Event-driven coordination examples - Quality loop patterns - File structure overview #### `workflow.md` (68 KB) Complete workflow specification with: - Detailed agent roles and responsibilities - 6-level flow with examples - Numbering system explanation - Quality loops and problem solving - Knowledge management - Implementation patterns - Comparison with old system #### `examples/` (6 complete features) Real-world examples of CASCADE building itself: - **1-1: Agent Prompts** (12 agent files, 303KB) - **1-2: YAML Orchestrator** (cascade.yaml) - **1-3: Event Coordination** (20+ event types) - **1-4: Knowledge Management** (lessons learned) - **1-5: Quality Loops** (ultrathink mode) - **1-6: Numbering Structure** (hierarchical system) Each example includes: - Feature specification (what we're building) - Tests (user flows + acceptance criteria) - Design (wireframes + component architecture) ### 🗂️ `templates/` #### `feature-template.md` (4.2 KB) Complete feature workflow template with: - All 6 workflow levels - Placeholder system for customization - Event logging tracking - Lessons learned capture - Status checklist --- ## The 6-Level Workflow ### Level 1: IDEAS User describes what they want Director validates against ontology ### Level 2: PLANS Director creates feature collection Assigns to specialists ### Level 3: FEATURES Specialists write specifications What to build (not how) ### Level 4: TESTS Quality Agent defines user flows Acceptance criteria (definition of done) ### Level 5: DESIGN Design Agent creates wireframes UI that enables tests to pass ### Level 6: IMPLEMENTATION Specialists build Quality validates Problem Solver fixes Documenter writes docs --- ## The 8 AI Agents 1. **Engineering Director** - Validates ideas, creates plans, assigns work 2. **Backend Specialist** - Services, mutations, queries, schemas 3. **Frontend Specialist** - Pages, components, UI/UX 4. **Integration Specialist** - Connections, data flows, workflows 5. **Quality Agent** - Tests, validation, acceptance criteria 6. **Design Agent** - Wireframes, components, test-driven design 7. **Problem Solver** - Ultrathink mode, root cause analysis 8. **Documenter** - Feature docs, user guides, knowledge base --- ## Event-Driven Coordination Agents coordinate autonomously via events (no handoff protocols): ```typescript // Events table IS the message bus { type: 'plan_started', actorId: 'director', targetId: '2-course-platform' } { type: 'feature_assigned', targetId: '2-1-course-crud', metadata: { assignedTo: 'backend' } } { type: 'implementation_complete', actorId: 'backend', targetId: '2-1-course-crud' } { type: 'test_passed', actorId: 'quality', targetId: '2-1-course-crud' } { type: 'documentation_complete', actorId: 'documenter', targetId: '2-1-course-crud' } { type: 'feature_complete', actorId: 'director', targetId: '2-1-course-crud' } ``` **Benefits:** - No handoff protocols - No dependency graphs - 0% coordination overhead - Complete audit trail - Parallel execution by default --- ## Quality Loops Failed tests automatically trigger problem solving: ``` Implementation Tests run PASS: Documenter writes docs Complete FAIL: Problem solver analyzes (ultrathink mode) Proposes solution Specialist fixes Adds to lessons learned Re-test (loop back) ``` Knowledge accumulates in `one/knowledge/lessons-learned.md` --- ## Performance Metrics - **Context Reduction:** 98% (150k 3k tokens) - **Speed Improvement:** 5x faster (115s 20s per feature) - **Configuration Simplification:** 100x (1 YAML vs 137 files) - **Code Reduction:** 150 lines orchestration vs 15,000+ config - **Setup Time:** 0 minutes (complete package) - **Learning Curve:** 5 minutes (getting-started guide) --- ## File Structure ``` one/things/cascade/ ├── cascade.yaml # Orchestrator configuration (15.7 KB) ├── readme.md # This file ├── docs/ ├── getting-started.md # Quick start guide (8.5 KB) ├── workflow.md # Complete specification (68 KB) └── examples/ # 6 real-world examples ├── readme.md # Examples guide ├── 1-1-agent-prompts/ # Feature + tests + design ├── 1-2-yaml-orchestrator/ # Feature + tests + design ├── 1-3-event-coordination/ # Feature + tests + design ├── 1-4-knowledge-management/ ├── 1-5-quality-loops/ └── 1-6-numbering-structure/ └── templates/ └── feature-template.md # Feature workflow template (4.2 KB) ``` --- ## Command Interface Run `/one` in Claude Code to access: - **Quick Start (1-5)**: Ideas Plans Features Tests Implementation - **AI Agents (6-9, A-D)**: Direct access to 8 specialists - **Advanced (T, W, S)**: Templates, Workflow Builder, Settings - **Help (H, ?)**: Tutorials and command reference --- ## Philosophy **Core Principles:** 1. **The ontology IS the workflow** - Types define structure, patterns define implementation 2. **Agents collaborate autonomously** - Events coordinate everything 3. **Quality loops ensure correctness** - Failed tests trigger problem solving 4. **Knowledge accumulates continuously** - Lessons learned prevent repeated mistakes 5. **Parallel by default** - Sequential only when required 6. **Test-driven at every level** - From user flows to unit tests --- ## Getting Started ### For First-Time Users 1. Read `docs/getting-started.md` (5 minutes) 2. Run `/one` command 3. Choose "1. Start New Idea" 4. Let CASCADE build it for you ### For Developers 1. Read `docs/workflow.md` (complete specification) 2. Study `docs/examples/` (6 real-world features) 3. Use `templates/feature-template.md` for your features 4. Reference agent prompts in `one/things/agents/` ### For System Designers 1. Study `cascade.yaml` (complete configuration) 2. Review event coordination patterns 3. Understand quality loops and problem solving 4. Examine knowledge management system --- ## What's Included **Complete orchestrator** (cascade.yaml with full workflow definition) **Full documentation** (getting-started + workflow spec) **Command interface** (`/one` command in Claude Code) **Workflow templates** (feature template with placeholders) **Real-world examples** (6 features that built CASCADE itself) **8 agent prompts** (in `one/things/agents/`) **Ontology** (in `one/knowledge/ontology-minimal.yaml`) **Knowledge base** (in `one/knowledge/lessons-learned.md`) --- ## Distribution ### Universal Package Anyone can: 1. `git clone` the ONE repository 2. Run `/one` command in Claude Code 3. Start building immediately ### Zero Setup Required - Complete package with all dependencies - Self-documenting system - No configuration needed - Works out of the box --- ## Support - **Quick Start:** `docs/getting-started.md` - **Complete Spec:** `docs/workflow.md` - **Examples:** `docs/examples/` - **Templates:** `templates/` - **Help:** Run `/one H. Tutorials` - **Reference:** Run `/one ?. Command Reference` --- ## Next Steps 1. **Learn:** Read `docs/getting-started.md` 2. **Try:** Run `/one` and start with an idea 3. **Study:** Review examples in `docs/examples/` 4. **Build:** Use templates to create your features 5. **Share:** Help others learn CASCADE --- **Built with clarity, simplicity, and infinite scale in mind.** Ready to turn your ideas into reality? Run `/one` and let's get started! 🚀 --- **ONE Cascade v1.0.0** Built by CASCADE, for CASCADE users Transform ideas into production-ready code with 8 AI agents