← Back to home

pi-subagents: Completion Guard Fix

Fixed false failures when Cursor completes edits through native edit and write traces instead of standard tool calls

Project type
Open Source Contribution
Role
Contributor
Date
July 2026

Overview

Updated pi-subagents' completion guard to recognize Cursor edit and write traces, replay tool calls, and shared mutation detection without trusting claimed file changes.

Technology

  • TypeScript
  • Node.js
  • Pi Subagents

Key features

  • Recognized Cursor edit and write thinking traces as real mutations
  • Recognized Cursor replay edit and write tool calls
  • Reused shared mutation detection for consistent run tracking
  • Added focused regression coverage for successful and false-positive runs

Why it was built

  • To prevent successful Cursor-powered implementation runs being reported as no-op failures

Visit pi-subagents: Completion Guard Fix