Sypha AI Docs
Features

High-Performance Modifications (Fast Edits)

Accelerate project updates with efficient diff-based file editing in Sypha.

High-Performance Modifications

Sypha defaults to Fast Edits, an optimized system (controlled via the "Enable editing through diffs" preference) that drastically improves how code is updated. Instead of regenerating entire files, the AI calculates and applies specific differences (diffs).

Advantages of Diff-Based Edits

  1. Unmatched Speed: By only transmitting changed fragments, Sypha completes file updates much faster than traditional methods.
  2. Reliability at Scale: Eliminates the risk of "truncated writes," which can occur when AI models attempt to rewrite very large files in a single pass.
  3. Token Conservation: Reduces overhead by only focusing on the lines requiring change, preserving your context window.

Fine-Tuning

Manage these behaviors in Settings (gear icon) -> Advanced.

Matching Sensitivity

Control the strictness of how Sypha maps its proposed changes to your existing code:

  • 100% Precision (Standard): The highest safety level. Changes are only applied if the target code matches the AI's reference exactly.
  • Fuzzy Matching (80%-99%): Permits minor textual discrepancies (helpful if external edits occurred), though it requires closer manual review to ensure logic integrity.

[!CAUTION] Reducing precision below 100% increases the chance of misapplied edits. Always inspect the generated diff before confirming the change.

Underlying Utilities

  • apply_diff: The primary tool for incremental, fast modifications.
  • write_to_file: The fallback mechanism used for creating new files or when Fast Edits is disabled, which performs a complete file rewrite.

On this page