loom-optimize

loom-optimize is a skill for Claude Code from hashgraph-online/awesome-codex-plugins. It costs 143 tokens per session (1,477 once invoked), scanned A, original, Apache-2.0.

A maintenance procedure for reorganising stored agent memories after an audit finds bad keys or recall problems. It moves records to new keys while keeping redirects so existing readers still work.

In plain words
What is it for?
It helps audit a memory namespace, move records to better keys, preserve old-key lookups, and respond to health warnings.
Why use it?
It fixes memory searches that miss, abstain, or return inconsistent results without breaking a running agent that still uses older keys.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit It helps audit a memory namespace, move records to better keys, preserve old-key lookups, and respond to health warnings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hashgraph-online/awesome-codex-plugins/loom-optimize
About the project

Awesome Codex Plugins is a curated catalogue and marketplace of installable plugins, skills, and related resources for OpenAI Codex and ChatGPT. It helps people find, create, validate, and submit extensions for Codex workflows across its app, command-line interface, and IDE extensions. The catalogue add-ons are the plugins, skills, agents, and hooks listed or supported by this project.

hashgraph-online/awesome-codex-plugins · 1,626 stars · on GitHub · hol.org

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 hashgraph-online/awesome-codex-plugins --skill loom-optimize
Clone the repo
git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins

Made for: Claude Code.

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 loom-optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/hashgraph-online/awesome-codex-plugins/loom-optimize/github.svg)](https://agentmods.dev/skills/hashgraph-online/awesome-codex-plugins/loom-optimize)
Your own site
<a href="https://agentmods.dev/skills/hashgraph-online/awesome-codex-plugins/loom-optimize"><img src="https://agentmods.dev/badge/skills/hashgraph-online/awesome-codex-plugins/loom-optimize/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 loom-optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/hashgraph-online/awesome-codex-plugins/loom-optimize"><img src="https://agentmods.dev/badge/skills/hashgraph-online/awesome-codex-plugins/loom-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,477 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.00143 $0.01477
Opus 5.5 $0.00057 $0.00591
Sonnet 5.5 $0.00029 $0.00295
Haiku 4.5 $0.00014 $0.00148

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

Security

Grade A, and why

loom-optimize 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 16d 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.

plugins/ClickHouse/loom/skills/loom-optimize/SKILL.md · 123 lines

How it starts

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

loom-optimize — rework a namespace from its audit, with redirects

Run by the owner's agent over its own namespace, after the data is there. The invariant: a writer never loses a key it still reads. Retiring old keys by hand is how a running writer breaks (found: false, a local fallback, two stores that disagree), so this skill moves rows and never deletes them.

Two ops do the work, both through loom_op unless your tool list shows them (HTTP /v1/<op> otherwise): namespace.audit says what is wrong; memory.move moves a row to a new key and leaves a redirect — memory.get(from_key) still answers with the old value plus canonical_key, follow=true serves the new row, and search and list show only the new one. keep_redirect defaults to true; never pass false (that tombstones the old key).

The store also asks for this skill by itself: a namespace_health block in context.pack at session start, and one line from the loom-namespace-health Stop hook at session end, each naming the critical finding codes. Either one is the cue to start at Step 1.

Step 1 — audit, and stop if there is nothing to do

namespace.audit {org, namespace, window_seconds: 604800, sample_limit: 5}

Show summary as one line (live_rows, live_bytes, version_bytes, unembedded_rows, gets / searches / sets, get_search_ratio) and the findings as a table: code | severity | count | share | bytes | remedy. If healthy is true and no finding is warning or critical, say so and stop — an info finding is a note for the writer, not a rework. A finding of kind system_state (telemetry_unavailable, index_backlog) is the deployment's state, never a rework: name it to the owner and leave it out of the plan.

Step 2 — write the plan, one section per finding

Map each finding code the audit returned to its remedy with the tables in reference.md beside this file (audit findings, and the three mentor hints that are data changes: documents_as_memories, checkpoints_as_memory, records_for_identities). Habit findings are writer changes: no data moves; list them for the owner as a checklist.

Read the full file on GitHub · 123 lines

Files

What ships with it

1 file 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. 16d ago Changed · -1 lines a2e01eb1425a
  2. 17d ago First seen · 124 lines · 143 tokens per session scan A 365bc44c61f6

Subscribe to this mod's changes

loom-optimize is a skill published in the GitHub repository hashgraph-online/awesome-codex-plugins (1,626 stars, last pushed 2d ago), licensed Apache-2.0. It adds 143 tokens to every session and 1,477 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-13.

Related

loom-optimize compared with skills from other repositories

loom-optimize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loom-optimizehashgraph-online/awesome-codex-pluginsSkill1.6k2d agoApache-2.0A143Claude Code
awesome-chatgpttaishi-i/awesome-ChatGPT-repositoriesSkill3.4kyesterdayCC0-1.0A79Claude Code
awesome-chatgpt-searchtaishi-i/awesome-ChatGPT-repositoriesSkill3.4kyesterdayCC0-1.0B63Claude Code, Codex
context-exclusionteaql/teaql-agent-kitSkill2.8k20d agoMITA41Claude Code
compressccplugins/awesome-claude-code-pluginsSkill1.0k3mo agoApache-2.0A104Claude Code
memorisejmylchreest/aideSkill19todayMITA18Claude Code
add-to-awesome-listhaoruilee/awesome-agent-native-servicesSkill476todaynoneA68Claude Code