cowork-forge

skill
SUMMARY

AI-powered software development system that automates the entire lifecycle from requirements analysis to code delivery through specialized agent collaboration.

README.md

๏ปฟ


Cowork Forge

English | ไธญๆ–‡

๐Ÿš€ Full-Stack AI Development Team - Complete Collaboration from Idea to Delivery ๐Ÿš€

Cowork Forge is not just a code generator, but a complete virtual development team. It includes professional roles like Product Manager, Architect, Project Manager, and Engineer, working together through AI agent collaboration to transform your ideas into production-ready software systems.

Litho Docs Litho Docs GitHub Actions Workflow Status MIT


๐Ÿ‘‹ What is Cowork Forge?

Full-Role Agents COLLABORATION A team that works together like HUMANS High-quality product solutions with ARTIFACTS
clarify_flows clarify_teams_like_human Artifact Viewer

Cowork Forge is a complete AI-powered development team system that simulates how real software teams collaborate. AI agents take on roles as Product Manager, Architect, Project Manager, and Engineer, working together to complete everything from ideation to delivery.

Unlike AI coding assistants that only generate code snippets, Cowork Forge provides end-to-end development lifecycle management:

  • Product Manager AI: Transforms your ideas into detailed Product Requirements Documents (PRD)
  • Architect AI: Designs complete technical architecture and system components
  • Project Manager AI: Breaks down tasks, plans dependencies, and defines implementation paths
  • Engineer AI: Implements code, ensures quality, and generates delivery reports

Each role uses Actor-Critic patterns for self-review and optimization, with human validation at critical decision points to ensure output quality and direction.

One person can have a complete development team - Cowork Forge makes AI agents work for you like a real team.

Traditional Development Development with Cowork Forge

Requires Multiple Roles and Tools

  • Need Product Manager to write PRD
  • Need Architect to design technical solution
  • Need Project Manager to break down tasks
  • Need Engineer to write code
  • High cost and long cycle for multi-role collaboration

One System Covers All Roles

  • AI Product Manager auto-generates professional PRD
  • AI Architect designs complete technical solution
  • AI Project Manager intelligently breaks down tasks
  • AI Engineer implements high-quality code
  • Full-process collaboration, human only validates key decisions

โœจ Visual Walkthrough

Cowork Forge is an intelligent development engine that can be called by various technology stacks (Python/Java/NodeJS) through FFI as the high-performance cowork-core library; easily integrated into workflows through cowork-cli; also includes a locally deployable GUI project that provides a friendly interactive interface.

๐Ÿ“„ Live Artifact Preview๏ผšWatch documents being written in real-time. View formatted PRDs, System Designs, and Implementation Plans as they are generated. Support for Markdown rendering allows for clear, structured documentation reviews. Artifact Viewer ๐Ÿ’ฌ Interactive Agent Chat๏ผšCollaborate directly with your AI team. Discuss requirements with the Product Manager, review architecture with the Architect, or give feedback to the Engineer. The chat interface keeps the context of your entire project history. Agent Chat Interface
๐ŸŒ Built-in App Preview๏ผšSee the result instantly. Cowork Forge GUI includes a web view to preview your generated web applications immediately after the build completes, without leaving the tool. App Preview ๐Ÿ“ Task & Todo Management๏ผšKeep track of progress. The system automatically generates and maintains a Todo list for the current iteration, checking off items as the agents complete them. Todo List
๐Ÿš€ Project Dashboard๏ผšThe central hub for all your development initiatives. View active projects, check their status (Running, Paused, Completed), and quickly launch new ones from a clean, modern interface.Project Dashboard โšก Real-time Code Execution๏ผšMonitor the Coding Agent as it writes files, runs builds, and executes tests. The built-in terminal view shows you exactly what commands are being run and their output, ensuring transparency and control. Terminal & Execution

๐Ÿ› ๏ธ Development Workflow

Cowork Forge GUI guides you through the standard 7-Stage Development Lifecycle:

  1. ๐Ÿ’ก Idea Intake: Chat with the agent to define your concept.
  2. ๐Ÿ“„ PRD Generation: Review the generated Product Requirements Document.
  3. ๐Ÿ—๏ธ Architecture Design: Approve the technical design and system boundaries.
  4. ๐Ÿ“ Implementation Planning: See the task breakdown and timeline.
  5. ๐Ÿ’ป Coding & Testing: Watch code being written and tests passing.
  6. โœ… Quality Check: Verify the implementation against requirements.
  7. ๐Ÿ“ฆ Delivery: Receive the final project report and artifacts.

๐Ÿ“ฅ Import Existing Projects

Cowork Forge supports importing any existing project - even those not created with Cowork Forge. The import feature uses AI to reverse-engineer your project and generate comprehensive documentation:

What Gets Generated

Artifact Description
idea.md Project overview, background, key features, and target users
prd.md Functional requirements, non-functional requirements, and constraints
design.md Technical architecture, technology stack, and module structure
plan.md Implementation phases, task breakdown, and next steps

How It Works

  1. Project Scan: Analyzes directory structure, configurations, and dependencies
  2. Tech Stack Detection: Identifies frameworks, languages, and tools
  3. Documentation Extraction: Reads README, docs, and key source files
  4. AI-Powered Generation: Uses LLM to synthesize information into structured artifacts

Using Import Feature

In the GUI, click "Import Project" on the dashboard and select any project directory. The system will:

  • Preview the project structure
  • Detect technology stack automatically
  • Let you choose which artifacts to generate
  • Create an initial iteration with all generated artifacts

This feature is perfect for:

  • Onboarding existing codebases into Cowork Forge workflow
  • Generating documentation for undocumented projects
  • Understanding unfamiliar codebases quickly
  • Migrating projects to use Cowork Forge's iterative development approach

๐Ÿ”„ Post-Delivery Support with PM Agent

After an iteration completes, the Project Manager Agent (PM Agent) becomes available for continued interaction. PM Agent acts as an intelligent project assistant that understands your intent and takes appropriate actions.

Supported Operations

  • ๐Ÿ”€ Stage Navigation: Return to any previous stage (Idea, PRD, Design, Plan, Coding) for re-execution with user confirmation
  • โž• Create New Iteration: Start evolution iterations for new features with automatic inheritance (default: partial mode)
  • ๐Ÿ’ฌ Q&A Interaction: Answer questions about project architecture, artifacts, decisions, and memory
  • ๐Ÿค” Clarification Request: Ask for more details when intent is ambiguous

Available Tools

  • pm_goto_stage: Navigate to a specific development stage
  • pm_create_iteration: Create a new evolution iteration
  • pm_respond: Respond to user questions
  • pm_save_decision: Save project decisions
  • query_memory: Query project memory for context
Iteration Completed
        โ†“
[PM Agent Activated]
        โ†“
User: "Fix the login bug" โ†’ PM Agent: Analyzes intent โ†’ Jumps to Coding stage
User: "Add payment feature" โ†’ PM Agent: Creates new iteration with partial inheritance
User: "What tech stack?" โ†’ PM Agent: Queries memory โ†’ Answers directly
User: "Modify the homepage" โ†’ PM Agent: Clarifies scope โ†’ Suggests options

๐Ÿ† Cowork Forge vs. Competitors

Core Capabilities Comparison

Capability Cowork Forge GitHub Copilot Cursor AI Aider
End-to-End Workflow โœ… Complete (Ideaโ†’Delivery) โŒ Code completion only โŒ Code editing focus โŒ Code assistance only
Multi-Agent Architecture โœ… 10+ specialized agents โŒ Single model โŒ Single model โŒ Single model
PRD Generation โœ… Automated โŒ N/A โŒ N/A โŒ N/A
Technical Design โœ… C4 architecture docs โŒ N/A โŒ N/A โŒ N/A
Post-Delivery Support โœ… PM Agent chat interface โŒ N/A โŒ N/A โŒ N/A
External Agent Integration โœ… ACP-compatible agents โŒ N/A โŒ N/A โŒ N/A
Incremental Updates โœ… Smart delta analysis โŒ N/A โŒ Limited โŒ Limited
Human-in-the-Loop โœ… Critical decision points โŒ N/A โŒ Limited โŒ Limited
Open Source โœ… MIT License โŒ Proprietary โŒ Proprietary โœ… MIT License
Self-Hosted โœ… Local execution โŒ Cloud only โŒ Cloud only โœ… Local execution

Key Differentiators

1. Complete Virtual Development Team

Unlike tools that only assist with writing code, Cowork Forge provides complete development team role coverage:

  • Product Manager Role: Transforms vague ideas into structured Product Requirements Documents
  • Architect Role: Designs complete technical architecture and system components
  • Project Manager Role: Breaks down tasks, plans dependencies, and implementation paths
  • Engineer Role: Implements code and performs quality verification

2. Multi-Agent Collaboration

Cowork Forge's specialized agents work together like a real development team:

  • Idea Agent: Captures and structures user requirements
  • PRD Loop Agent: Generates comprehensive PRDs with actor-critic refinement
  • Design Loop Agent: Creates technical architecture with actor-critic refinement
  • Plan Loop Agent: Breaks down implementation tasks with actor-critic refinement
  • Coding Loop Agent: Plans and executes code changes with actor-critic refinement
  • Check Agent: Verifies code quality and completeness
  • Delivery Agent: Generates comprehensive delivery reports
  • Knowledge Generation Agent: Extracts and summarizes project knowledge
  • Project Manager Agent (PM Agent): Post-delivery assistant for modifications, new iterations, and project inquiries
  • Legacy Project Analyzer Agent: Analyzes existing projects and reverse-engineers documentation (idea.md, prd.md, design.md, plan.md)
  • Change Triage Agent: Analyzes and triages incremental change requests
  • Code Patch Agent: Implements precise code patches for modifications

3. Human-in-the-Loop Validation

Critical outputs require human confirmation before proceeding, ensuring:

  • Accurate requirement capture
  • Sound technical decisions
  • Feasible implementation plans
  • Safe code changes

4. Incremental Code Updates

When requirements or designs change, Cowork Forge intelligently identifies affected files and updates only what's necessary.

5. Built-in Safety

Multi-layer security checks prevent:

  • Dangerous command execution (rm -rf, sudo, etc.)
  • Unauthorized file system access
  • Malicious code injection
  • Resource exhaustion

โค๏ธ Like Cowork Forge? Star it โญ or Sponsor Me! โค๏ธ

๐ŸŒŸ Features & Capabilities

Core Workflow

  • 7-Stage Development Workflow: Comprehensive workflow covering Idea Intake โ†’ PRD Generation โ†’ Technical Design โ†’ Implementation Plan โ†’ Coding โ†’ Quality Check โ†’ Delivery.
  • Specialized AI Agents: Each stage handled by a dedicated agent with domain expertise. Four critical stages (PRD, Design, Plan, Coding) use actor-critic loops for iterative refinement.
  • Project Manager Agent: Post-delivery chat interface for continued project interaction with intelligent intent recognition. Supports bug fixes, requirement changes, new features, and project consultations.
  • Legacy Project Import: Import any existing project and use AI to reverse-engineer comprehensive documentation (idea.md, prd.md, design.md, plan.md) from code structure and existing docs.
  • Knowledge Generation: Automatic extraction of project knowledge including decisions, patterns, and insights after each iteration completion.
  • External Coding Agent Support: Optionally integrate external ACP-compatible coding agents (OpenCode, iFlow, Codex, Gemini CLI, Claude CLI) for specialized coding tasks.
  • Intelligent Code Planning: Analyzes project structure, dependencies, and generates precise code change plans.
  • Incremental Code Updates: Smart delta analysis updates only affected files, preserving existing modifications.
  • Automated Quality Verification: Multi-language build/test integration with comprehensive error analysis and reporting.
  • Human-in-the-Loop Validation: Critical outputs (PRD, design, plans) require human confirmation before proceeding.

Agents Team Configuration System

Cowork Forge introduces a data-driven configuration system that transforms hardcoded Agent, Stage, Flow, and Skill definitions into configurable JSON formats, enabling unprecedented flexibility without code modifications.

Custom Workflows (Flow)

Create custom development pipelines with configurable stage combinations and execution order:

{
  "id": "quick-prototype",
  "name": "Quick Prototype Flow",
  "stages": ["idea", "prd", "coding", "delivery"],
  "config": {
    "stop_on_failure": false,
    "inheritance": { "default_mode": "partial" }
  }
}

Enterprises can define standardized process templates for different project types (Web apps, CLI tools, API services) to ensure consistent development practices.

Custom Agents

Define specialized AI agent roles with custom instructions, tool sets, and model parameters:

{
  "id": "code_reviewer",
  "name": "Code Reviewer",
  "instruction": "builtin://code_review",
  "tools": ["read_file", "query_memory"],
  "model": { "temperature": 0.3 }
}

Teams can create domain-specific agents like security reviewers, performance optimizers, or code quality specialists.

Skill Extensions

Skill packages inject domain-specific tools, prompts, and context into agents using the agentskills.io standard:

  • Categories: web_frontend, web_backend, mobile, devops, testing, security
  • Discovery: Automatic loading from .skills/ directory
  • Selection: Semantic matching based on user queries
<!-- .skills/react/SKILL.md -->
---
name: react-development
description: React and TypeScript development skills
categories: [web_frontend]
---

You are a React expert. Use functional components with hooks...

External Integrations

Configure integrations with external systems through REST APIs and webhooks:

  • Deployment Platforms: Auto-deploy on delivery completion
  • Requirement Management: Sync PRD with external tools
  • CI/CD Pipelines: Trigger builds on stage completion

Configuration Locations

Platform User Config Directory
Windows %APPDATA%\com.cowork-forge.app\config\
macOS ~/Library/Application Support/com.cowork-forge.app/config/
Linux ~/.config/com.cowork-forge.app/config/

Data Management

  • Artifact-Based Storage: Versioned storage of all stage outputs with JSON and Markdown formats.
  • Todo List Management: Automatic task tracking with status inference and progress reporting.
  • Multi-Language Project Support: Automatic detection and handling of Rust, Python, JavaScript/TypeScript projects.
  • Security & Safety: Command validation, path access control, and watchdog monitoring for safe execution.

๐Ÿ—๏ธ Architecture

Cowork Forge is built as a Rust workspace with modular, hexagonal architecture based on the adk-rust framework:

Key Components

Rust Workspace Structure

  • cowork-core: Core library with domain logic, pipeline orchestration, and tools
  • cowork-cli: Command-line interface for interacting with the system
  • cowork-gui: Optional graphical user interface (Tauri + React + TypeScript)

Hexagonal Architecture

  • Domain Layer: Pure business logic (Project, Iteration, Memory aggregates)
  • Application Layer: Pipeline orchestration, stage execution
  • Infrastructure Layer: Persistence, LLM integration, tools, ACP client
  • Ports: InteractiveBackend trait for CLI/GUI abstraction

Iteration Architecture

  • Genesis Iterations: Start new projects from scratch
  • Evolution Iterations: Build upon existing iterations with inheritance modes
  • Inheritance Modes: None (fresh start), Full (complete code + artifacts copy), Partial (artifacts only, regenerate code)

Pipeline Domain

Seven-stage development workflow with Actor-Critic pattern:

  • Idea Stage: Capture and structure requirements
  • PRD Stage: Generate product requirements with Actor-Critic refinement
  • Design Stage: Create technical architecture with Actor-Critic refinement
  • Plan Stage: Break down tasks with Actor-Critic refinement
  • Coding Stage: Implement code with Actor-Critic refinement
  • Check Stage: Verify quality and completeness
  • Delivery Stage: Generate final delivery report

Tools Module

Secure tool execution with workspace validation:

  • File operations within project boundaries
  • Command execution with safety checks
  • Interactive tools for human-in-the-loop validation
  • PM tools for post-delivery interactions
  • 30+ ADK tools for file, data, validation, and memory operations

ACP Integration

Agent Communication Protocol support:

  • External coding agent integration via stdio or WebSocket
  • Compatible with OpenCode, iFlow, Codex, Gemini CLI, Claude CLI
  • Seamless fallback to built-in adk-rust agent

๐Ÿ“‹ Getting Started

Prerequisites

  • Rust (edition 2024)
  • LLM API Access (OpenAI or compatible provider)
  • Git and language-specific build tools (cargo, npm, pip, etc.)

Installation

# Clone the repository
git clone https://github.com/sopaco/cowork-forge.git
cd cowork-forge

# Build the entire workspace
cargo build --release

# The CLI binary will be available at:
# target/release/cowork

Configuration

Cowork Forge uses a config.toml file stored in your system's application data directory:

Platform Config Location
Windows %APPDATA%\CoworkCreative\config.toml
macOS ~/Library/Application Support/CoworkCreative/config.toml
Linux ~/.config/CoworkCreative/config.toml
# LLM Configuration (Required)
[llm]
api_base_url = "https://api.openai.com/v1"
api_key = "sk-your-openai-api-key"
model_name = "gpt-4"

# Optional: Embedding Configuration
[embedding]
api_base_url = "https://your-embedding-api.com/v1"
api_key = "your-embedding-api-key"
model_name = "text-embedding-3-small"

# Optional: External Coding Agent
[coding_agent]
enabled = false
agent_type = "opencode"       # opencode, iflow, codex, gemini, claude
command = "bun"
args = ["x", "opencode-ai", "acp"]
transport = "stdio"           # stdio or websocket
workspace_path = ""           # optional, uses current project if empty

External Coding Agent Configuration

You can configure an external ACP-compatible coding agent for the Coding stage:

[coding_agent]
enabled = true
agent_type = "opencode"
command = "bun"
args = ["x", "opencode-ai", "acp"]
transport = "stdio"

Supported agent types:

  • opencode: OpenCode AI agent
  • iflow: iFlow CLI agent
  • codex: OpenAI Codex CLI
  • gemini: Gemini CLI
  • claude: Claude CLI

๐Ÿš€ Usage

๐Ÿ–ฅ๏ธ Cowork CLI

Iteration Management

# Initialize a new project
cowork init --name "My Project"

# Create a new iteration (Genesis)
cowork iter --project "my-project" "Build a REST API for task management"

# Create an evolution iteration
cowork iter --project "my-project" --base iter-1 --inherit partial "Add user profiles"

# List all iterations
cowork list

# Show iteration details
cowork show iter-1-1234567890

# Continue a paused iteration
cowork continue iter-1-1234567890

# Check status
cowork status

Inheritance Modes

Mode Description Use Case
none Fresh start, no inheritance Complete rewrites, new projects
full Copy workspace code + artifacts Bug fixes, small enhancements
partial Copy artifacts only, regenerate code Large features, architecture change

๐Ÿ–ผ๏ธ Cowork GUI

Features

  • Visual Dashboard: Overview of all your projects and iterations.
  • Real-time Monitoring: Watch agents work in real-time with detailed logs and status updates.
  • Interactive Chat: Communicate with agents directly through a chat interface.
  • Post-Delivery Chat: Use the Project Manager Agent to continue working with completed projects.
  • Built-in Preview: Preview your generated web applications directly within the app.

Running the GUI

cd crates/cowork-gui
npm install   # or: bun install
cargo tauri dev

๐ŸŒ The Cowork Forge Ecosystem

  • cowork-core: Core library containing domain logic, pipeline orchestration, tools, and persistence.
  • cowork-cli: Command-line interface for iteration management and project interaction.
  • cowork-gui: Graphical user interface based on Tauri framework with React + TypeScript frontend.

Core Modules

cowork-core is organized into the following domain modules:

  • pipeline: 7-stage pipeline orchestration managing iteration lifecycle and stage execution.
  • domain: Core domain entities (Project, Iteration, Memory aggregates) with DDD patterns.
  • persistence: JSON-based storage with workspace isolation.
  • tools: 30+ ADK tools for file operations, command execution, and validation.
  • llm: LLM integration with rate limiting (30 req/min, concurrency=1).
  • interaction: InteractiveBackend trait for CLI/GUI abstraction.
  • memory: Project memory system for cross-iteration knowledge retention.
  • acp: Agent Communication Protocol client for external coding agents.

๐Ÿ” Security

Cowork Forge implements multiple layers of security:

  1. Command Validation: Dangerous commands are blocked before execution
  2. Path Access Control: Restricted access to sensitive system directories
  3. Build Tool Whitelist: Only authorized development tools can be executed
  4. Timeout Controls: Prevents resource exhaustion from long-running commands
  5. Watchdog Monitoring: Detects and prevents agent deviation from objectives

๐Ÿค Contributing

We welcome all forms of contributions! Report bugs or submit feature requests through GitHub Issues.

Running Tests

# Run all tests
cargo test

# Run tests with coverage
cargo test --all-features

# Run specific module tests
cargo test -p cowork-core

๐Ÿ“š Documentation

Comprehensive documentation is available in the litho.docs directory:

๐Ÿ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Built with Rust
  • Powered by OpenAI GPT models
  • Inspired by modern software development practices and AI agent research

๐Ÿ“ง Contact


Transform your development workflow with Cowork Forgeโ€”the future of collaborative software development. ๐Ÿš€

Yorumlar (0)

Sonuc bulunamadi