Audience and prerequisites
Who this book is for
CognoKratos is written first for technically ambitious engineers who are interested in the frontier where AI agents, security, distributed systems, cryptography and economic infrastructure meet.
The early audience includes hackers, cypherpunks, crypto-native engineers, protocol engineers, security engineers, AI infrastructure engineers, distributed-systems engineers, open-source builders and technically sophisticated founders.
This book assumes that you are comfortable with engineering complexity and want to inspect the mechanisms underneath an autonomous system rather than consume a high-level product abstraction.
You are expected to know:
- HTTP, APIs and authentication (OIDC, sessions, API keys);
- relational databases, transactions, row locks and constraints;
- Docker and Docker Compose, service lifecycles and processes;
- testing, observability and the basics of distributed systems.
You do not need experience with any particular agent framework. Part I revisits agent loops, tool calling and MCP from an engineering angle, and the other parts link back to it instead of re-teaching them. But it moves quickly, and it assumes you have met these ideas before: how a program talks to a model, what tool or function calling is, what makes a program an agent, how an agent loop and simple orchestration work, and what "memory" and "context" mean for a model.
You also do not need to be a blockchain specialist to begin. The curriculum introduces cryptographic and decentralized infrastructure where it becomes relevant to the trust model. Part IV does assume basic cryptographic vocabulary, and future tracks may go much deeper into signing, settlement and smart contracts.
If you are new to agents
If those ideas are still new, learn them elsewhere first. Several excellent courses teach them, and CognoKratos makes much more sense afterwards. It starts where most of those tutorials stop: when execution, authority, failure and evidence begin to matter. If you can already build a small agent that calls a few tools, with any framework, you are ready for Part I.
Choose the path that matches the ecosystem you already work in. None of them is the "right" one: they teach the same fundamentals through different tools.
Broad, multi-framework path
Hugging Face Agents Course
The broadest starting point, and the one this book recommends when you have no
particular ecosystem in mind. It is free, teaches agent fundamentals, and shows
them in several frameworks (smolagents, LlamaIndex and LangGraph). Seeing one
idea in three frameworks helps separate concepts from any single
implementation, which is good preparation for this book's architecture-first
approach. The course is maintained by Hugging Face and uses Hugging Face
inference in its exercises by default; one framework unit uses an OpenAI model.
Ecosystem-focused paths
If you already work in one ecosystem, its own learning material may serve you better. These paths are just as valid.
- Microsoft-focused: AI Agents for Beginners
An eighteen-lesson open course (MIT licence) on agent design patterns, tool use, agentic RAG, planning, multi-agent systems, memory, protocols and security. Its current code samples use Microsoft Agent Framework with Microsoft Foundry, so it suits readers who build on that platform. - AWS-focused: Getting Started with Strands Agents
A hands-on learning path from AWS that starts by building a first agent with the open-source Strands Agents SDK, then adds model providers, tools and MCP, agent-to-agent communication and observability, and continues through memory and sessions, multi-agent patterns and deployment on Amazon Bedrock AgentCore. For a gentler start from the Bedrock API itself, Amazon Bedrock for Beginners goes from a first model call through tool use, retrieval and guardrails to a small Strands agent. - Anthropic-focused: Claude Academy
Anthropic's maintained learning platform for working with Claude. Its Claude Platform courses go from Claude Platform 101 to Building with the Claude API, which covers prompting, tool use, retrieval, agents, MCP and production patterns, with dedicated courses on the Model Context Protocol. For further reading, use the tool-use documentation, the Claude Cookbooks and the essay Building effective agents, which is worth reading whatever model you use. - OpenAI-focused: OpenAI Agents SDK
A small open-source framework, best learned with the agent topics of the OpenAI Cookbook. The SDK can drive other model providers. Its hosted tools, such as web and file search, and its default trace export rely on the OpenAI platform.
Whichever path you take, CognoKratos stays architecture-focused: the same boundaries apply whichever ecosystem you learned in. Where CognoKratos fits places these projects in the wider ecosystem.
What kind of learner will get the most from it
CognoKratos is a good fit if you prefer questions such as:
- What exactly can this agent cause?
- Where is authority enforced?
- What survives a crash?
- Which component owns the secret?
- What happens under replay, concurrency or compromise?
- Can this guarantee be proved with a test or reproduced in a lab?
- Can cryptographic verification replace a trusted intermediary here?
It is less useful if you primarily want a quick introduction to prompting, a hosted chatbot recipe, or one framework that hides the underlying systems concerns.
The curriculum is meant to be demanding without being intentionally obscure. Unfamiliar terminology is acceptable when the subject requires it; unexplained complexity is not.
Languages
The projects use different languages for deliberate reasons (Technology choices follow boundaries). To follow the code walkthroughs you should be comfortable reading:
| Part | You will read | You will run |
|---|---|---|
| I | Rust (Rig agent, gateway, MCP server), YAML, Python (evaluator) | Docker Compose stack, make targets |
| II | TypeScript (SvelteKit, LangGraph.js) | Node 24, Ollama, curl, sqlite3 |
| III | Rust (rules engine, MCP server), Python, JSON policy | cargo, python3; a Compose stack for live labs |
| IV | Rust (Axum, cryptography) | cargo; a local server for later labs |
| V | Elixir (Phoenix, Ash, AshAI) | Elixir/Erlang, PostgreSQL, mix, curl, jq |
Part IV assumes basic cryptographic vocabulary: hashes, MACs, symmetric encryption, key derivation functions and elliptic-curve keys. Part V does not assume Ash knowledge, but you should be able to read Elixir.
The variety is intentional. CognoKratos teaches trust boundaries and engineering judgment, not loyalty to one programming language or agent framework.
Two kinds of dependencies
Keep these apart:
- Reading the book needs a browser. Building the book yourself needs only Python 3.11 or newer,
gitand a pinned mdBook binary. See the repository's README. - Running a project's labs needs that project's own stack. Several of these are large: the Part I stack runs about ten services and wants roughly 8 GB of Docker memory. Others are small: most Part III and Part IV lessons need only
cargo. Each part's introduction summarises its requirements, and Setting up each track collects them.
Many lessons can be read without running anything. The labs are where the judgment comes from, though. Each one asks you to predict a result, break a guarantee and find the code that stopped you.
Learners can become contributors
CognoKratos is a living curriculum. You are not expected to remain a passive reader.
If your experience exposes a broken assumption, a missing threat, a better architecture, a useful experiment, or an entire competency the curriculum does not yet cover, that can become a contribution.
See A living curriculum and Corrections and contributions.
Model behaviour is observed, not guaranteed
Several labs quote what a particular local model (often qwen3:8b) did on one run. Your model may choose different tools or phrase things differently. The labs are designed so that the property under test, such as what is persisted, what is refused or what is recomputed, does not depend on the model.