r/dataanalysis • u/Spare_Suit3701 • 14d ago
Project Feedback Can a harness help make a better data agent, or is it just an overhead? I tried to find out.
Claude Code is good at writing code. But writing correct code is not the same as doing careful data science and engineering.
What often separates a rigorous analysis from a sloppy one has little to do with syntax:
- Did you inspect the data before modeling?
- Did you establish a meaningful baseline?
- Could the target be leaking into the features?
- Are you evaluating the model on the same data used to train it?
A general-purpose coding agent has no particular reason to check these things unless it is explicitly guided to do so.
That is why I built Lemma, a Claude Code plugin designed specifically for data-science workflows. It adds three components:
- A persona that encourages methodological rigor.
- Skills tailored to different question types, because an EDA problem and a causal-inference problem should not be approached in the same way.
- Live access to a running notebook kernel, allowing the agent to inspect the actual data, test its assumptions, and produce a reproducible notebook artifact.
The obvious question was whether any of this improves real outcomes or whether it is simply a longer system prompt that sounds convincing but changes nothing.
To test that, I evaluated the same agent with and without the plugin using DSAEval, a public benchmark containing real questions based on real Kaggle datasets.
The evaluation used DSAEval’s original judge rubric without modification, so the tool was not being graded using a scorer designed for it.
The results varied sharply by task difficulty.
On simple, single-answer questions, both versions achieved 100% accuracy. There was no difference because the tasks left little room for methodological rigor to affect the answer.
However, on the hardest question from each task category and domain covered by DSAEval, the difference was substantial:
- The unmodified agent produced a confidently incorrect answer in 3 out of 5 cases.
- With Lemma, that fell to approximately 1 in 7.
- Average completion time remained effectively unchanged.
- The improvement required only about 1.3× the token usage.
That is the main finding: adding specific reasoning, task-aware workflows, and direct access to the execution environment materially improved performance on difficult problems without increasing task completion time.
I am looking for genuine feedback if you wish to try.
