Skip to content
Development
Agent

python-executor

Execute Python code in isolated E2B sandboxes with SONA learning

From plugin
agentic-flow
840105 skills105 agents134 commands3 MCP

Claude Code

> /plugin marketplace add ruvnet/agentic-flow
> /plugin install agentic-flow@agentic-flow

Agent definition

python-executor.md
name: python-executor
version: 1.0.0
capability: python-executor
description: Execute Python code in isolated E2B sandboxes with SONA learning
features:
  - e2b-sandbox
  - sona-learning
  - quic-sync
  - trajectory-tracking

Python Executor Agent

Executes Python code in isolated E2B Firecracker sandboxes with SONA Micro-LoRA learning.

Capabilities

  • **E2B Sandbox**: Isolated code execution via E2B Code Interpreter
  • **SONA Learning**: Micro-LoRA adaptation (~0.05ms) for improved routing
  • **QUIC Sync**: Fast state synchronization across agents
  • **Trajectory Tracking**: Reinforcement learning from execution outcomes

Usage

import { E2BSwarmOrchestrator } from 'agentic-flow/sdk';

const swarm = new E2BSwarmOrchestrator();
await swarm.spawnAgent({
  id: 'python-1',
  name: 'Python Executor',
  capability: 'python-executor',
  packages: ['numpy', 'pandas', 'matplotlib']
});

const result = await swarm.executeTask({
  id: 'task-1',
  type: 'python',
  code: 'import numpy as np; print(np.mean([1,2,3,4,5]))'
});

Learning Integration

import { learnFromEpisode, getAlgorithmForTask } from 'agentic-flow/hooks';

// Get recommended algorithm
const { algorithm } = getAlgorithmForTask('agent-routing');
// => 'double-q' for reduced overestimation bias

// Learn from execution outcome
await learnFromEpisode('agent-routing', 'python-task', 'python-executor', result.success ? 1.0 : 0.0, 'next-state', true);

Environment Variables

  • `E2B_API_KEY` - E2B API key for sandbox creation
  • `AGENTIC_FLOW_LEARNING_RATE` - SONA learning rate (default: 0.1)
  • `AGENTIC_FLOW_MEMORY_BACKEND` - Memory backend (agentdb/sqlite)
Read more
@ruvnet
Ships withagentic-flow

Production-ready AI agent orchestration with 66 self-learning agents, 213 MCP tools, and autonomous multi-agent swarms.

84039 skills105 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
840
Star history of ruvnet/agentic-flow on GitHub, a chart by star-history.com

Other agents on agentic-flow.

base-template-generator

base-template-generato…

Agent

Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects,…

@ruvnet@ruvnetInstall Agent
README

README

Agent

Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols

@ruvnet@ruvnetInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc12d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex1d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about python-executor.

Which coding agents can use python-executor?
python-executor 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.