wisdom-index

wisdom-index is a skill for Claude Code, Codex from Snowflake-Labs/cocoplus. It costs 21 tokens per session (453 once invoked), scanned A, original, MIT.

A CocoWisdom command that builds a local searchable index from saved JSONL session transcripts. JSONL is a text format that stores one JSON record per line.

In plain words
What is it for?
It helps index all sessions or only sessions from a named harness, and records counts, redactions, timing, and filtering details.
Why use it?
It makes earlier coding-agent sessions searchable, including sessions from before CocoWisdom was set up, while preserving the original transcripts and optionally hiding credentials in the index.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps index all sessions or only sessions from a named harness, and records counts, redactions, timing, and filtering details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/snowflake-labs/cocoplus/wisdom-index
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 Snowflake-Labs/cocoplus --skill wisdom-index
Clone the repo
git clone --depth 1 https://github.com/Snowflake-Labs/cocoplus

Made for: Claude Code, Codex.

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 wisdom-index

README.md
[![agentmods](https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/wisdom-index/github.svg)](https://agentmods.dev/skills/snowflake-labs/cocoplus/wisdom-index)
Your own site
<a href="https://agentmods.dev/skills/snowflake-labs/cocoplus/wisdom-index"><img src="https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/wisdom-index/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 wisdom-index

Your own site · 80×15
<a href="https://agentmods.dev/skills/snowflake-labs/cocoplus/wisdom-index"><img src="https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/wisdom-index.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 453 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.00021 $0.00453
Opus 5 $0.00010 $0.00227
Sonnet 5 $0.00004 $0.00091
Haiku 4.5 $0.00002 $0.00045

Measured 5d ago against content hash 51ce2c6f5168, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

wisdom-index 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 5d 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.

.cortex/skills/cocowisdom/wisdom-index.skill.md · 40 lines

What it actually says

Your objective is to implement $wisdom index [--harness <harness-name>].

Before proceeding, verify that .cocoplus/ exists. If not, output: "CocoPlus is not initialized. Run $pod init first." Then stop.

Build a searchable local index under .cocoplus/lifecycle/wisdom-index/ from session JSONL transcripts already on disk. This is retroactive: first run indexes all available sessions, including sessions predating CocoWisdom.

Procedure

  1. Read [wisdom] config from cocoplus.toml when present. Respect session_index_enabled, session_index_path, and redact_credentials_at_index.
  2. Use .cocoplus/lifecycle/sessions/ as the default session source.
  3. If --harness is supplied, index only matching harness sessions.
  4. Redact credential patterns before storing indexed text when redact_credentials_at_index is not explicitly false: API tokens, bearer tokens, password/key material, Snowflake connection strings, and credential-adjacent role, warehouse, or account names.
  5. Preserve raw JSONL transcripts unchanged.
  6. Write index metadata with session count, redaction count, indexed timestamp, and harness filter.

Exit Criteria

  • The index exists under .cocoplus/lifecycle/wisdom-index/.
  • Raw transcripts are not modified.
  • Indexed content is credential-redacted.
  • Re-running updates the index deterministically.

Anti-Rationalization

Shortcut / Temptation Why It Fails
Treat the skill as complete because the file exists Skill contracts must describe observable behavior and verification, not just command names.
Skip artifact and safety checks for a small command Small commands still mutate state or guide execution; preserve the same gates.
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. 5d ago First seen · 40 lines · 21 tokens per session scan A 51ce2c6f5168

Subscribe to this mod's changes

wisdom-index is a skill published in the GitHub repository Snowflake-Labs/cocoplus (720 stars, last pushed 6d ago), licensed MIT. It adds 21 tokens to every session and 453 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

knowledge_graph_skill

Skill for searching and evolving the SQLite-backed Knowledge Graph. Use this when you need structured fact/concept/link search across one or more teams, NPCs, or directory scopes. The Knowledge Graph (KG) is stored in the application's database (not YAML). It is scoped by (teamname, npcname, directorypath). Facts and…

NPC-Worldwide/npcpy · 474 tokens

postgres

Operate PostgreSQL instances safely: configuration review, index and query-plan analysis, vacuum and bloat management, WAL archiving and point-in-time recovery, replication and failover, extensions, major-version upgrades, and evidence-based diagnostics with the bundled read-only pgdiag script. Use when running or…

magnus919/agent-skills · 107 tokens

building-agents

Use when building or restructuring an LLM agent — provider adapter, tool calling, structured output, RAG, agent loop, eval gate, cost routing, tracing, MCP server — model-agnostic across OpenAI/Anthropic/Gemini/OSS so a model swap is a config change. NOT vector-store SQL alone (that is postgresdb) or service…

ericrisco/rsc-harness · 85 tokens

supabase

Use this skill when developing applications with Supabase, running the Supabase CLI, designing migrations and RLS policies, testing database behavior, generating client types, deploying the official self-hosted Docker stack, or administering its Postgres, Auth, Storage, Realtime, Functions, API gateway, backups…

magnus919/agent-skills · 94 tokens

build-feature-store

Build a feature store using Feast for centralized feature management, configure offline and online stores for batch and real-time serving, define feature views with transformations, and implement point-in-time correct joins for ML pipelines. Use when managing features for multiple ML models, ensuring training-serving…

pjt222/agent-almanac · 86 tokens

data-engineering

Design and operate data infrastructure — database operations (vector, relational, graph, time-series), ETL/ELT pipeline design (dbt patterns, incremental loading), SQL analytical patterns, data quality monitoring, schema migration, and storage infrastructure management. Do not use for statistical analysis or ML model…

magnus919/agent-skills · 64 tokens