This loop automates the process of upgrading a project's framework to a newer version. It systematically analyzes the current framework, plans the upgrade path, updates dependencies, resolves breaking changes, and ensures all tests pass before completion.
Complete framework migration
This loop guides you through upgrading your framework version with automated checks. It will incrementally update the framework, handle breaking changes, and verify stability at each step.
Configure Your Tool
Ensure your coding agent (Cursor, Claude Code, etc.) is set up to accept and process prompts.
Run the Loop
Execute this loop in your preferred environment. The agent will generate and execute prompts to perform the upgrade.
Follow Prompts
Respond to each prompt generated by the agent to complete the upgrade process.
Analyze Current Framework
Identify the current framework version and assess its usage in the codebase.
Plan Upgrade Path
Determine the target framework version and outline necessary steps for migration.
Update Dependencies
Maintenance
Automatically identifies and fixes package vulnerabilities in your Node.js project by running `npm audit` and applying recommended fixes until the audit is clean.
Maintenance
Automated loop to safely upgrade project dependencies while ensuring all tests pass after each update. The agent incrementally updates out-of-date packages and runs test checks to prevent breaking changes.
Maintenance
This loop performs a comprehensive health check of a monorepo by validating its structure, dependencies, code quality, and consistency. It iteratively identifies and resolves issues related to missing dependencies, outdated packages, lint errors, and architectural inconsistencies until the repository passes validation.
Modify package.json, pom.xml, or other dependency files to reflect the new framework version.
Address Breaking Changes
Refactor code to accommodate API changes, deprecations, and new patterns introduced in the target version.
Test and Validate
Run the full test suite to ensure the application works correctly with the upgraded framework.
Resolve Issues
Fix any failing tests or compatibility issues identified during validation.
Start the "Upgrade Framework Version" loop. Goal: Complete framework migration Max iterations: 10 Between iterations run: build and test Exit when: Build and tests pass Begin by checking the current framework version and dependencies. Analyze the codebase to identify potential breaking changes that may occur during the upgrade. Generate a plan for migrating to the target framework version while preserving existing functionality. Self-pace this loop. After each iteration, run `build and test` and evaluate the output, and only continue if the exit condition is not met (Build and tests pass). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.