Flow State: Humans Enabling AI Systems to Program Themselves
Not on the map. Why?
Abstract (arXiv)
Compound AI systems, orchestrating multiple AI components and external APIs, are increasingly vital but face challenges in managing complexity, handling ambiguity, and enabling effective development workflows. Existing frameworks often introduce significant overhead, implicit complexity, or restrictive abstractions, hindering maintainability and iterative refinement, especially in Human-AI collaborative settings. We argue that overcoming these hurdles requires a foundational architecture prioritizing structural clarity and explicit control. To this end, we introduce Pocketflow, a platform centered on Human-AI co-design, enabled by Pocketflow. Pocketflow is a Python framework built upon a deliberately minimal yet synergistic set of core abstractions: modular Nodes with a strict lifecycle, declarative Flow orchestration, native hierarchical nesting (Flow-as-Node), and explicit action-based conditional logic. This unique combination provides a robust, vendor-agnostic foundation with very little code that demonstrably reduces overhead while offering the expressiveness needed for complex patterns like agentic workflows and RAG. Complemented by Pocket AI, an assistant leveraging this structure for system design, Pocketflow provides an effective environment for iteratively prototyping, refining, and deploying the adaptable, scalable AI systems demanded by modern enterprises.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 15 of its 51 references that are in the map. First posted on arXiv 3 Apr 2025.
Builds on
15 of 51 references.
References · 15
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 911
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2023Textbooks Are All You Needcited by 561
- 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
- 2022CoAuthor: Designing a Human-AI Collaborative Writing Dataset for Exploring Language Model Capabilitiescited by 245
- 2023ExpertPrompting: Instructing Large Language Models to be Distinguished Expertscited by 140
3 more
- 2023Understanding the Capabilities of Large Language Models for Automated Planningcited by 34
- 2024Understanding Nonlinear Collaboration between Human and AI Agents: A Co-design Framework for Creative Designcited by 22
- 2024Alto: Orchestrating Distributed Compound AI Systems with Nested Ancestrycited by 7
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Control Plane as a Tool: A Scalable Design Pattern for Agentic AI Systems
- 2026Human Tool: An MCP-Style Framework for Human-Agent Collaboration
- 2026FlowEvo: Self-Evolving Agents through the Co-Evolution of Workflows and Executable Skills
- 2025A Survey on Agent Workflow -- Status and Future
- 2025A Practical Guide for Designing, Developing, and Deploying Production-Grade Agentic AI Workflows
- 2026OpenAgentFlow: Enabling System-Wide Safety Boundaries for Heterogeneous AI Agent Fleets
- 2026Engineering Robustness into Personal Agents with the AI Workflow Store
- 2026Rethinking Software Engineering for Agentic AI Systems