<< Home | Work
Saved 20,000 lines of context
| Area | Work |
| AI used | Any |
| Source | r/codex |
| Posted | 2026-07-18 |
The move
Add a specific instruction to your AI system prompt to ignore legacy constraints.Steps
- Locate your project's AI configuration or system instructions file.
- Add a directive to ignore backward compatibility and legacy code.
- Save the file and restart your AI session.
- Verify that the AI no longer references legacy libraries in its output.
Prompt for your AI
Do not consider backward compatibility. Ignore legacy code and libraries when generating responses for [Project Name].
What happened
The user was struggling with AI context windows becoming bloated by unnecessary legacy code and backward compatibility requirements. They added a single line to their agents.md file instructing the AI to ignore these factors. This simple change successfully removed 20,000 lines of irrelevant context from their project.Watch out
The AI may suggest modern solutions that are incompatible with existing systems if you have any legacy dependencies. Ensure you are truly working on a greenfield project before applying this.Give it to your agent
Read https://howtheyuse.ai/p/saved-20-000-lines-of-context.md and help me do this.