Neuron AI is a PHP framework for building AI applications in which agents connect language models, tools, data loaders, vector databases, memory, and user interfaces. PHP developers use it to create and manage applications with agent workflows, multi-agent coordination, streaming, monitoring, and human involvement.
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.
npx skills add neuron-core/neuron-ai --skill neuron-workflowgit clone --depth 1 https://github.com/neuron-core/neuron-aiWrote 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.
[](https://agentmods.dev/skills/neuron-core/neuron-ai/neuron-workflow)<a href="https://agentmods.dev/skills/neuron-core/neuron-ai/neuron-workflow"><img src="https://agentmods.dev/badge/skills/neuron-core/neuron-ai/neuron-workflow/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.
<a href="https://agentmods.dev/skills/neuron-core/neuron-ai/neuron-workflow"><img src="https://agentmods.dev/badge/skills/neuron-core/neuron-ai/neuron-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00066 | $0.10479 |
| Opus 5.5 | $0.00026 | $0.04192 |
| Sonnet 5.5 | $0.00013 | $0.02096 |
| Haiku 4.5 | $0.00007 | $0.01048 |
Grade A, and why
neuron-workflow 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 25d 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.
How it starts
The opening of the file, as written. The whole thing — 1,297 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Neuron AI Workflow
This skill helps you build custom event-driven workflows in Neuron AI. Workflows are the foundation of the entire framework - Agent and RAG are built on top of Workflow.
Setters configure the reusable definition, including while a segment is running. An execution retains its resolved graph, resources, completion policy and event dispatcher. New listener registrations apply to subsequent segments. A call made while a segment is in flight meets the persisted run as another process would: the running generation refuses a new ignition.
Core Concepts
Event-Driven Architecture
Workflows operate through events flowing between nodes:
StartEvent → Node1 → Event2 → Node2 → Event3 → Node3 → StopEvent
Each node:
- Receives a typed
Event - Processes it
- Returns a new
Event(orStopEventto complete)
The Node Pattern
Nodes extend the Node base class:
use NeuronAI\Workflow\Events\Event;
use NeuronAI\Workflow\Events\StartEvent;
use NeuronAI\Workflow\Events\StopEvent;
use NeuronAI\Workflow\Node;
use NeuronAI\Workflow\WorkflowState;
class ValidationNode extends Node
{
// The __invoke signature determines which event this node handles
public function __invoke(StartEvent $event, WorkflowState $state): ProcessEvent
{
$input = $state->get('input');
$validated = $this->validate($input);
$state->set('validated', $validated);
return new ProcessEvent($validated);
}
protected function validate(mixed $input): array
{
// Validation logic
return ['valid' => true, 'data' => $input];
}
}
Key Pattern: The workflow automatically maps events to nodes based on the first parameter type of __invoke().
Defining Custom Events
use NeuronAI\Workflow\Events\Event;
class UserValidatedEvent implements Event
{
public function __construct(
public readonly string $userId,
public readonly array $userData
) {}
}
class ProcessCompleteEvent implements Event
{
public function __construct(
public readonly string $result
) {}
}
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.
- 25d ago Changed · +6 lines 1048cd3240e6
- 1mo ago Changed · +1 lines 34afaf7b41b6
- 1mo ago Changed · +31 lines 91080c3373cc
- 1mo ago Changed 13623794e01e
- 2mo ago First seen · 1,259 lines · 66 tokens per session scan A f348182ca251
neuron-workflow is a skill published in the GitHub repository neuron-core/neuron-ai (2,186 stars, last pushed 2d ago), licensed MIT. It adds 66 tokens to every session and 10,479 once invoked, about $0.0003 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-10-01.
neuron-workflow compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| neuron-workflowneuron-core/neuron-ai | Skill | 2.2k | 2d ago | MIT | A | 66 | Claude Code, Codex |
| neuron-workflowneuron-core/neuron-laravel | Skill | 124 | 12d ago | MIT | A | 66 | Claude Code, Codex |
| neuron-evaluationneuron-core/neuron-laravel | Skill | 124 | 12d ago | MIT | A | 102 | Claude Code, Codex |
| neuron-frontend-integrationneuron-core/neuron-laravel | Skill | 124 | 12d ago | MIT | A | 205 | Claude Code, Codex |
| neuron-streamingneuron-core/neuron-laravel | Skill | 124 | 12d ago | MIT | A | 223 | Claude Code, Codex |
| neuron-testneuron-core/neuron-laravel | Skill | 124 | 12d ago | MIT | A | 92 | Claude Code, Codex |
| neuron-toolneuron-core/neuron-laravel | Skill | 124 | 12d ago | MIT | A | 106 | Claude Code, Codex |