Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/yaalalabs/agent-kernel/ak-dev-architecturenpx skills add yaalalabs/agent-kernel --skill ak-dev-architecturegit clone --depth 1 https://github.com/yaalalabs/agent-kernelWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-dev-architecture)<a href="https://agentmods.dev/skills/yaalalabs/agent-kernel/ak-dev-architecture"><img src="https://agentmods.dev/badge/skills/yaalalabs/agent-kernel/ak-dev-architecture.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00223 | $0.24752 |
| Opus 5 | $0.00112 | $0.12376 |
| Sonnet 5 | $0.00045 | $0.04950 |
| Haiku 4.5 | $0.00022 | $0.02475 |
Grade A, and why
ak-dev-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 1,047 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Kernel Architecture
Design Principles
- Framework-agnostic core: All core abstractions (
Session,Agent,Tool,Runner,Module,Runtime) are framework-independent. Framework-specific logic lives exclusively in adapter modules underak-py/src/agentkernel/framework/. - Adapter pattern: Each supported agent framework (OpenAI Agents SDK, CrewAI, LangGraph, Google ADK, Smolagents, and Pydantic AI) implements
Agent,Tool,Runner, andModulesubclasses that wrap native framework objects. - Config-driven behavior: All runtime behavior is governed by
AKConfig(Pydantic-based), loaded from YAML/JSON files and environment variables (AK_prefix,__for nesting). - Session lifecycle: Sessions are async context managers providing concurrency-safe state management. Session stores are pluggable (in-memory, Redis, Valkey, DynamoDB, Cosmos DB, Firestore). Session stores also provide the WebSocket gateway's
WSConnectionStoreon their backend viaSessionStore.get_connection_store()(spec #495 §9): the ABC lives besideSessionStoreincore/session/base.py, and each store file carries (or explicitly declines) its implementation, encapsulating its database operations over the shared drivers:InMemoryWSConnectionStore(in_memory.py, process-wide class-level state),RedisLikeWSConnectionStore(core/session/redis_like.py, client-library-agnostic; constructed by the redis/valkey stores with their own drivers),DynamoDBWSConnectionStore(dynamodb.py, over an existing table named bysession.connection_store.table_name, same schema as the AWS adapters' connections table); cosmosdb/firestore raise actionably, as does the base default (so pre-method BYO stores keep working until a WS mode is enabled). Kafka's retry/dedup bookkeeping keeps its own session-type factory inpipeline/transport/bookkeeping.py(Q5). - Plugin architecture: Tools, hooks, guardrails, tracing providers, session stores, knowledge base backends, sandbox providers, and messaging integrations are all pluggable via well-defined interfaces. Backend-selection factories (guardrail, trace, session/thread/multimodal stores, sandbox provider) share one shape via
core/util/factory.py(resolve_dotted,require_extra,AKConfigError): built-ins resolved byif/elif+ real imports, with a dotted-path "bring your own" branch on every surface. - Minimal coupling: Integrations (Slack, WhatsApp, etc.), deployment adapters (AWS Lambda, Azure Functions, Google Cloud Run), and API layers (REST, MCP, A2A) depend on the core but the core never depends on them. The queue pipeline (
pipeline/) imports onlycoreandapi;deployment/importspipeline; modules relocated intopipeline/leave re-export shims at their old paths that must preserve existing patch targets (see the Queue Execution Pipeline section). - Queue-pipeline execution (#495): chat execution on server surfaces runs through one five-component pipeline: Request Handler → Input Queue → Agent Runner → Output Queue → Response Handler: with the queue transport (
execution.queues.type:in_memorydefault,sqs,kafka,nats) and process topology selected by configuration.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +17 lines 6a8551296f0a
- 4d ago First seen · 1,030 lines · 223 tokens per session scan A 8c43eaa7c9b5
ak-dev-architecture is a skill published in the GitHub repository yaalalabs/agent-kernel (166 stars, last pushed today), licensed Apache-2.0. It adds 223 tokens to every session and 24,752 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
notion
Notion workspace integration for searching pages, managing databases, creating postmortems, and exporting RCA findings.
datadog
Datadog monitoring integration for querying logs, metrics, monitors, events, traces, hosts, and incidents during RCA investigations.
scaleway
Scaleway cloud integration for managing instances, Kapsule Kubernetes clusters, object storage, and managed databases via CLI and Terraform.
bitbucket
Bitbucket code repository integration for managing repos, branches, PRs, issues, and CI/CD pipelines.
cloudbees
CloudBees CI integration for investigating builds, deployments, pipeline stages, and test results during RCA.
cloudflare
Cloudflare integration for DNS, CDN, WAF, edge diagnostics, and remediation with zone management, analytics, security events, and cache control.