clio-cte-core

clio-cte-core is a skill for Claude Code from iowarp/clio-kit. It costs 146 tokens per session (4,570 once invoked), scanned A, original, BSD-3-Clause.

The core storage engine underneath a CLIO data chain. It stores named byte ranges inside named groups, places data across storage tiers, and provides operations such as reading, writing, deleting, and querying.

In plain words
What is it for?
It is for configuring or calling the persistent or volatile CLIO core from Python or C++.
Why use it?
It gives the other CLIO modules a common storage and task interface, while its metadata write-ahead log helps the system recover information after a restart.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the clio-core-skills plugin — 12 skills shipped together

Good fit It is for configuring or calling the persistent or volatile CLIO core from Python or C++.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iowarp/clio-kit/clio-cte-core
Install

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.

Any agent
npx skills add iowarp/clio-kit --skill clio-cte-core
Clone the repo
git clone --depth 1 https://github.com/iowarp/clio-kit

Made for: Claude Code.

Or install clio-core-skills, the plugin that ships this one along with the rest of its 12 skills.

Wrote 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.

agentmods badge for clio-cte-core

README.md
[![agentmods](https://agentmods.dev/badge/skills/iowarp/clio-kit/clio-cte-core/github.svg)](https://agentmods.dev/skills/iowarp/clio-kit/clio-cte-core)
Your own site
<a href="https://agentmods.dev/skills/iowarp/clio-kit/clio-cte-core"><img src="https://agentmods.dev/badge/skills/iowarp/clio-kit/clio-cte-core/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clio-cte-core

Your own site · 80×15
<a href="https://agentmods.dev/skills/iowarp/clio-kit/clio-cte-core"><img src="https://agentmods.dev/badge/skills/iowarp/clio-kit/clio-cte-core.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,570 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00146 $0.04570
Opus 5.5 $0.00058 $0.01828
Sonnet 5.5 $0.00029 $0.00914
Haiku 4.5 $0.00015 $0.00457

Measured 7d ago against content hash 494f1705a5b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clio-cte-core 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 7d ago.

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.

skills/clio-core-skills/skills/clio-cte-core/SKILL.md · 291 lines

How it starts

The opening of the file, as written. The whole thing — 291 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CTE core (clio_cte_core)

The core is the storage engine at the bottom of every Context Transfer Engine (CTE) chain. It stores blobs (named byte ranges) inside tags (named groups, like a bucket or a file) on targets (block-device pools, one per storage: entry). It places each blob by its score (0.0 slow to 1.0 fast), keeps a metadata write-ahead log (WAL) so a restart can find the bytes again, and executes every put, get, delete, query and reorganize. Caches, replication, the indexer, the compressor and the filesystem all speak the core's own task interface and end at a core. It costs one runtime container per node, the metadata tables in memory, and one bdev pool per tier.

Facts here were checked against clio-core dev at bd1dc3183 (2026-11-21).

Files in this skill

file read when
CONFIG.md writing or reviewing a core entry. Every key LoadConfig reads, types, defaults, constraints, environment variables.
API.md calling the core. C++ Client and Tag signatures, pool queries, return codes, the Python module clio_cte_core_ext, targeting another pool id.

Availability

item value
mod_name clio_cte_core
default pool ids 512.0 persistent core (kCtePoolId, pool name cte_main); 540.0 volatile core (pool name cte_volatile)
pip wheel yes: the runtime library, and the Python client clio_cte_core_ext
other installs conda, Spack, deb and Docker images ship it too. It is always built when CLIO_CORE_ENABLE_CTE=ON (the default)
C++ headers not in the wheel. C++ clients need a source, conda or Spack install

Concepts

  • Tag. A named container. Its id is (major, minor). A tag name hashes to the container that holds its name binding. A tag's size is split across the containers holding its blobs.
  • Blob. Addressed by (tag id, blob name). It has a list of blocks, each an extent on one target. It can span several targets.
  • Owner. Each blob has exactly one owner container, chosen by hash(tag, blob) over the containers. Every operation on that blob goes to the owner, which serializes its writes. There is no metadata server.
  • Target (tier). A bdev pool that the core created from a storage: entry, or an existing pool it attached (existing_pool_id). Each target has a score, a capacity and a persistence_level (volatile, temporary, long_term).
  • Score and placement. A new blob without a score gets 1.0. A put with score -1 keeps the blob's current score. The max_bw placement engine prefers the fastest target whose score is not above the blob's score, and spills to others when full. ReorganizeBlob sets a new score and moves the blob. The optional organizer rescans and rescores periodically.
  • Durability class. Each core is volatile or persistent (key durability). A persistent core refuses volatile devices (rc 16). A volatile core accepts persistent devices with a warning, writes no WAL and is empty after every start. Moving data between the two is the write-back cache's job (clio-cte-caches).
  • Metadata WAL and snapshot. Persistent core only, and only when performance.metadata_log_path is set. The WAL is sharded per worker (<path>.blob.<N>, <path>.tag.<N>), with one sequence number across the shards; replay merges them in sequence order. The snapshot is the file <path> itself, rebuilt when the WAL exceeds transaction_log_capacity (32 MiB) or at most once a minute when score changes are pending.
  • Droppable blobs. A put with flag kCtePutDroppable (0x2) marks the blob expendable. Only a droppable put may evict, and only droppable blobs are evicted to make room. The flag is fixed at creation: a later put without it is refused with rc 14.
  • Replica slots. A blob can hold extra block lists besides its primary. The core only stores them; modules above decide policy. REPLICA_PERSISTENT (0x2) slots never land on volatile tiers; REPLICA_CACHE (0x4) is the slot the cache module (563.0) fills with a node-local, untransformed copy, dropped under pressure and at restart. The replication module's num_replicas (extra same-node copies) and remote_copies use these slots; see clio-replication.
  • failover_to_successor. While a blob's owner node is dead, route its operations to the next live container, which serves the replication module's remote copy. Off by default: operations on a dead owner's blobs fail until it returns.
  • read_cache. Not a core key on dev. The core's parser ignores it silently. Use the write-back cache's fill policy or the cache module for read copies.

Read the full file on GitHub · 291 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 7d ago First seen · 291 lines · 146 tokens per session scan A 494f1705a5b4

Subscribe to this mod's changes

clio-cte-core is a skill published in the GitHub repository iowarp/clio-kit (35 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 146 tokens to every session and 4,570 once invoked, about $0.0006 per session on Opus 5.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-11-23.

Related

clio-cte-core compared with skills from other repositories

clio-cte-core next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
clio-cte-coreiowarp/clio-kitSkill35yesterdayBSD-3-ClauseA146Claude Code
requirement-alignmentbaixinghao/intent-gateSkill31mo agoMITA0Claude Code
bio-clinical-databases-myvariant-queriesPKU-YuanGroup/OpenAI4SSkill675todayMITA86Claude Code, Codex
agent-infinixuzhougeng/wisp-scienceSkill1.1k6d agoAGPL-3.0C65Claude Code, Codex
tencent-pg-inspectionTencentCloudCommunity/mcp-serverSkill344mo agoApache-2.0A68Claude Code, Codex
tencent-pg-ops-troubleshooterTencentCloudCommunity/mcp-serverSkill344mo agoApache-2.0A72Claude Code, Codex
tencent-pg-slowquery-diagnosisTencentCloudCommunity/mcp-serverSkill344mo agoApache-2.0A75Claude Code, Codex