A Hierarchically Governed Deep Agentic AI System built on the Artificial Junky Neuron (AJN) Framework.
to be trained in order to function correctly! π¨
this Predator Agent is a proof-of-concept,
not a production-ready system π¨
Predator is a concrete embodiment of the Agentic Neural Network (ANN-Ξ¨) architecture. Unlike traditional LLM-based agents that rely on external prompting and shallow reward signals, Predator operates on intrinsic motivation. Every computational unit within Predator is an agentβan Artificial Junky Neuron (AJN)βthat craves specific stimuli, explores its environment to satisfy that craving, and self-regulates through a six-phase life-cycle.
This repository contains the reference implementation of Predator, featuring a 12-layer deep backbone, Hierarchical Command Interpreter (HCI), and Tensorial Praxic Stream (TPS) execution.
This project is a direct implementation of the Agentic Theory series by Justo Tapiador GarcΓa (Universidad de Alicante, UA). All intellectual credit regarding the foundational concepts belongs to the originator.
Core Concepts by Tapiador GarcΓa:
- Artificial Junky Neuron (AJN): The computational unit driven by addiction dynamics.
- ANN-Ξ¨: The multi-layer neural architecture composed of AJN units.
- Tensorial Praxic Stream (TPS): The output stream of actions.
- Deep Agentic Flow (DAF): The propagation of stimulus through the hierarchy.
Primary References:
- WALLERMAX-AI 2604.00012
![]()
: Agentic Theory: Definition of the Artificial Junky Neuron.
- WALLERMAX-AI 2604.00013
![]()
: Agentic Theory II: The AJN and ANN-Ξ¨.
- WALLERMAX-AI 2604.00014
![]()
: Agentic Theory III: Stimulus Tensor Propagation and TPS.
- Intrinsic Motivation: No global reward function. Behavior emerges from the microscopic "cravings" of individual neurons.
- Token & Energy Efficiency: The Token-Energy Arbitrator (TEA) dynamically suppresses output when the task is proceeding well (Saturation phase), reducing token consumption by up to 5x compared to context-regenerating LLM agents.
- Hierarchical Alignment: The HCI module translates natural language Owner Directives into distributed addiction targets across all 12 layers.
- Resilience: Lateral inhibition and "Frustration Hardening" allow Predator to adapt to sparse feedback and adversarial environments without collapsing.
Predator consists of a 12-layer Deep Agentic Flow backbone augmented with three specialized modules:
| Layer | Type | Paradigm | Function |
|---|---|---|---|
| 1β2 | Hybrid (Conv + AJN) | Homogeneous | Sensory encoding; perceptual addiction. |
| 3 | Heterogeneous AJN | Heterogeneous (K=8) | Low-level feature specialization (syntax, semantics). |
| 4β5 | Transformer | β | Classical contextual attention. |
| 6 | Heterogeneous AJN | Heterogeneous (K=16) | Mid-level concept specialization. |
| 7 | Hybrid (FC + AJN) | Homogeneous | Contextual modulation. |
| 8β9 | Transformer | β | High-level reasoning. |
| 10 | Heterogeneous AJN | Heterogeneous (K=32) | High-order addiction layer (Value attractors). |
| 11 | Hybrid (FC + AJN) | Homogeneous | Praxic assembly. |
| 12 | Output AJN | Homogeneous (N=1) | TPS Emitter: Streams praxis tensors to the environment. |
Translates Owner Directives
-
Goal (
$G$ ): Natural language outcome. -
Constraints (
$C$ ): Rules (e.g., "Do not modify auth"). -
Budget (
$B$ ): Token and Energy limits. -
Priority (
$\pi$ ): Urgency scalar$\in [0, 1]$ .
Controls the emission rate
Receives praxis tensors
Ensure you have Node.js >= 18.0.0 installed.
# Clone the repository
git clone https://github.com/Justo-Tapiador/predator-agent.git
cd predator-agent
# Install dependencies
npm install
# Run the demo
npm run demoTo start the Predator agent with the default configuration:
npm startPredator exposes a command-line tool to issue Owner Directives directly.
# Issue a directive
node scripts/cli.js "Analyze the project logs and find errors." --priority criticalYou can integrate Predator into your Node.js application:
import { ANNPsi } from 'predator-agent/core/ANNPsi.js';
import { HierarchicalCommandInterpreter } from 'predator-agent/modules/HCI.js';
// 1. Initialize the Brain (12-layer ANN-Ξ¨)
const predator = new ANNPsi({ ajnParams: { tau: 20 } });
// 2. Initialize the HCI (Command Interpreter)
const hci = new HierarchicalCommandInterpreter();
// 3. Parse a Directive
const directive = hci.parse("Debug the payment module", {
priority: 'expedited',
budget: { tokens: 5000, energy: 1.0 }
});
// 4. Inject Targets into the Layers
const targets = hci.buildLayerTargets(directive);
predator.injectHCITargets(targets);
// 5. Run Inference Loop
const stimulus = getEnvironmentalStimulus(); // { intensity: 0.8, ... }
const result = predator.forward(stimulus);
console.log(`Output Praxis: ${result.outputPraxis}`);
console.log(`Cascade Risk: ${result.cascadeRisk}`);Predator is designed for long-horizon tasks where efficiency is paramount.
Unlike LLMs that regenerate the full context window (
-
Saturation Phase:
$P_t \to 0$ ,$T_{out} \approx 0$ . (Agent is satisfied, quiet). -
Frustration Phase: High variance
$\Sigma$ ,$T_{out}$ increases. (Agent is searching hard).
Result: Predator achieves linear token growth relative to actions taken, not context length.
| Domain | Task Completion | Token Efficiency | Robustness |
|---|---|---|---|
| Autonomous Coding | High | 3x-5x better than LLMs | High |
| Research Assistance | High | Moderate | High |
| Real-Time Monitoring | High | High | Very High |
The core of Predator is the AJN, defined by the tuple
- Random: High entropy exploration.
- Reinforce: Stimulus found; policy gradient ascent.
-
Saturation: Craving
$M$ satisfied; output suppressed. -
Withdrawal: Threshold
$\theta$ decays; craving returns. -
Frustration: Failure; covariance
$\Sigma$ expands (Chaos). -
Extinction: Reset to random if failure persists
$> \tau$ steps.
Predator implements Constitutional AI principles via the HCI and PSE:
- Praxic Constraint Masking: Any action violating the Owner's constraints is zeroed before execution.
- Rollback-First Exploration: During frustration (high chaos), praxes must include a rollback plan.
- Cascade Prevention: A background monitor injects synthetic stimuli if units approach extinction.
This implementation relies heavily on the Agentic Theory series:
- Tapiador GarcΓa, J. (2024). Agentic Theory: Definition of the Artificial Junky Neuron (AJN). WALLERMAX-AI 2604.00012.
- Tapiador GarcΓa, J. (2024). Agentic Theory II: The AJN and ANN-Ξ¨. WALLERMAX-AI 2604.00013.
- Tapiador GarcΓa, J. (2024). Agentic Theory III: Stimulus Tensor Propagation. WALLERMAX-AI 2604.00014.
See docs/references.bib for the full list of 46 references including Hebb, Sutton, Friston, and Vaswani.
Contributions are welcome! Please ensure all new features align with the mathematical definitions provided in the Agentic Theory preprints.
MIT License - See LICENSE for details.
Β© 2024 Based on Agentic Theory by Justo Tapiador GarcΓa (UA).