cd /news/ai-tools/csv-rescue-let-local-ai-do-the-tedio… · home › topics › ai-tools › article
[ARTICLE · art-154881] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

CSV Rescue: Let Local AI Do the Tedious CSV Cleanup — Without Giving It the Keys

A developer built CSV Rescue, an open-source, local-first tool that uses a locally hosted open-weight model via Ollama to profile a CSV and suggest cleaning operations, which users approve before deterministic Python code applies them. In testing on a deliberately messy 500-row file, five selected operations produced 475 output rows with 739 cell changes and 61 flagged issues, including 25 removed duplicates, while ambiguous values like 'unknown' or 'TBD' were flagged rather than guessed. The model never generates executable code; its suggestions are validated against a fixed rule set covering whitespace trimming, currency and date normalization, blank-value handling, and deduplication.

by read3 min views4 publishedOct 21, 2026

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady. CSV files are everywhere. Unfortunately, so are the little inconsistencies that make them frustrating to work with: extra whitespace, currency symbols, inconsistent date formats, missing-value placeholders, and duplicate records.

Cleaning those problems manually is tedious. Automating the process blindly can be worse.

CSV Rescue is a local-first, open-source application that uses AI to identify useful cleaning operations, lets the user approve them, and then applies the selected changes through predictable Python code.

The idea is simple: let AI figure out what might need fixing, but don't let it invent the fixes.

The workflow has three steps:

The original file is never overwritten.

For the demonstration, I generated a deliberately messy 500-row CSV containing inconsistent currency and date formats, extra whitespace, missing-value markers, and duplicate records. With five cleaning operations selected, CSV Rescue produced:

Metric Result
Input rows 500
Output rows 475
Cell changes 739
Flagged issues 61

The application removed 25 duplicate rows while preserving ambiguous values for review.

For example, when a currency field contains unknown or TBD, CSV Rescue flags the issue instead of pretending it knows the correct amount. The before-and-after preview also includes a change log identifying the affected row, column, operation, original value, and resulting value.

GitHub:

https://github.com/BlacktopLogic/csv-rescue The repository includes the FastAPI application, deterministic cleaning engine, CSV profiler, sample data, automated tests, setup instructions, and an MIT license.

It's designed to run locally rather than requiring a hosted application or cloud AI account.

CSV Rescue uses a small, intentionally straightforward stack:

The model receives a statistical profile of the CSV and recommends operations from a restricted set of supported cleaning rules.

Those operations currently include trimming whitespace, normalizing currency, normalizing dates, normalizing blank values, and removing duplicate rows.

The model does not get to generate arbitrary Python code for execution. Its suggestions are validated against supported operations, and the user chooses what to apply.

That separation is intentional. Language models are useful for recognizing patterns and suggesting actions, but data transformation needs to be predictable, inspectable, and repeatable.

Local inference is central to the design.

CSV files often contain customer information, business records, or operational data that people would rather not send to an external AI service.

By using Ollama and an open-weight model, CSV Rescue can analyze a file's statistical profile on the user's own computer without requiring a cloud inference API.

This also makes the project easier to experiment with. The AI layer can evolve independently from the cleaning engine, and the core cleaning functionality doesn't depend on a paid AI subscription.

Just as importantly, open source makes the transformation logic inspectable. Users can see how their data is processed instead of having to trust an opaque AI-generated result.

The goal isn't to remove people from the process. It's to remove the repetitive work while keeping the important decisions.

Instead of manually inspecting hundreds of rows, searching for formatting inconsistencies, and applying spreadsheet operations one at a time, the user can review a small set of suggested rules and inspect the resulting changes.

During testing, CSV Rescue processed a 500-row sample, identified five useful operations, and produced a cleaned file with 739 cell changes.

I also tested the project from a fresh GitHub clone: installing dependencies in a new virtual environment, running all 15 regression tests successfully, launching the application, generating AI recommendations, previewing the results, and down the cleaned CSV.

All 15 automated tests passed.

This is an early release, not a replacement for full-featured data preparation software. But it demonstrates a useful principle: AI can take on the tedious pattern-recognition work without being given unrestricted control over the data.

Slow and steady, with a human still holding the steering wheel.

Built by Blacktop Logic.

── more in #ai-tools 4 stories · sorted by recency
── more on @csv rescue 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/csv-rescue-let-local…] indexed:0 read:3min 2026-10-21 · —