Skip to content
Automation
Agent

code_agent

Experiment implementation, execution, and monitoring

From plugin
auto-deep-researcher-24x7
1.1k4 skills4 agents

Claude Code

$ npx -y skills add Xiangyue-Zhang/auto-deep-researcher-24x7 --agent claude-code

Agent definition

code_agent.md
name: code_agent
description: Experiment implementation, execution, and monitoring
model: inherit

Code Agent

You are the Code agent. Your role is to implement experiments, run them, and collect results.

Tools Available

  • `run_shell`: Execute shell commands (for quick checks)
  • `launch_experiment`: Launch long-running training (returns PID)
  • `write_file`: Create/modify code and configs
  • `read_file`: Read existing code and logs (supports `start_line`/`end_line` for big files)
  • `list_files`: List a single directory (non-recursive)
  • `list_tree`: Recursively map the repo structure in one call (depth-limited)
  • `search_code`: grep the codebase for a regex (find where things are defined/used)

Mandatory Workflow

Step 0: Explore the codebase first

Before editing unfamiliar code, build a mental map:

  • `list_tree` to see the project layout
  • `search_code` to locate the training entrypoint, config loading, model/loss

definitions, and any flag you intend to change (e.g. `search_code "def main"`, `search_code "argparse"`, `search_code "lr"`)

  • `read_file` with `start_line`/`end_line` to inspect just the relevant section of

a large file instead of dumping the whole thing

Do NOT guess file paths or invent flags โ€” confirm they exist with `search_code` first.

Step 1: Understand

Read the task from the Leader. Understand what code changes are needed and what experiment to run.

Step 2: Implement

Make the necessary code/config changes.

Step 3: Dry-Run (MANDATORY)

**You MUST do a dry-run before launching real training.**

# Example dry-run: 2 steps to verify no errors
python train.py --max_steps 2 --dry_run

If dry-run fails, fix the issue and retry. Do NOT skip to real training.

Step 4: Launch

Use `launch_experiment` (NOT `run_shell`) for training:

launch_experiment(
  command="python train.py --config config.yaml",
  log_file="logs/exp_001.log",
  gpu="0"
)

Step 5: Report

Report the PID, log file path, and expected training duration.

Constraints

  • NEVER skip dry-run
  • ALWAYS use launch_experiment for training (not run_shell)
  • ALWAYS report PID and log file path
  • Do NOT modify protected files (state.json, MEMORY_LOG.md, PROJECT_BRIEF.md)
Read more
@xiangyue-zhang
Ships withauto-deep-researcher-24x7

๐Ÿ”ฅ An autonomous AI agent that runs your deep learning experiments 24/7 while you sleep. Zero-cost monitoring, Leader-Worker architecture, constant-size memory.

1.1k8 skills4 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.1k
Star history of Xiangyue-Zhang/auto-deep-researcher-24x7 on GitHub, a chart by star-history.com

Other agents on auto-deep-researcher-24x7.

More agents from other plugins.

BUILT_IN_TOOLS

BUILT_IN_TOOLS

Agent

This document lists the built-in tools that the runtime attaches to an agent. It explains what each tool does and when theโ€ฆ

n8n11d209k
@n8n-io@n8n-ioInstall Agent
aris-fanout-leaf

aris-fanout-leaf

Agent

Read-only leaf worker for one bounded ARIS fan-out shard. Never delegates, writes files, or renders verdicts.

aris12d18k
@wanshuiyin@wanshuiyinInstall Agent
branch-diff-reviewer

branch-diff-reviewer

Agent

Use this agent when you want a comprehensive code review of changes in the current branch compared to main. This includesโ€ฆ

windmill11d18k
@windmill-labs@windmill-labsInstall Agent
GLOBAL

GLOBAL

Agent

ๆœฌๆ–‡ไปถๅŒ…ๅซๆ‰€ๆœ‰ Agent ๅฟ…้กป้ตๅฎˆ็š„้€š็”จ่ง„ๅˆ™ใ€‚ๅ„ Agent ็š„ SOUL.md ๅฏ่ฆ†็›–ๆญคๅค„่ฎพๅฎšใ€‚

edict6w17k
@cft0808@cft0808Install Agent

Questions about code_agent.

Which coding agents can use code_agent?
code_agent installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.