settings

A settings manager for configuring the agent's memory storage, search behavior, citations, time-based relevance, and scheduled background tasks.

In plain words
What is it for?
It helps view or change settings such as built-in or QMD memory search, citation behavior, temporal decay, heartbeat timing, and nightly processing.
Why use it?
It avoids editing configuration files by hand and makes the agent's memory and search choices visible and adjustable.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/crisandrews/clawcode/settings
Any agent
npx skills add crisandrews/ClawCode --skill settings
Clone the repo
git clone --depth 1 https://github.com/crisandrews/ClawCode

Made for: Claude Code, Codex.

Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,699 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00058 $0.02699
Opus 5 $0.00029 $0.01350
Sonnet 5 $0.00012 $0.00540
Haiku 4.5 $0.00006 $0.00270

Measured yesterday against content hash e0b799517823, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

settings 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 yesterday.

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/settings/SKILL.md · 251 lines

How it starts

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

Agent Settings

View and modify the agent's configuration stored in agent-config.json.

Show current settings

If no argument given, read and display agent-config.json:

cat ${CLAUDE_PLUGIN_ROOT}/agent-config.json 2>/dev/null || echo '(no config — using defaults)'

Show defaults:

  • Memory backend: builtin (SQLite + FTS5 + BM25 + temporal decay + MMR)
  • Citations: auto
  • Temporal decay: enabled (half-life 30 days)
  • MMR: enabled (lambda 0.7)
  • Heartbeat: every 30 min, active hours 08:00-23:00
  • Dreaming: nightly at 3 AM

Available settings

Memory backend: builtin or qmd

builtin (default):

  • SQLite + FTS5 full-text search with BM25 ranking
  • Temporal decay for dated files (older = less relevant)
  • MMR diversity re-ranking
  • Works out of the box, no external tools needed

qmd (enhanced):

  • External tool by @tobi: https://github.com/tobi/qmd
  • Local embeddings via node-llama-cpp (no API keys needed)
  • Vector search with semantic understanding
  • Reranking for better result quality
  • Requires qmd binary installed

Setting up QMD

  1. Check if qmd is installed:

    qmd --version 2>/dev/null && echo "QMD available" || echo "QMD not found"
    
  2. If not installed, guide the user:

    Install QMD (local-first search tool, no API keys needed):
    
    bun install -g qmd
    # or download from https://github.com/tobi/qmd/releases
    
  3. Configure the backend: Write agent-config.json via Bash (NOT the Write tool — agent-config.json is on the always-on protected-paths list; direct Write is refused with exec-gate: write to protected path refused (workspace-agent-config)).

    Step 3a — Read current config with the Read tool: Read("agent-config.json"). If it doesn't exist, treat as {}.

    Step 3b — Merge in-memory in your reasoning: take the existing object, replace the memory key with the QMD block:

    {
      "memory": {
        "backend": "qmd",
        "citations": "auto",
        "qmd": {
          "searchMode": "vsearch",
          "includeDefaultMemory": true,
          "limits": { "maxResults": 6, "timeoutMs": 15000 }
        }
      }
    }
    

    Preserve every other top-level key from the existing config.

Read the full file on GitHub · 251 lines

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. yesterday First seen · 251 lines · 58 tokens per session scan A e0b799517823

Subscribe to this mod's changes

settings is a skill published in the GitHub repository crisandrews/ClawCode (62 stars, last pushed 2d ago), licensed MIT. It adds 58 tokens to every session and 2,699 once invoked, about $0.0003 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 skills, from other repositories

proof-checker

Rigorous mathematical proof verification and fixing workflow. Reads a LaTeX proof, identifies gaps via cross-model review (external reviewer backend, ultra reasoning), fixes each gap with full derivations, re-reviews, and generates an audit report. Use when user says "检查证明", "verify proof", "proof check", "审证明"…

wanshuiyin/Auto-claude-code-research-in-sleep · 87 tokens

citation-audit

Zero-context verification that every bibliographic entry in the paper is real, correctly attributed, and used in a context the cited paper actually supports — catching hallucinated authors, wrong years, fabricated venues, version mismatches, and wrong-context citations. Use when user says "审查引用", "check citations"…

wanshuiyin/Auto-claude-code-research-in-sleep · 86 tokens

idea-creator

Generate and rank research ideas given a broad direction. Use when user says "找idea", "brainstorm ideas", "generate research ideas", "what can we work on", or wants to explore a research area for publishable directions.

wanshuiyin/Auto-claude-code-research-in-sleep · 51 tokens

paper-illustration

Generate publication-quality AI illustrations for academic papers using Gemini image generation. Creates architecture diagrams, method illustrations with Claude-supervised iterative refinement loop. Use when user says "生成图表", "画架构图", "AI绘图", "paper illustration", "generate diagram", or needs visual figures for papers.

wanshuiyin/Auto-claude-code-research-in-sleep · 67 tokens

idea-discovery

Workflow 1: Full idea discovery pipeline to go from a broad research direction to validated, pilot-tested ideas. Use when user says "找idea全流程", "idea discovery pipeline", "从零开始找方向", or wants the complete idea exploration workflow.

wanshuiyin/Auto-claude-code-research-in-sleep · 56 tokens

paper-illustration-image2

Generate publication-quality academic illustrations through a local Codex app-server bridge that uses Codex native image generation. This is a separate experimental alternative to paper-illustration, intended for Claude Code users who want a GPT-image-style renderer without modifying the original skill.

wanshuiyin/Auto-claude-code-research-in-sleep · 59 tokens