Orka-Reasoning
marcosomma

marcosomma @marcosomma

About: I'm Marco Somma, a cognitive systems architect, technologist, and builder of modular reasoning tools. I’m the creator of OrKa – an open framework for orchestrating explainable AI agents.

Location:
Barcelona, Spain
Joined:
Apr 18, 2025

Orka-Reasoning

Publish Date: Jul 24 '25
43 10

This is a submission for the Redis AI Challenge: Real-Time AI Innovators.

What I Built

I built OrKa (Orchestrator Kit Agents), a modular cognitive architecture that executes YAML-defined reasoning flows using AI agents. Think execution graphs for intelligence: not chatbot logic, but dynamic, stateful, traceable cognition.

OrKa uses Redis as its spine—not just for storage, but as a realtime substrate for multi-agent orchestration, memory routing, and trace replay.

Every AI step is deterministic, observable, and replayable because Redis is not an afterthought—it’s the execution backbone.

Demo

Local UI: https://hub.docker.com/r/marcosomma/orka-ui

SDK: [https://github.com/marcosomma/orka-reasoning]

How I Used Redis 8

OrKa leverages Redis 8 beyond caching in several core ways:

1. Redis Streams

Every agent execution is logged as a JSON object into Redis Streams. This enables:

  • Full replay of execution trace
  • Reproducible reasoning
  • Cross-agent flow introspection
  • Time-stamped event logging for each decision

Example:

XADD orka:trace * agent_id agent_1 input "What's 2+2?" output "4" timestamp 1723...
Enter fullscreen mode Exit fullscreen mode

2. Redis as a Coordinated Queue

The orchestrator assigns tasks to agents via Redis Lists (acting as a pub-sub compatible queue system). Agents pull from their specific queues, enabling distributed, scalable execution. Redis here acts as the cognitive message bus.

3. Hash Maps for Scoped Memory

Scoped and ephemeral memory is handled using Redis Hashes, letting agents persist intermediate data accessible across the flow:

HSET orka:memory:session123 agent_1_output "42"
Enter fullscreen mode Exit fullscreen mode

This supports multi-turn, memory-aware reasoning without relying on external databases.

4. Multi-Tenant Isolation via Namespacing

Redis keys are namespaced per session, tenant, and orchestrator instance. This allows OrKa to run multiple cognitive flows in parallel without collisions, and without touching a traditional RDBMS.

5. Planned Use of Redis Gears

Future versions of OrKa will incorporate Redis Gears to run computation (e.g., scoring or summarizing) directly at the data layer—eliminating latency from roundtrip Python execution.


Redis 8 isn’t just storage in OrKa. It is the nervous system.

Comments 10 total

  • Prema Ananda
    Prema AnandaJul 24, 2025

    Demo
    Live UI: orka-ui.web.app

    Site Not Found

  • Jim Parson
    Jim ParsonJul 28, 2025

    Next-gen orchestration

    • marcosomma
      marcosommaJul 28, 2025

      That would be great!
      But for now I'm fine proposing an alternative to current flat world orchestrators.
      Orka is still being a solo project (speaking collaboration) with a really complex ontology behind. But cognition is a complex matter and will take a bit more of normal AI hype to get audience...
      Thanks for the comment I really appreciate it!

  • thesubway surfer
    thesubway surferJul 29, 2025

    This is next-level work! Using Redis as the core for deterministic, traceable AI reasoning is genius. Love the YAML flow design and real-time orchestration—Orka is seriously impressive. 🚀

  • Abhi
    AbhiJul 29, 2025

    This looks interesting and looks like full fledged sdk/app. How were you able to build it within such a short time?

    • marcosomma
      marcosommaJul 30, 2025

      Hahah thanks!
      @better-boy it toke me 4 months and honestly I was not having an end goal. It start as a side project to then become something interesting to see and to explore. So as you can image tech wise is a sort of Frankenstein. But works! I will spend next week's in massive refactoring 😅😅
      About the speed was mostly experience (15y dev) and AI companion.

Add comment