Urgent.News

What's breaking now, across thousands of outlets.

Tech

title: CouchPilot: Autonomous Repository Housekeeping with Guaranteed AST Equivalence

What We Built Most AI coding assistants operate with unconstrained blast radiuses: when asked to document or format code, they rewrite entire functions, subtly change control flow, introduce hallucinations, or silently alter edge-case semantics. For open-source maintainers, reviewing AI-generated pull requests often requires more cognitive overhead than writing the code from scratch. We built…

CouchPilot is an autonomous system designed to maintain Python repositories through automated documentation and type annotation management. It aims to preserve functional code immutability through a deterministic process. The system utilizes tree-sitter to identify code elements that require updates, such as missing docstrings or unannotated function signatures.

The LLM is not used to guess what needs fixing but instead generates docstrings and type hints using open-weight Google Gemma models. The generated content adheres to specific Pydantic JSON schemas and is strictly confined to docstrings and type hints, with no interference in function bodies. Before applying any changes, CouchPilot verifies the AST equivalence between the original and updated code using Python's standard library ast module.

If the stripped trees, devoid of docstrings and type annotations, are not identical, the patch is rejected. The system operates within isolated Git worktrees to protect the default branch, and verified patches are committed to separate review branches. A web dashboard on Render provides maintainers and judges with detailed audit reports, including unified diffs and performance traces.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I Taught a Sloth to Write Its Own Chores (Then Put It in a Cage)

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady What I Built Sloth is a single Python file that does file chores from one sentence.

  • Python program Sloth automates file management tasks
  • Uses local open-weight model Ollama without cloud costs
  • User describes chores in English, Sloth generates scripts

Slothsort

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady What I Built My Downloads folder had 500+ files.

  • Slothsort is an open-source AI tool for efficient file sorting
  • Developed to handle cluttered Downloads folder with 500+ files
  • Prioritizes privacy by processing files locally without internet

More from Sunday 25 October →