flow-nexus-neural
Flow Nexus Neural trains and deploys custom neural networks across distributed computing clusters. Use this command to build feedforward, LSTM, GAN, or transformer architectures with configurable training parameters, run inference on trained models, leverage pre-built templates for classification and NLP tasks, and enable federated learning across multiple nodes for large-scale model training.
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/ruvnet/agentic-flow/HEAD/.claude/commands/flow-nexus/neural-network.md -o ~/.claude/commands/flow-nexus-neural.mdneural-network.md
# Flow Nexus Neural Networks
Train custom neural networks with distributed computing.
## Train Model
```javascript
mcp__flow-nexus__neural_train({
config: {
architecture: {
type: "feedforward", // lstm, gan, autoencoder, transformer
layers: [
{ type: "dense", units: 128, activation: "relu" },
{ type: "dropout", rate: 0.2 },
{ type: "dense", units: 10, activation: "softmax" }
]
},
training: {
epochs: 100,
batch_size: 32,
learning_rate: 0.001,
optimizer: "adam"
}
},
tier: "small" // nano, mini, small, medium, large
})
```
## Run Inference
```javascript
mcp__flow-nexus__neural_predict({
model_id: "model_id",
input: [[0.5, 0.3, 0.2], [0.1, 0.8, 0.1]],
user_id: "your_id"
})
```
## Use Templates
```javascript
// List templates
mcp__flow-nexus__neural_list_templates({
category: "classification", // regression, nlp, vision, anomaly
tier: "free",
limit: 20
})
// Deploy template
mcp__flow-nexus__neural_deploy_template({
template_id: "sentiment-analysis",
custom_config: {
training: { epochs: 50 }
}
})
```
## Distributed Training
```javascript
// Initialize cluster
mcp__flow-nexus__neural_cluster_init({
name: "training-cluster",
architecture: "transformer",
topology: "mesh",
consensus: "proof-of-learning",
wasmOptimization: true
})
// Deploy nodes
mcp__flow-nexus__neural_node_deploy({
cluster_id: "cluster_id",
node_type: "worker", // parameter_server, aggregator
model: "large",
capabilities: ["training", "inference"]
})
// Start training
mcp__flow-nexus__neural_train_distributed({
cluster_id: "cluster_id",
dataset: "mnist",
epochs: 100,
federated: true // Enable federated learning
})
```
## Model Management
```javascript
// List your models
mcp__flow-nexus__neural_list_models({
user_id: "your_id",
include_public: true
})
// Benchmark performance
mcp__flow-nexus__neural_performance_benchmark({
model_id: "model_id",
benchmark_type: "comprehensive"
})
// Publish as template
mcp__flow-nexus__neural_publish_template({
model_id: "model_id",
name: "My Custom Model",
description: "Highly accurate classifier",
category: "classification",
price: 0 // Free template
})
```
## Common Patterns
### Image Classification
```javascript
mcp__flow-nexus__neural_train({
config: {
architecture: { type: "cnn" },
training: { epochs: 50, batch_size: 64 }
},
tier: "medium"
})
```
### Time Series Prediction
```javascript
mcp__flow-nexus__neural_train({
config: {
architecture: { type: "lstm" },
training: { epochs: 100, learning_rate: 0.01 }
},
tier: "small"
})
```Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects, components, or features. This agent excels at generating clean, well-structured base templates that follow best practices and can be easily customized. Examples: <example>Context: User needs to start a new React component and wants a solid foundation. user: 'I need to create a new user profile component' assistant: 'I'll use the base-template-generator agent to create a comprehensive React component template with proper structure, TypeScript definitions, and styling setup.' <commentary>Since the user needs a foundational template for a new component, use the base-template-generator agent to create a well-structured starting point.</commentary></example> <example>Context: User is setting up a new API endpoint and needs a template. user: 'Can you help me set up a new REST API endpoint for user management?' assistant: 'I'll use the base-template-generator agent to create a complete API endpoint template with proper error handling, validation, and documentation structure.' <commentary>The user needs a foundational template for an API endpoint, so use the base-template-generator agent to provide a comprehensive starting point.</commentary></example>
Show Claude-Flow commands and usage
Interact with Claude-Flow memory system
Coordinate multi-agent swarms for complex tasks
Browse, publish, and deploy applications
Coding challenges, achievements, and leaderboards
Flow Nexus authentication and user management
Credit management, billing, and payment configuration