I didnāt build
orka-reasoningwith a final goal in mind. There was no pitch deck. No spec. No clean architectural blueprint.
Just a rough feeling.
That something was off in how we work with AI.
That most āagent frameworksā were just 𩹠prompt glue. And that actual cognition needed orchestration.
So I wrote a node. Then another. Then a very dumb orchestrator. And⦠things started to work. Not well. Not consistently. But honestly. The agents flowed. The memory kicked in. The logic started to feel... alive.
Every time I touched it, I went deeper.What started as a Redis-agent experiment spiraled into something more serious. I stopped steering and started following.
Like watching ants find their path.
š There Was No Plan. Just Emergence.
The fork node? Neat. The join node? Tricky.
But the loop node?
Thatās when it all clicked. It cracked the system open. Showed me what this really was:
Not a pipeline.
Not a workflow.
But a recursive, branching, self-aware cognition graph.
Suddenly agents werenāt just executors. They were perspectives. And the system wasnāt just sequencing them. It was reflecting on them.
š Revisiting
š§Ŗ Correcting
š§  Adapting
š In loop.
The first time I watched a loop agent self-correct mid-run, I froze. Thatās when I realized:
OrKa wasnāt a framework.
It was a substrate for reasoning.
š§± I Didnāt Architect This. I Discovered It.
When people ask what OrKa is, I still hesitate. Because I didnāt build it in the traditional sense.
I uncovered it.
- Buried in YAMLs.
- Hidden in Redis logs.
- Hinted at by every āwrongā decision that turned out to be essential.
It only started making sense after it started working. And ironically, the more I tried to modularize it, the more it came alive.
Cognition doesnāt care about modules.
It cares about feedback.
About loops.
š OrKa-Reasoning Wasnāt Supposed To Happen.
I had other things to do. Roadmaps. Deadlines. Real workā¢. But this rough idea wouldnāt let go.
What if AI flows werenāt linear? What if they were topologies? Stateful, revisitable, dynamically traversable maps?
And what if agents didnāt just executeā¦but chose their path, based on context, confidence, and memory?
So I built:
š§ a router node
š confidence-weighted routing
š loop detection
š§  scoped memory
š YAML-defined execution graphs
šŖµ full Redis/Kafka trace logging
Every āmessyā idea became core.
š« Final Scope? Still Donāt Have One.
Whereās OrKa going? No idea!
But hereās what I know now:
1 - Itās not about āchatbot agents.ā
2 - Itās about cognitive substrates.
Systems where reasoning is:
ā
 observable
š§  memory-aware
šæ branching
š recursive
𧬠and fundamentally emergent
- No black box.
- No UX sugar.
- No prompt chains.
Just raw, explainable cognition. And it all started with a dumb loop.
š What Makes OrKa Different?
Letās break it down technically:
š Execution Strategy:
Everything runs as a graph. You can fork paths, join them, or let routers decide.
š Confidence Weighting:
Each agent emits a probability distribution of where to go next.
š§  Memory Layers:
Scoped memory with TTL and decay. Inspired by cognitive architectures.
š§© Service Nodes:
Non-agent logic transformers (RAG, memory writers, embedding fetchers).
š ļø Observability:
Every run is logged in Redis Streams. Nothing happens without traceability.
š§ Router Agents:
They route based on output structure and score, not hardcoded rules.
This isnāt glue. This is infrastructure.
š¬ Realizations Along the Way
Each time I implemented something ugly, it turned out to be fundamental.
š« Forks without proper targets? Became dynamic fork groups.
š« Join logic breaking? Led to modular merging strategies.
š« Memory pollution? Pushed me to scope by node and TTL.
š« No clear loop closure? I wrote an execution clock.
None of this was planned. All of it emerged.
š£ļø Where Itās Going
Right now?
OrKa is becoming the cognitive kernel for something deeper:
š§  Language agent systems that arenāt chains
š Interpretable cognition maps
š Visual trace replays (via OrKaUI)
š Real-time looped reasoning with memory decay
š¤ Deployable YAML flows as reproducible logic graphs
Itās weird. Itās messy. It works.
š» Curious?
The evolving repo: ā https://github.com/marcosomma/orka-reasoning
 
 
              
 
    
Top comments (3)
This is such a cool idea š± and your breakdowns are both impressive and readable ā rare combo! Your repoās already on my stalk list š and if you ever need a rubber duck, Iāve got wall space and no shortage of opinions š
Really curious to see where this goes!
š Thanks! that means a lot. Iāve been building this mostly in the dark, so hearing itās readable and worth stalking is strangely validating š
Definitely might take you up on the duck offer. Opinions are gold when youāre knee-deep in cognitive graphs and wondering if youāre just reinventing spaghetti with extra steps. This thingās unfolding fast, not sure where it lands, but Iām following it wherever it goes.
Letās keep orbit. š§ š
Reach out any time! Happy to be a sounding board š