This loop systematically identifies and removes deprecated API usage and code patterns to ensure your codebase remains modern, performant, and free of outdated dependencies. It helps maintain long-term code health and reduces technical debt.
Eliminate all deprecated APIs and code patterns from the codebase
Run this loop in your preferred AI coding environment to iteratively detect and remove deprecated code elements until the codebase is clean.
Initiate the loop
Start by sending the kickoff prompt to your coding agent in environments like Cursor, Claude Code, or Codex.
Review findings
After each check, inspect the deprecation scan results to understand which APIs or patterns need updating.
Allow iterative fixes
Let the agent apply changes and re-run checks until no deprecated code is detected or the iteration limit is reached.
Validate changes
Ensure that functionality is preserved and tests pass after each round of updates.
Run deprecation scan
Execute static analysis to identify all instances of deprecated APIs in the codebase
Analyze results
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
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.
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.
Identify which deprecated APIs are most impactful and require immediate attention
Apply fixes
Update code to use recommended replacements for deprecated APIs
Verify changes
Ensure all changes compile and pass existing tests without introducing regressions
Repeat process
Run another deprecation scan to check if any deprecated code remains
Start the "Remove Deprecated Code" loop. Goal: Eliminate all deprecated APIs and code patterns from the codebase Max iterations: 10 Between iterations run: deprecation scan Exit when: No deprecated APIs remain in the codebase Scan the codebase for any deprecated APIs or code patterns. List all found instances and prioritize them based on impact and usage frequency. Begin fixing the highest priority deprecated usages one by one, ensuring that functionality is preserved after each change. Self-pace this loop. After each iteration, run `deprecation scan` and evaluate the output, and only continue if the exit condition is not met (No deprecated APIs remain in the codebase). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.