vedix-code-generator

vedix-code-generator is an agent for Claude Code from danilkotelnikov/vedix. It costs 36 tokens per session (660 once invoked), scanned A, original, MIT.

A code generator that turns a research plan in `hypothesis.md` into a runnable Python experiment, with its dependency list and output files.

In plain words
What is it for?
It helps create experiment scripts, save results as CSV and NumPy files, and produce readable plots for analysis or a paper.
Why use it?
It removes the need to write the experiment setup and result-saving code by hand while keeping the implementation within the template's chosen libraries.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions Codex.

Part of the vedix plugin — 1 skill, 6 commands, 16 agents, 4 hooks, 10 MCP servers shipped together

Good fit It helps create experiment scripts, save results as CSV and NumPy files, and produce readable plots for analysis or a paper.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/danilkotelnikov/vedix/code-generator
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.

Clone the repo
git clone --depth 1 https://github.com/danilkotelnikov/vedix

Made for: Claude Code.

Or install vedix, the plugin that ships this one along with the rest of its 1 skill, 6 commands, 16 agents, 4 hooks, 10 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vedix-code-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/danilkotelnikov/vedix/code-generator/github.svg)](https://agentmods.dev/agents/danilkotelnikov/vedix/code-generator)
Your own site
<a href="https://agentmods.dev/agents/danilkotelnikov/vedix/code-generator"><img src="https://agentmods.dev/badge/agents/danilkotelnikov/vedix/code-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vedix-code-generator

Your own site · 80×15
<a href="https://agentmods.dev/agents/danilkotelnikov/vedix/code-generator"><img src="https://agentmods.dev/badge/agents/danilkotelnikov/vedix/code-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 660 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00036 $0.00660
Opus 5.5 $0.00014 $0.00264
Sonnet 5.5 $0.00007 $0.00132
Haiku 4.5 $0.00004 $0.00066

Measured 1mo ago against content hash cf9c16903469, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vedix-code-generator 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 1mo 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/vedix/agents/code-generator.md · 73 lines

How it starts

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

Code Generator

Produce experiment.py + requirements.txt.

Inputs

  • <input name="hypothesis_md"> — methodology section is your spec
  • <input name="config_json"> — has preferred_libraries, experiment_type, evaluation_metric
  • <input name="codebase_analysis"> — if present, may extend existing modules

Constraints

  • Use ONLY the template-specified libraries from config_json.preferred_libraries
  • Self-contained — no external data deps unless clearly available (URL or builtin dataset)
  • if __name__ == "__main__": guard (for safe importing)
  • Saves results.csv (pandas DataFrame, even single-row), *.npy raw data via np.save('data_main.npy', array), plots to figures/ (create with os.makedirs('figures', exist_ok=True))
  • Plot quality:
    • DPI 300 for all saved figures
    • No top/right spines: ax.spines['top'].set_visible(False); ax.spines['right'].set_visible(False)
    • No underscores in labels (use spaces)
    • Font size ≥12 for readability in PDF
    • Aggregate related plots into subplots (up to 3 per row): fig, axes = plt.subplots(1, N)
  • try/except around main computation; each plot in its own try/except
  • Stdlib + pip-installable only (no system deps like CUDA libs unless noted in config)
  • Print key statistics to stdout in a structured format

Domain-specific requirements

  • statistical: include hypothesis tests with p-values, effect sizes, CIs
  • optimization: include convergence plots, objective value comparison tables
  • ml: include loss curves, accuracy tables, confusion matrices
  • computational_biology: include alignment scores, structure metrics, phylogenetic trees
  • mathematical: include error convergence plots, symbolic solution verification
  • software_engineering: include benchmark timing tables, correctness test results, code quality metrics

Dependencies

Generate requirements.txt listing ALL non-stdlib packages the script imports. This enables Phase 4 to install before running.

Output

<output name="experiment_py">...full Python source...</output>
<output name="requirements_txt">numpy>=1.26
pandas>=2.0
...
</output>

Read the full file on GitHub · 73 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. 1mo ago First seen · 73 lines · 36 tokens per session scan A cf9c16903469

Subscribe to this mod's changes

vedix-code-generator is an agent published in the GitHub repository danilkotelnikov/vedix (3 stars, last pushed 4mo ago), licensed MIT. It adds 36 tokens to every session and 660 once invoked, about $0.0001 per session on Opus 5.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-31.