Systematizing Workflow with Cursor (Codex) Projects
Dylan Davisgo watch the original →
the gist
Stop treating AI as a chatbot and start using it as an autonomous agent by organizing tasks into dedicated folders with specific instructions, memory files, and modular skills.
Moving Beyond Chatbot Interaction
Most users treat AI coding assistants like ChatGPT—a conversational interface for one-off queries. To unlock true productivity, users must shift to an agentic workflow where the AI operates within a structured environment. By treating the AI as an assistant that manages specific, recurring tasks (like meeting follow-ups or report generation), you can move from manual prompting to autonomous execution.
The "One Folder, One Job" Principle
The core of this methodology is strict organization. Every recurring task should have its own dedicated folder on your local machine. When you open your AI tool (specifically Cursor/Codex) within that folder, the AI gains context and scope. This prevents the model from becoming overwhelmed by irrelevant data and ensures it only accesses the files pertinent to the specific job at hand.
The Three-File System
To make this system work, every project folder must contain three specific files that guide the AI's behavior and memory:
- agents.mmd: A concise (under 100 lines) instruction set defining the AI's purpose, behavior, and constraints. It tells the AI to prioritize the map and memory files before taking action.
- map.md: A table of contents for the project folder. This acts as a guide, allowing the AI to navigate complex directory structures without loading every file into its context window, which keeps the model performant.
- memory.md: A self-updating file that stores your preferences, tone, and feedback. The AI should be instructed to update this file autonomously based on your explicit feedback, allowing it to "learn" and improve over time.
Developing Modular Skills
Instead of relying on general prompts, encapsulate recurring processes into "Skills." The best way to build these is to perform the task manually with the AI, then use a "Skill Creator" prompt to formalize the process. Crucially, these skills should include binary (yes/no) self-check mechanisms to ensure the output meets your quality standards before it is presented to you. Always tie these skills to specific folders rather than making them global, which prevents the AI from selecting the wrong skill for the wrong task.
Managing Trust and Access
Start with default permissions to maintain control while the AI learns your workflow. As the agent proves its reliability on specific tasks, you can incrementally grant it higher levels of access to your local systems (CRM, email, drive). This phased approach builds trust and minimizes the risk of autonomous errors in sensitive environments.