contextune:config

contextune:config is a command for coding agents from shakestzd/contextune. It costs 13 tokens per session (1,259 once invoked), scanned A, original, MIT.

A command set for managing one YAML settings file shared by Contextune and HtmlGraph. It can create, display, and check the file.

In plain words
What is it for?
Use it to create default settings, inspect current values, and validate the shared configuration file.
Why use it?
It keeps settings for both tools in one place and helps catch invalid configuration before it causes problems.

Command

Part of the contextune plugin — 8 skills, 14 commands, 5 agents, 6 hooks, 1 MCP server shipped together

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 commands/shakestzd/contextune/contextune-config
Clone the repo
git clone --depth 1 https://github.com/shakestzd/contextune

Or install contextune, the plugin that ships this one along with the rest of its 8 skills, 14 commands, 5 agents, 6 hooks, 1 MCP server.

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 contextune:config

README.md
[![agentmods](https://agentmods.dev/badge/commands/shakestzd/contextune/contextune-config.svg)](https://agentmods.dev/commands/shakestzd/contextune/contextune-config)
Your own site
<a href="https://agentmods.dev/commands/shakestzd/contextune/contextune-config"><img src="https://agentmods.dev/badge/commands/shakestzd/contextune/contextune-config.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,259 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.00013 $0.01259
Opus 5 $0.00006 $0.00629
Sonnet 5 $0.00003 $0.00252
Haiku 4.5 $0.00001 $0.00126

Measured 4d ago against content hash 8bffdf9c82a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

contextune:config 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 4d 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.

commands/contextune-config.md · 239 lines

How it starts

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

Contextune Configuration Management

Manage the unified .contextune-config.yaml configuration file for both Contextune and HtmlGraph.

Commands

Initialize Configuration

Create a new default configuration file:

uv run python -c "
from lib.contextune_integration.config_loader import ConfigLoader
from pathlib import Path

loader = ConfigLoader()
config = loader.create_default()

print(f'✅ Created config: {loader.config_path}')
print(f'   Edit the file to customize settings')
"

Creates ~/.contextune-config.yaml with default values.

Show Current Configuration

Display the current configuration:

uv run python -c "
from lib.contextune_integration.config_loader import get_config
import yaml

config = get_config()
data = config.model_dump(mode='json')

print('Current Configuration:')
print('=' * 50)
print(yaml.dump(data, default_flow_style=False, sort_keys=False))
print('=' * 50)
print(f'Config file: {config.get_default_path()}')
"

Validate Configuration

Check if your configuration file is valid:

uv run python -c "
from lib.contextune_integration.config_loader import ConfigLoader

loader = ConfigLoader()
is_valid, errors = loader.validate()

if is_valid:
    print('✅ Configuration is valid')
else:
    print('❌ Configuration has errors:')
    for error in errors:
        print(f'   - {error}')
"

Reload Configuration

Reload configuration from disk (useful after manual edits):

uv run python -c "
from lib.contextune_integration.config_loader import reload_config

config = reload_config()
print('✅ Configuration reloaded')
print(f'   Integration enabled: {config.integration.enabled}')
print(f'   Auto-create tracks: {config.htmlgraph.tracking.auto_create_tracks}')
"

Configuration Structure

Contextune Section

contextune:
  intent_detection:
    keyword_threshold: 1.0        # Exact match for keywords
    model2vec_threshold: 0.85     # Model2Vec similarity
    semantic_threshold: 0.7       # Semantic Router confidence
    enable_haiku_analysis: true   # Enable Haiku interactive analysis

  parallel_execution:
    max_agents: 5                 # Maximum parallel agents
    default_model: haiku          # Default model (haiku|sonnet|opus)
    timeout_minutes: 30           # Execution timeout

  data_dir: ~/.claude/plugins/contextune/data  # Contextune data directory

Read the full file on GitHub · 239 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. 4d ago First seen · 239 lines · 13 tokens per session scan A 8bffdf9c82a3

Subscribe to this mod's changes

contextune:config is a command published in the GitHub repository shakestzd/contextune (5 stars, last pushed 8mo ago), licensed MIT. It adds 13 tokens to every session and 1,259 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-08-31.