| name | irule-diff |
| description | Compare two iRule versions and explain the semantic differences, security implications, performance changes, and breaking changes. Uses LSP context analysis on both files. Use when comparing iRule versions, diffing F5 iRules, analysing iRule change impact, or reviewing iRule modifications. |
| allowed-tools | Bash, Read |
iRule Diff
Compare two iRule versions and analyse the differences.
Steps
- Read the domain knowledge from
ai/prompts/irules_system.md
- Read both iRule files (the user should provide two file paths)
- Run context analysis on both files:
uv run --no-dev python ai/claude/tcl_ai.py context $FILE_A
uv run --no-dev python ai/claude/tcl_ai.py context $FILE_B
- If the analysis tool fails on either file, fall back to manual source comparison and note that LSP analysis was unavailable
- Compare the two versions and explain:
- Semantic changes -- What changed in behaviour (not just line diffs)?
- Events -- Any events added, removed, or reordered?
- Security implications -- Do the changes introduce or fix security issues?
- Performance implications -- Any changes to hot-path efficiency?
- Breaking changes -- Could these changes affect traffic handling?
- If the user asked a specific question about the diff, focus on that
Output format
Focus on what matters operationally. Be concise. Use headings for each
analysis section.
$ARGUMENTS