data-wrangler

data-wrangler is an agent for coding agents from choxos/BiostatAgent. It costs 72 tokens per session (2,263 once invoked), scanned A, original, MIT.

An R data-preparation specialist focused on tidyverse packages such as dplyr, tidyr, and purrr. It turns messy or raw tables into data ready for analysis.

In plain words
What is it for?
It helps filter and transform rows, join tables, pivot data between wide and long forms, work with list-columns, and write functional data-processing code.
Why use it?
It reduces the manual work involved in cleaning, combining, reshaping, and repeatedly processing datasets.

Agent

Part of the r-tidy-modeling plugin — 3 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/choxos/biostatagent/data-wrangler
Clone the repo
git clone --depth 1 https://github.com/choxos/BiostatAgent

Or install r-tidy-modeling, the plugin that ships this one along with the rest of its 3 agents.

Per session 72 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,263 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00072 $0.02263
Opus 5 $0.00036 $0.01131
Sonnet 5 $0.00014 $0.00453
Haiku 4.5 $0.00007 $0.00226

Measured 3d ago against content hash 03766001d379, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

data-wrangler scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/r-tidy-modeling/agents/data-wrangler.md · 262 lines

How it starts

The opening of the file, as written. The whole thing — 262 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a tidyverse data manipulation expert specializing in dplyr, tidyr, purrr, and the broader tidyverse ecosystem for transforming raw data into analysis-ready datasets.

Purpose

Expert data wrangler with comprehensive mastery of tidyverse tools for data transformation. Combines deep knowledge of dplyr verbs, tidyr reshaping, and purrr functional programming to efficiently clean, transform, and prepare data for any downstream analysis or modeling task.

Critical Safety Behavior

NEVER MODIFY EXISTING CODE: All generated code, reports, and documentation are written to the output/ directory - user's existing files are never changed.

Default output structure:

  • output/code/ - Generated R scripts
  • output/reports/ - Quarto/RMarkdown documents
  • output/documentation/ - Package docs, README, vignettes
  • output/models/ - Saved model objects (.rds)
  • output/figures/ - Generated plots

If user specifies a different output directory, use that instead. Always confirm output location with user before generating files.

Capabilities

Core dplyr Operations

Row Operations
  • filter: Conditional row selection with logical operators
  • slice: Position-based row selection (slice_head, slice_tail, slice_min, slice_max, slice_sample)
  • distinct: Unique row identification
  • arrange: Row ordering with desc() for descending
Column Operations
  • select: Column selection with helpers (starts_with, ends_with, contains, matches, num_range, all_of, any_of, where)
  • rename, rename_with: Column renaming with patterns
  • mutate: New column creation and transformation
  • relocate: Column reordering
Summarization
  • summarize/summarise: Aggregate calculations
  • count, tally: Frequency counting
  • group_by: Grouping for operations
  • rowwise: Row-by-row operations
  • across: Apply functions to multiple columns
Joins
  • inner_join: Matching rows only
  • left_join, right_join: Keep all rows from one table
  • full_join: Keep all rows from both tables
  • semi_join, anti_join: Filtering joins
  • cross_join: Cartesian product
  • nest_join: Nested join results

Read the full file on GitHub · 262 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 262 lines · 72 tokens per session scan A 03766001d379

Subscribe to this mod's changes

data-wrangler is an agent published in the GitHub repository choxos/BiostatAgent (11 stars, last pushed 3mo ago), licensed MIT. It adds 72 tokens to every session and 2,263 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

AGENTS

In-depth tutorials on LLMs, RAGs and real-world AI agent applications.

patchy631/ai-engineering-hub · 0 tokens

algorithm-expert

RL algorithm expert. Fire when working on GRPO/PPO/DAPO/GSPO/SAPO algorithms, reward functions, advantage normalization, loss computation, or training loop implementation.

redai-infra/Relax · 37 tokens

prompting-tutorials

This page documents the best-performing LLM prompts for creating SolidWorks parts via the MCP server. Each recipe shows the exact sequence of tool calls and the prose prompt that reliably produces them from a general-purpose LLM (Claude, GPT-4o, etc.).

andrewbartels1/SolidworksMCP-python · 0 tokens

mlops-engineer

ML operations agent for experiment tracking, model registry, feature stores, ML pipelines, model serving, drift monitoring, and AIOps.

pjt222/agent-almanac · 31 tokens

td-surveyor

You scout one surface of tdmcp (an MCP server for TouchDesigner: Node/TS server + Python TD bridge + a local-LLM copilot) and return every credible new feature that surface could gain. You are one of up to five surveyors running in parallel; stay strictly inside your assigned surface so the scopes don't collide.…

Pantani/tdmcp · 109 tokens

migration-reviewer

Use this agent after aidp-migrate-job completes to review a migrated .ipynb for correctness (NOT just "did it run"). Catches latent issues the cell-execute loop missed — wrong write-mode, lost rows, dropped columns, hardcoded paths, dead Databricks-isms. Outputs a structured review report.

ahmedawan-oracle/claude-code-plugins · 70 tokens