rcortx/kiwiq
LangGraph and Prefect orchestration for multi-agent workflows with human review
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
KiwiQ separates the API from workflow execution. The kiwi_app FastAPI service exposes workflow, RAG, data-job, and WebSocket endpoints alongside authentication and billing. The workflow service compiles Python or JSON GraphSchema definitions to LangGraph. Prefect orchestrates execution through services/workflow_service/services/worker.py, while RabbitMQ carries asynchronous events between services. The reusable node registry in services/workflow_service/registry/nodes/ is the main point for extending graph behavior.
The storage layers serve distinct purposes: PostgreSQL holds relational state and LangGraph checkpoints, MongoDB stores versioned customer documents and workflow configuration, Weaviate handles vector retrieval, and Redis supports caching and sessions. The Python manifest includes Pydantic for typed models and settings, SQLModel and Alembic for relational persistence and migrations, and langgraph-checkpoint-postgres for checkpoint integration.
Key Capabilities & Differentiators
The SDK offers 24+ reusable node types, from routing, conditional branches, and data transforms to tool execution, nested workflows, and human review. A workflow can pause for input or approval, with run progress streamed over WebSocket. The node set also includes a Python runner with a sandboxing design; assess that isolation before allowing untrusted tenants to submit code.
LLM integrations cover OpenAI, Anthropic, Google Gemini, Perplexity, Fireworks, and AWS Bedrock. RAG combines document ingestion and Weaviate retrieval, while customer-data nodes load, store, and delete MongoDB-backed documents. The 27+ example workflows in standalone_test_client/ include graph definitions, prompt inputs, and test runners. Content generation, diagnostics, deep research, and lead scoring make them useful starting points for marketing automation, not evidence of equivalent coverage in unrelated domains.
Trade-offs & Limitations
Compared with using LangGraph directly, KiwiQ bundles an API, workers, storage integrations, progress streaming, and examples that would otherwise need to be assembled around the graph runtime. That is useful if the application needs checkpointed runs, human review, and document retrieval together. For a small workflow or a team with an established API and job stack, direct LangGraph integration avoids operating redundant services. Graphs are defined in code or JSON; the Prefect dashboard is for operations, not visual workflow authoring.
The cost of the integrated stack is coordinating upgrades, backups, and failure handling across several services. Plan recovery around both PostgreSQL checkpoints and the MongoDB documents that workflows reference. External model calls also bring network dependencies, rate limits, and usage charges. Apache-2.0 allows commercial self-hosting, but does not change provider terms or the data-handling obligations of a deployment.
Hardware & Deployment Guide
For local evaluation, use Python 3.12, Poetry, Docker, and Docker Compose. Populate .env from .env.sample with service credentials, a JWT secret, and keys for the model providers you intend to use. Run docker compose -f docker-compose-dev.yml up --build for the containerized development stack with persistent volumes and live reload. The API exposes interactive docs on port 8000, and the Prefect dashboard is on port 4201.
Production Compose uses Nginx and Certbot for TLS, external PostgreSQL and MongoDB, resource limits, rotating logs, and health checks. Its four-concurrent-workflow setting is a tuning point, not a capacity benchmark. For a non-Docker deployment, run kiwi_app.main:app with Uvicorn and start the Prefect worker separately, with backing services provisioned independently. Self-hosting the API and workers does not make provider-backed workflows offline. No release is listed, so there is no tagged release milestone to use as an upgrade baseline.
services/workflow_service/graph/ turns Python or JSON schemas into LangGraph workflows for Prefect execution.Python teams building self-hosted content, research, or diagnostics workflows that need versioned documents, human approval, and live run progress behind an API.
You need a visual builder, an offline model runtime out of the box, or a lightweight library that fits into an existing orchestration stack.
Quick Start & Installation
# Development (all services including databases) docker compose -f docker-compose-dev.yml up --build
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| kiwiq ★ | 2.1k | — | Python | Apache-2.0 | LangGraph and Prefect orchestration for multi-agent workflows with human review |
| browser-use | 122.7k | +477 | Python | MIT | Python REPL and CDP for adaptive browser automation |
| langgraph | 45.8k | +293 | Python | MIT | Python graph orchestration for stateful, resumable agents and workflows |
| langchain | 150.4k | +290 | Python | MIT | Modular Python framework for building agents across model providers |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/rcortx/kiwiq.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about kiwiq
How do I define a workflow and integrate it with my application?
standalone_test_client/kiwi_client/workflows/active/. The graph builder compiles the schema to LangGraph using the node registry, and the Prefect worker executes the run. Integrate through the FastAPI workflow endpoints and use WebSocket streaming for progress and human-review steps.Do I need a GPU, and what should I size for?
Can I self-host KiwiQ for commercial use and keep data on my infrastructure?
When should I use KiwiQ instead of LangGraph directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy