(Ab)using Agentic Coding CLIs for Data Cleaning and Standardisation
How a single LLM session transformed a messy, user-generated dataset into a tidy, query-ready table in just 20 minutes.
The Challenge When I began working with the 1,000+ row table, two critical issues quickly became apparent:
Data Normalisation: The “universe” column contained inconsistent variations (e.g. “Marvel 616”, “Marvel, Earth‑616”, etc.), hindering effective data analysis. Standardising these names was essential. Content Moderation: A small number of threads contained inappropriate content, including slurs, sexually suggestive descriptions, etc. Addressing this was crucial for maintaining a safe and usable dataset. Why an Agentic CLI? While building a full agentic workflow with tools like Pydantic-AI or the OpenAI Agents SDK is an option, I’ve realized that LLMs are surprisingly good with bash, even commands they haven’t seen before. The real power lies in instructing an Agentic CLI to execute shell commands through its built-in shell tool. This allows us to bypass the complexity of crafting custom tools by leveraging an Agentic CLI, such as Qwen Code, OpenAI Codex, or Google Gemini CLI, and its built-in shell execution capabilities. This significantly reduces development time.
Anchit Bajaj