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.
npx agentmods add commands/shakestzd/contextune/contextune-configgit clone --depth 1 https://github.com/shakestzd/contextuneWrote 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.
[](https://agentmods.dev/commands/shakestzd/contextune/contextune-config)<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>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.
| Model | Per session | Once 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 |
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.
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
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.
- 4d ago First seen · 239 lines · 13 tokens per session scan A 8bffdf9c82a3
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.
Other commands, from other repositories
opsx-bulk-apply
Apply multiple OpenSpec changes concurrently in isolated worktrees.
opsx-propose
Propose a new change - create it and generate all artifacts in one step.
opsx-apply
Implement tasks from an OpenSpec change (Experimental).
opsx-sync
Sync delta specs from a change to main specs.
opsx-archive
Archive a completed change in the experimental workflow.
opsx-verify
Verify implementation matches change artifacts before archiving.