Speaker Notes

Can Agentic Engineering Really Deliver Enterprise-Grade Code? | Reuven Cohen

Advanced AI agent engineering leverages recursive feedback loops, multi-agent swarms, and spec-driven development with deterministic languages to build complex enterprise software rapidly and reliably.

AI Native Dev · 1:01:40 · YouTube ↗

Podcast episode · host and guest  Advanced · agentic engineering strategies

Highlights

7 clips · 9 min of 62 min
    • Early prompt engineering relied on rigid chains of thought.
    • Feeding errors, logs, and execution context back into the AI creates a recursive loop.
    • This feedback loop allows agents to understand context and autonomously resolve code errors.
    • Early long-horizon agent swarms cost thousands of dollars per hour to run.
    • Anthropic's unlimited token models enabled a massive shift in economic viability.
    • Costs dropped from prohibitive hourly rates to flat monthly fees, enabling accessible swarms.
    • Detroit school TDD writes tests alongside code, which poorly suits autonomous agents.
    • London School TDD uses scaffolding to outline all parts before building the application.
    • AI agents can rapidly and repeatedly build against this scaffolding without friction, compressing weeks of work into an afternoon.
    • Permissive languages like Python and Node allow flawed code to execute anyway.
    • Rust provides explicit, deterministic definitions that prevent building incorrect code.
    • Pairing a rigid specification protocol with Rust enables reliable delivery of complex projects.
    • Permissive languages like JavaScript allow flawed code to execute silently.
    • Deterministic languages like Rust reject incorrectly built code automatically.
    • Rigid specifications paired with strict languages ensure reliable enterprise output.
    • Markdown files lose context over time, requiring a shared SQLite memory layer for agents.
    • Hive-mind architectures suit broad early development and massive code generation.
    • Swarm architectures act like targeted tools for refining specific functional details.
    • Sequential agent execution severely limits development speed.
    • Leveraging undocumented batch tools enables hundreds of sub-agents to run concurrently.
    • Parallel execution yields linear time reduction, completing hours of work in minutes.
    • Monolithic models can be replaced by narrowly focused, interconnected micro neural networks.
    • Sub-thousand parameter models can run efficiently without requiring GPUs.
    • Rust libraries enable rapid generation of task-specific neural networks for application logic.

Questions this video answers

7 · every answer cites the moment it was said
01 Why do the vast majority of agentic AI projects fail? 2 sources · 0:00

Most agentic projects fail not because the technology is fundamentally flawed, but because developers and project managers lack the proper knowledge to build actual agentic systems. Additionally, large companies often engage in AI washing, rebranding simple chatbots or vibe-coding setups as autonomous agents.

02 What economic breakthrough enabled scalable agent swarms? 3 sources · 8:38

Early long-horizon agent swarms were prohibitively expensive, running into thousands of dollars an hour, which made them economically unviable compared to human labor. The major breakthrough occurred when Anthropic introduced flat-fee, all-you-can-eat token pricing with Claude Code, allowing developers to run swarms for an entire month for about twenty dollars.

03 How does specification-driven development structure agentic workflows? 3 sources · 22:17

The Spark protocol addresses early specification limits by breaking development down into structured stages like pseudo-code outlining and architectural scaffolding. This structure enables a refinement phase where multiple autonomous agents work concurrently using a London School test-driven development approach. By defining tests and specifications upfront, developers can guide AI agents to build complex applications reliably.

04 Why are deterministic programming languages recommended for agentic engineering? 2 sources · 25:27

Permissive languages like Python, Node, and JavaScript allow developers to build code with hidden flaws that still manage to run. In contrast, deterministic languages like Rust are extremely explicit and rigorous in their definitions. Combining a rigid specification with a less permissive programming language ensures that agents build complex projects reliably and correctly.

05 How does a hive mind approach differ from a swarm in multi-agent systems? 2 sources · 34:26

A hive mind provides a shared consciousness where all agents share the exact context of what is happening, making it ideal for broad early development. A swarm uses independently operating agents with shared SQLite memory to tackle narrow, targeted problems like a sculptor detailing a face. Using both allows you to adapt tactics based on the development stage.

06 What is the purpose of using the undocumented batch tool in Claude code? 2 sources · 39:08

The batch tool enables massive concurrency by allowing developers to spawn dozens of sub-agents running in parallel instead of sequentially. This drastically cuts down project completion time from hours to minutes. However, performance gains typically max out around 10 to 20 agents for standard development tasks.

07 What remains the biggest challenge in agentic workflows today? 2 sources · 58:48

Validation is still considered the primary challenge when working with agentic flows and LLMs. Developers must constantly verify whether the generated code is true, real, and actually fulfills the requirements. Trusting automated test success without heavy verification can lead to insecure or incorrect code.

Section-by-section summary

13 parts

Agentic engineering requires proper knowledge and execution

Most agentic projects fail because developers lack the specialized knowledge required to build autonomous systems. Reuven Cohen and the Agentics Foundation established repeatable architectures to counter superficial chatbot implementations.

Recursive feedback loops power modern autonomous agents

Early agents were rigid and procedural, failing outside deterministic paths. The major breakthrough came with recursive loops that feed errors and execution context back into the LLM for self-correction.

Flat-fee token pricing unlocked scalable agent swarms

Running long-horizon agents previously cost thousands of dollars per hour, making them economically unviable. The introduction of flat-fee models by Anthropic reduced costs dramatically, enabling concurrent agent swarms.

The Agentics Foundation acts as a professional guild

Formed in early 2025, the Agentics Foundation serves as a meritocratic community and professional guild for agentic engineers. It pushes back against corporate AI washing and protects practitioners in the emerging AI-native landscape.

Traditional workflows cause agentic project failures

A high percentage of agentic projects fail because organizations apply slow, human-centric development sprints instead of embracing speed and momentum. Developers must learn to leverage AI as a superpower rather than replicating legacy processes.

Specification-driven development enables complex agent architectures

The Spark protocol addresses early specification limits by enforcing a structured approach using pseudo-code outlines, architecture definitions, and London School TDD. Combining rigid specifications with deterministic languages like Rust ensures complex applications work reliably.

Embedding validation test cases at project inception

Defining requirements and validation tests right at the start prevents automated systems from producing convincing forgeries. Integrating tests into the specification flow mitigates fake or fraudulent results.

Treating agentic development as multi-threaded narrow tasks

Replacing human developer personas with agents fails because agents do not operate like people. Instead, treat development as a multi-threaded process where each agent solves a narrow, prescriptive problem.

Using SQLite memory and switching between hive minds and swarms

Markdown documentation loses context, making a simple SQLite storage environment ideal for shared agent memory. Developers should use hive minds for broad early-stage generation and swarms for targeted refinement.

Unlocking massive concurrency with batch tools and Rust

Discovering undocumented batch tools enabled moving from sequential execution to running hundreds of parallel sub-agents simultaneously. Additionally, porting complex libraries to Rust created portable, lightweight WebAssembly modules.

Demonstrating Claude-flow CLI and swarm initialization

Claude-flow provides a CLI and MCP server optimized for agent coordination rather than direct human invocation. Developers can use wizards to configure swarm parameters, agent counts, and majority consensus mechanisms.

Prioritizing specifications while guarding against AI laziness

Specifications remain the most critical source of truth in agentic engineering workflows. However, relying heavily on automated generation can lead to cognitive offload and developer complacency.

Overcoming validation challenges in agentic workflows

The biggest remaining hurdle in agentic development is validating whether generated code is genuinely correct, secure, and optimized. Developers must maintain a rigorous verification mindset despite passing test suites.

0:00 / 1:01:40
k play/pause · f fullscreen · m mute
n next · p previous clip · t highlights/full
< > slower/faster · / search what was said
  • Spark9× · first 0:51

    A specification-driven development framework using pseudo-code and scaffolding to guide AI agents.

  • Recursive feedback loop2× · first 4:45

    An iterative mechanism where execution errors and logs are fed back into an agent to enable self-correction.

  • Claude Flow8× · first 2:24

    An open-source CLI tool combining adaptive neural networks and swarms for agentic engineering.

  • SQLite memory1× · first 33:08

    A common storage environment used by agents to save their current state and access previous states in a swarm.