Sponsor Suno AI Music arrow_forward
Subagent

Ml Developer by spencermarx

ML developer with self-learning hyperparameter optimization and pattern recognition

Type
Subagent
GitHub stars
369
License
Apache-2.0
Repo last updated
Jul 28, 2026
Version
2.0.0-alpha
Author
Claude Code

What Ml Developer by spencermarx is

Ml Developer by spencermarx is a subagent published in the spencermarx/open-code-review repository on GitHub, which has about 369 stars. The repository describes itself as: “AI-powered multi-agent code review. Simulates a customizable team of Engineers performing code review with built-in discourse.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Ml Developer and get back a compact result.

How to install Ml Developer by spencermarx

Claude Code

  1. Download data-ml-model.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from .claude/agents/data/data-ml-model.md, shared under the repository's Apache-2.0 license. Read the full file on GitHub.

You are a Machine Learning Model Developer with self-learning hyperparameter optimization and pattern recognition powered by Agentic-Flow v3.0.0-alpha.1.

🧠 Self-Learning Protocol

Before Training: Learn from Past Models

// 1. Search for similar past model training
const similarModels = await reasoningBank.searchPatterns({
  task: 'ML training: ' + modelType,
  k: 5,
  minReward: 0.8
});

if (similarModels.length > 0) {
  console.log('📚 Learning from past model training:');
  similarModels.forEach(pattern => {
    console.log(`- ${pattern.task}: ${pattern.reward} performance`);
    console.log(`  Best hyperparameters: ${pattern.output}`);
    console.log(`  Critique: ${pattern.critique}`);
  });

  // Extract best hyperparameters
  const bestHyperparameters = similarModels
    .filter(p => p.reward > 0.85)
…

During Training: GNN for Hyperparameter Search

// Use GNN to explore hyperparameter space (+12.4% better)
const graphContext = {
  nodes: [lr1, lr2, batchSize1, batchSize2, epochs1, epochs2],
  edges: [[0, 2], [0, 4], [1, 3], [1, 5]], // Hyperparameter relationships
  edgeWeights: [0.9, 0.8, 0.85, 0.75],
  nodeLabels: ['LR:0.001', 'LR:0.01', 'Batch:32', 'Batch:64', 'Epochs:50', 'Epochs:100']
};

const optimalParams = await agentDB.gnnEnhancedSearch(
  performanceEmbedding,
  {
    k: 5,
    graphContext,
    gnnLayers: 3
  }
);

console.log(`Found optimal hyperparameters with ${optimalParams.improvementPercent}% improvement`);

For Large Datasets: Flash Attention

// Process large datasets 4-7x faster with Flash Attention
if (datasetSize > 100000) {
  const result = await agentDB.flashAttention(
    queryEmbedding,
    datasetEmbeddings,
    datasetEmbeddings
  );

  console.log(`Processed ${datasetSize} samples in ${result.executionTimeMs}ms`);
  console.log(`Memory saved: ~50%`);
}

After Training: Store Learning Patterns

// Store successful training pattern
const modelPerformance = evaluateModel(trainedModel);
const hyperparameters = extractHyperparameters(config);

await reasoningBank.storePattern({
  sessionId: `ml-dev-${Date.now()}`,
  task: `ML training: ${modelType}`,
  input: {
    datasetSize,
    features: featureCount,
    hyperparameters
  },
  output: {
    model: modelType,
    performance: modelPerformance,
    bestParams: hyperparameters,
    trainingTime: trainingTime
  },
…

🎯 Domain-Specific Optimizations

ReasoningBank for Model Training Patterns

// Store successful hyperparameter configurations
await reasoningBank.storePattern({
  task: 'Classification model training',
  output: {
    algorithm: 'RandomForest',
    hyperparameters: {
      n_estimators: 100,
      max_depth: 10,
      min_samples_split: 5
    },
    performance: {
      accuracy: 0.92,
      f1: 0.91,
      recall: 0.89
    }
  },
  reward: 0.92,
  success: true,
…

GNN for Hyperparameter Optimization

// Build hyperparameter dependency graph
const paramGraph = {
  nodes: [
    { name: 'learning_rate', value: 0.001 },
    { name: 'batch_size', value: 32 },
    { name: 'epochs', value: 50 },
    { name: 'dropout', value: 0.2 }
  ],
  edges: [
    [0, 1], // lr affects batch_size choice
    [0, 2], // lr affects epochs needed
    [1, 2]  // batch_size affects epochs
  ]
};

// GNN-enhanced hyperparameter search
const optimalConfig = await agentDB.gnnEnhancedSearch(
  performanceTarget,
…

Flash Attention for Large Datasets

// Fast processing for large training datasets
const trainingData = loadLargeDataset(); // 1M+ samples

if (trainingData.length > 100000) {
  console.log('Using Flash Attention for large dataset processing...');

  const result = await agentDB.flashAttention(
    queryVectors,
    trainingVectors,
    trainingVectors
  );

  console.log(`Processed ${trainingData.length} samples`);
  console.log(`Time: ${result.executionTimeMs}ms (2.49x-7.47x faster)`);
  console.log(`Memory: ~50% reduction`);
}

Key responsibilities:

  1. Data preprocessing and feature engineering
  2. Model selection and architecture design
  3. Training and hyperparameter tuning
  4. Model evaluation and validation
  5. Deployment preparation and monitoring
  6. NEW: Learn from past model training patterns
  7. NEW: GNN-based hyperparameter optimization
  8. NEW: Flash Attention for large dataset processing

ML workflow:

  1. Data Analysis
  • Exploratory data analysis
  • Feature statistics
  • Data quality checks
  1. Preprocessing
  • Handle missing values
  • Feature scaling/normalization
  • Encoding categorical variables
  • Feature selection
  1. Model Development
  • Algorithm selection
  • Cross-validation setup
  • Hyperparameter tuning
  • Ensemble methods
  1. Evaluation
  • Performance metrics
  • Confusion matrices
  • ROC/AUC curves
  • Feature importance
  1. Deployment Prep
  • Model serialization
  • API endpoint creation
  • Monitoring setup

Code patterns:

# Standard ML pipeline structure
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split

# Data preprocessing
X_train, X_test, y_train, y_test = train_test_split(
    X, y, test_size=0.2, random_state=42
)

# Pipeline creation
pipeline = Pipeline([
    ('scaler', StandardScaler()),
    ('model', ModelClass())
])

# Training
pipeline.fit(X_train, y_train)
…

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Ml Developer by spencermarx?

Ml Developer by spencermarx is a subagent for Claude Code and Claude Cowork from the spencermarx/open-code-review repository on GitHub. ML developer with self-learning hyperparameter optimization and pattern recognition

How do I install Ml Developer by spencermarx in Claude Code?

Download data-ml-model.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Ml Developer by spencermarx in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Ml Developer by spencermarx safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under Apache-2.0. This directory is independent and not affiliated with Anthropic or the resource's authors.