The-Pocket/PocketFlow ? reverse-engineered prompt
Reverse engineered prompt
I want to build a super lightweight, minimalist Python framework for creating AI agents and workflows. I'm tired of bloated libraries with tons of dependencies; the core of this should be extremely simple, maybe only around 100 lines of code, so there's no vendor lock-in.
The main abstraction should be a graph, allowing me to connect different AI tasks or agents together in a flow. It needs to be flexible enough to create popular patterns like multi-agent systems where agents collaborate, RAG for querying documents, and custom workflows. For example, I'd want to build a simple writing workflow with an "outliner" agent, a "writer" agent, and a "stylist" agent.
The whole point is to make something so simple that an AI assistant can easily use it to build even more complex agents. Please also create a cookbook folder with some example implementations, like a basic chatbot and a research agent that can use web search.
Are you gonna build this?
make sure you review the code using coderabbit