ai-iq: Instructions file for Claude Code

CLAUDE.md

ai-iq CLAUDE.md is an instructions file for Claude Code from kobie3717/ai-iq. It costs 370 tokens per session, scanned A, original, MIT.

A plugin that gives Claude Code persistent long-term memory through a command-line memory tool.

In plain words
What is it for?
Adding and searching memories, loading project context, tracking beliefs and predictions, and maintaining stored knowledge.
Why use it?
It lets sessions save and retrieve project knowledge, including learnings, beliefs, predictions, and session details.

Instructions file for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: mentions Claude Code.

This is kobie3717/ai-iq's own configuration. It tells Claude Code how to work on ai-iq itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-iq configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kobie3717/ai-iq. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kobie3717/ai-iq/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/kobie3717/ai-iq

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 ai-iq CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kobie3717/ai-iq/claude-md/github.svg)](https://agentmods.dev/instructions/kobie3717/ai-iq/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/kobie3717/ai-iq/claude-md"><img src="https://agentmods.dev/badge/instructions/kobie3717/ai-iq/claude-md/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 ai-iq CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kobie3717/ai-iq/claude-md"><img src="https://agentmods.dev/badge/instructions/kobie3717/ai-iq/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 370 This file is loaded in full into every session.
When invoked 370 The same file — it is already loaded in full.
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.00370 $0.00370
Opus 5 $0.00185 $0.00185
Sonnet 5 $0.00074 $0.00074
Haiku 4.5 $0.00037 $0.00037

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

Security

Grade A, and why

ai-iq CLAUDE.md 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 10d 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.

CLAUDE.md · 67 lines

What it actually says

AI-IQ Plugin

This plugin provides persistent long-term memory for Claude Code sessions.

Memory Commands

Use memory-tool for all memory operations:

# Add memories
memory-tool add learning "Redis needs network_mode: host" --project MyApp

# Search
memory-tool search "docker networking"

# Beliefs & predictions
memory-tool believe "TypeScript improves quality" --confidence 0.8
memory-tool predict "Auth flow reduces tickets 20%" --deadline 2026-05-01

# Focus (context loading)
memory-tool focus "project-name"       # Instant context brief
memory-tool focus "topic" --full       # Detailed view

# Maintenance
memory-tool next    # Smart suggestions
memory-tool dream   # AI consolidation
memory-tool stats   # Show statistics

Auto-Capture

The plugin automatically:

  • Captures failed Bash commands as error memories (PostToolUse hook)
  • Generates session snapshots on Stop
  • Logs tool usage patterns

Skills

See /skills/memory/SKILL.md for complete documentation on:

  • Memory categories and priorities
  • Search strategies
  • Knowledge graph usage
  • Belief and prediction tracking
  • Memory maintenance

Python API

For programmatic access:

from ai_iq import Memory

memory = Memory()
memory.add("User prefers dark mode", category="preference")
results = memory.search("dark mode")

Storage

Memories are stored in ~/.ai-iq/memories.db (single SQLite file).

Documentation

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. 10d ago First seen · 67 lines · 370 tokens per session scan A 6838e0c7e8a1

Subscribe to this mod's changes

ai-iq CLAUDE.md is an instructions file published in the GitHub repository kobie3717/ai-iq (18 stars, last pushed 2mo ago), licensed MIT. It adds 370 tokens to every session, about $0.0019 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.

Related

Other instructions, from other repositories