These AI Agents Improve My App Every 10 Minutes While I Sleep

The video demonstrates how AI coding agents running every 10 minutes on a VPS can autonomously improve a CRM app by fixing bugs, enhancing security, and suggesting new features, all while the user reviews and merges updates as desired. It also contrasts this method with other solutions, explains the setup process using GitHub and cron jobs, and promotes a masterclass teaching viewers how to build and utilize such AI agents for continuous software development.

The video explores the use of AI coding agents that run in the background every 10 minutes to autonomously improve an app without human intervention. Three distinct agents are employed: a general agent for bug fixes and performance optimizations, a security agent focused on identifying vulnerabilities, and an improvements agent that suggests new features and UI/UX enhancements. The example used is a CRM app, where these agents continuously analyze the codebase, make changes, create branches, commits, and pull requests, allowing the user to review and merge updates as desired. This setup mimics having a team of developers working around the clock to enhance the app.

The presenter contrasts this approach with existing solutions like Codex Cloud, which, while useful for one-off pull requests, has limitations such as temporary containers that expire after 12 hours, causing loss of code and data. Running Codex locally with scheduled tasks is another option but requires the PC to be always on and connected to the internet, which is not ideal for everyone. Instead, the preferred solution is to rent a Virtual Private Server (VPS) that runs 24/7, providing a stable environment for Codex to operate continuously without interruptions.

Setting up the system involves deploying the project to GitHub and creating a fine-grained personal access token with specific permissions to allow the agents to access the repository securely. The VPS is then configured using a hosting service that offers a Codex template, simplifying installation and setup. After logging into Codex on the VPS, the user grants the agent access to GitHub using the token, enabling it to clone the repository and manage code changes autonomously.

The agents are scheduled using cron jobs, which run commands at fixed intervals—in this case, every 10 minutes. Codex can be run in headless mode to execute these tasks silently in the background. The user can instruct Codex to set up cron jobs for different roles, such as auditing code for bugs, performing security checks based on OWASP guidelines, and suggesting meaningful improvements. The system ensures that duplicate pull requests are avoided by checking for existing ones before making changes, giving the user full control over which updates to merge.

Finally, the video promotes an agentic Coding Masterclass that teaches viewers how to build and use coding agents effectively. The course covers advanced topics like creating design systems, building SaaS applications with user authentication, and integrating AI tools. The presenter encourages viewers to subscribe for more tutorials and highlights the potential of AI agents to revolutionize software development by automating continuous improvement processes.