Mastering Agentic Workflows with OpenAI Codex
AI Engineergo watch the original →
the gist
Jason Liu demonstrates how to treat AI as a long-term collaborator by using persistent threads, memory vaults, and computer-use tools to automate complex, multi-step knowledge work.
The Shift to Persistent Agentic Workflows
Modern knowledge work has moved beyond simple prompt-response interactions. The core methodology taught here is to treat AI not as a transient tool, but as a persistent teammate. By leveraging 'compaction'—the ability for long-running threads to maintain context over weeks—users can delegate complex tasks to sub-agents. The goal is to move from being an individual contributor to a manager of AI threads, where you define goals and the agents handle the execution, file management, and cross-thread communication.
Building a Personal Memory Vault
Success in this workflow relies on building a 'memory vault' that acts as the agent's long-term context. Instead of starting new threads for every task, maintain project-specific threads that can delegate to sub-agents. These agents should be empowered to read your historical communications (Slack, email, meeting notes) to understand project context. By creating a 'style guide' for your own communication, you can train agents to draft emails and messages that mirror your tone, effectively offloading the 'messy' parts of communication while you focus on high-level strategy.
Leveraging Computer Use and Appshots
To move from text-based interaction to true automation, utilize 'Computer Use' and 'Appshots.' Unlike standard screenshots, Appshots capture the accessibility tree of an application, providing the agent with structured data (like channel IDs or user IDs) rather than just pixels. This allows the agent to perform precise actions—like filling out forms or navigating specific Slack channels—without manual intervention. This capability transforms the AI from a chatbot into an active participant that can operate across different software environments.
Developing Custom Skills and Plugins
Skills are modular scripts that extend the agent's capabilities. A plugin is simply a library of these skills. The most effective way to develop these is to document your manual processes and then ask the agent to 'make a skill from what I've learned.' By allowing these skills to be self-editing, they improve over time as the agent learns from its own execution history. This creates a feedback loop where the agent becomes increasingly autonomous at handling recurring tasks like triage, code reviews, or project bootstrapping.
Key Takeaways
- Stop starting over: Use long-lived, pinned threads for projects rather than creating new sessions for every task.
- Use Appshots: Always prefer Appshots over standard screenshots to provide agents with the accessibility tree, enabling more accurate tool calls.
- Dictate, don't type: Use voice transcription to provide the 'messy' version of your thoughts; the AI is capable of cleaning up tangents and finding relevant context from your history.
- Build a style guide: Feed your past emails and messages into the agent to create a 'write like me' skill for automated communication.
- Delegate to sub-agents: Structure your workflow so that a 'manager' thread can spawn and coordinate sub-agents to handle specific sub-tasks.
- Automate the mundane: If you find yourself doing a task more than twice, document the process and turn it into a reusable skill.