Cognitive Flow Oriented · Local-first AI

The open-source language where agents become architecture.

Stop chaining prompts. Start engineering systems. Axon gives you a runtime, a memory model, and a flow language. Process data locally, build focused context, and put models to work where they add value.

Cognitive flows Native functions Open source
Active provider Ollama · local More providers on the roadmap
research_pipeline.axon
Runtime
Fetch→ Analyst→ Summary
✓ 55/55
Release checks
55/ 55
Runtime
C++17
Paradigm
CognitiveFlow
Memory interfaces
5explicit memory interfaces

Paradigm shift

Programming has always evolved toward a higher level of abstraction.

Each era solved the problem of its time. Axon solves the one of this era.

1950s
Assembly
"Talk to the hardware"
Every instruction was a direct command to the processor. Powerful. Fragile. Specialists only.
1970s
C
"Talk to memory"
Pointers, stack, heap. The programmer controls where each piece of data lives and when it dies.
1990s
Java
"Talk to objects"
Memory gets abstracted. The focus shifts to modeling the world as entities and relationships.
2000s
Python
"Talk to libraries"
Objects get abstracted. The focus shifts to composing existing functionality, not building it.
2020s
LLMs
"Talk to prompts"
Natural language becomes the interface. Powerful — but without structure, without contracts, without a runtime.
Now
Axon
"Coordinate intelligence."
This isn't a syntax change. Actors have state, contracts and a lifecycle. The runtime orchestrates execution the way an operating system would.
Runtime available

Runtime

An operating system for intelligence.

Axon doesn't run on top of another language. It has its own runtime compiled in C++17 — with a thread scheduler, an execution graph with cycle detection, and a finite state machine per actor.

Each actor moves through well-defined states. Execution budgets and failures stay visible. Combine task contracts with explicit error handling to decide how your application should recover.

Actor lifecycle — Finite State Machine
IDLE→ RUNNING→ SUCCESS/ FAILED/ FLAGGED

What an operating system does for processes, Axon does for actors: lifecycle, memory, communication and concurrency — managed by the runtime, not written by hand.

Build locally. Coordinate clearly. Grow deliberately.

Powered by the Axon Runtime

Philosophy

Principles that don't change with versions.

Most frameworks evolve by changing their foundations. Axon will evolve by expanding them.

01
Declarative where it matters, imperative where you need it
Actors, task inputs and execution budgets are contracts you declare. The orchestration logic in main {} is code you write. Both live in the same file. Neither gets in the way of the other.
02
Explicit over implicit
Inputs, memory access, failure handling and compute options stay visible in code. Pass data deliberately, handle errors explicitly, and keep model calls separate from local processing.
03
Native runtime, local computation
The runtime is compiled in C++17. Native execution, a real worker pool, HTTP and SQLite handle local work. Bring in external Python when its libraries are useful, with explicit inputs and typed results.
04
Flows, no scripts
An Axon project has real structure: a single entry point, declared actors, logic in main. It's not a notebook. It's not a prompt chain held together with string concatenation. It's engineering.
05
Design for growth
Separate orchestration, data preparation and model work from the start. Compose focused agents and reusable functions today. Richer multi-flow ownership and distributed execution are part of the roadmap.
06
Built in public
Open source, executable examples and a visible roadmap. Explore the runtime, contribute a focused improvement, or help shape the next integration through public discussion.

Universal Computational Graph

From an initial flow to a coordinated result.

Every node has a role and an explicit connection.
Define inputs, call agents and tasks, and compose results through functions and pipelines.
The visualization shows the broader graph model guiding Axon’s evolution.

Memory System

memory_example.axon

      

Five memory types. One syntax.

Choose named key-value scopes for working context and persistence, or use semantic retrieval to find relevant text. Access is explicit; your application decides what to retain and what to send to a model.

R
runtimenamed scope · in memory
Keep temporary values in an in-memory scope. Store and retrieve them by key, with an optional TTL for time-limited context.
S
sessionnamed session scope
Group session context under an explicit scope. Reuse intermediate results through named keys and manage their lifetime in application code.
SH
sharedshared runtime workspace
Coordinate intermediate values through a shared key-value workspace within the runtime. Explicit keys and scopes make the exchange visible.
P
persistentexplicit persist / load
Retain string-based key-value context across runs with explicit persist and load calls. Optional TTL helps bound how long stored context remains useful.
SE
semanticHNSW · Ollama embeddings
Search text by meaning using a native HNSW index and embeddings from Ollama. Save and load the index explicitly to reuse a knowledge collection.

Parallel Runtime

parallel {} is not a promise.
It's a thread pool.

When you write parallel {} in Axon, the C++17 scheduler runs independent branches on a bounded worker pool. Functions, HTTP requests, data processing and agent calls can share the same orchestration.

Independent branches run on native workers with isolated variable snapshots. Results join in source order; an unhandled failure cancels sibling work. Actual throughput depends on worker limits, native operations and the model backend.

Inside a parallel {} block you can prepare independent pieces of context before joining them for a model. Local filtering and aggregation can reduce how much raw data needs to become tokens.

C++17
Thread pool
0
GIL overhead
N
Real Cores
Thread pool · Illustrative worker activity
parallel_example.axon

    


core 0
Researcher
72%
core 1
Validator
85%
core 2
Reviewer
60%
core 3
idle
30%

Compute

compute_config.axon

      
CPU
Native thread pool
C++17 · no runtime GIL · bounded native workers
GPU
Ollama-backed inference
GPU / CPU availability depends on the model backend

Your hardware. Your rules. Focused compute.

Keep data preparation on local CPU workers and configure model inference per agent. Axon passes compute options to Ollama; the model, backend and available hardware determine how those requests execute.

Adaptive by design
Use compute = auto for a GPU-oriented request or compute = cpu to request CPU inference. Keep hardware choices close to the agent that needs them.
Per-agent granularity
Give agents different models, context sizes and inference options. Request GPU layers with num_gpu, or CPU inference with compute = cpu and a thread setting such as num_thread = 4.
Explicit failure control
Model failures surface as catchable errors. Combine try/catch with execution budgets and an explicit recovery path instead of treating a failed request as a generated answer.
VRAM-aware configuration
Tune num_ctx, num_batch and GPU-layer requests to fit the workload. Additional backend options such as f16_kv are passed to Ollama; actual support and memory use depend on its model backend.

Transport Layer

Interconnect machines, environments and clouds.

Use HTTP/HTTPS to connect local tools and remote APIs today. Dedicated gRPC, MCP and distributed transports extend the longer-term design, while local data processing keeps control of what reaches a model.

RESTavailable
GET, POST and JSON calls with verified TLS, typed responses, limits and execution budgets. Connect APIs and prepare their data locally.
http->get(url, options) · http->json(response)
gRPC + MCPplanned
Planned dedicated integrations for service communication and model-tool interoperability, with explicit lifecycle, cancellation and authentication contracts.
Service protocols · model-tool connections
API Providersplanned
Ollama is integrated today. Additional dedicated adapters for OpenAI, Anthropic, Cohere and others are planned; custom REST calls can use the HTTP module.
Dedicated adapters · custom HTTP integration
Distributed Meshresearch
A longer-term design for coordinating runtime nodes across machines, with transport security, discovery and failure handling as explicit research tracks.
Discovery · secure transport · coordination

Consensus in design · discuss

What if the system could reach a conclusion on its own?

Consensus explores how multiple actors could debate a decision with distinct context and recorded evidence. The proposed design investigates how past outcomes might inform a traceable collective result.

The goal is more than a "yes" or a "no": a record of positions, supporting evidence and dissent. The simulation illustrates that direction while the module remains in design.

Collective intelligence with full traceability. Not a black box — a panel with minutes.

Use cases: evaluate whether to ship a feature · audit code from multiple perspectives · validate strategy with specialized actors · hiring decisions · risk analysis

Discuss the design →
Consensus · simulationin design
Discussion topic
"Is the distributed mesh proposal ready for a first implementation?"
Discussion
ArchitectYes — the runtime foundation supports it0.91
QA LeadNo — insufficient test coverage0.88
ProductYes — roadmap demand0.62
SecurityNo — encryption without audit0.55
Result
Proposed consensus
Delay launch — prioritize test coverage and encryption audit.
Illustrative result: reviewers disagree on readiness. A proposed decision policy would preserve their arguments and flag unresolved testing and security questions for review.
dissenters: Architect, Product · illustrative decision record

Working in Progress

What already works, and what's left to build.

A working runtime today, with a public path toward richer data, tool and distributed integrations.

Implemented+20 features
✓
Core language, functions and importsTyped values · control flow · closures · relative imports
✓
Native parallelism and execution budgetsWorker pool · snapshots · cancellation · deadlines
✓
HTTP/HTTPS and native SQLiteTyped responses · bound SQL · transactions · flow database aliases
✓
File and document toolsCSV / JSON / text · PDF / Office / OCR integrations
✓
Named memory and semantic retrievalExplicit key-value scopes · persist/load · HNSW + Ollama embeddings
✓
Python and shell interoperabilityExplicit Python inputs/return · fresh processes · shell result envelopes
✓
Ollama agents and task chainingPer-agent model options · three call forms · input/output references
✓
Controlled failures and release validationCatchable errors · contextual diagnostics · executable examples
Planned · in design5 tracks
◐
Additional providers, gRPC and MCPDedicated adapters and model-tool protocols
◐
Web scraping and more data driversHTML parsing · DuckDB, then PostgreSQL · separate MongoDB adapter
◐
Context pipelines and model learningRetrieval/RAG evaluation · fine-tuning and export
○
Consensus modulePublic design discussion · evidence and decision policies
○
Distributed meshNode discovery · secure transport · long-term research
Runtime available · roadmap expanding
GitHub
Source code, open issues and RFCs in discussion. Development happens here, in public.
View the repository →
Design · Consensus
Help shape the proposed Consensus module: decision evidence, disagreement and traceable outcomes.
Discuss the design →
Discussions
Questions, projects in progress, feedback on the language — the community building with Axon.
Join the discussion →