ambient-context-tune-rules

ambient-context-tune-rules is a skill for Claude Code, Codex from dragthelake/ambient-context. It costs 58 tokens per session (466 once invoked), scanned A, original, MIT.

Instructions for reviewing and changing Ambient Context capture rules. Rules decide whether text from an app, website, or window is excluded, reduced to headings, kept in full, or routed to messages.

In plain words
What is it for?
Use it to inspect rules, find examples in the record, propose a small rule change as a diff, and apply it only after the user agrees.
Why use it?
It helps stop unwanted text from being captured or placed in the wrong record, while requiring approval before changes are applied.

Skill for Claude CodeCodex

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

Good fit Use it to inspect rules, find examples in the record, propose a small rule change as a diff, and apply it only after the user agrees.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dragthelake/ambient-context/ambient-context-tune-rules
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 dragthelake/ambient-context --skill ambient-context-tune-rules
Clone the repo
git clone --depth 1 https://github.com/dragthelake/ambient-context

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 ambient-context-tune-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/dragthelake/ambient-context/ambient-context-tune-rules/github.svg)](https://agentmods.dev/skills/dragthelake/ambient-context/ambient-context-tune-rules)
Your own site
<a href="https://agentmods.dev/skills/dragthelake/ambient-context/ambient-context-tune-rules"><img src="https://agentmods.dev/badge/skills/dragthelake/ambient-context/ambient-context-tune-rules/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 ambient-context-tune-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/dragthelake/ambient-context/ambient-context-tune-rules"><img src="https://agentmods.dev/badge/skills/dragthelake/ambient-context/ambient-context-tune-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 466 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.00058 $0.00466
Opus 5 $0.00029 $0.00233
Sonnet 5 $0.00012 $0.00093
Haiku 4.5 $0.00006 $0.00047

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

Security

Grade A, and why

ambient-context-tune-rules 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 2d 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.

skills/ambient-context-tune-rules/SKILL.md · 29 lines

What it actually says

Tune rules

Follow the ambient-context skill's conventions. This skill writes, so the app must be open; capture_status returning not_running means stop and say so.

A rule has a target (an app, a website or a window title) and an action: exclude (never keep), headings_only (keep the block heading, drop the body), full (keep everything, overriding a broader rule) or route_messages (send the block to the messages file). Every rule change is logged in the ledger with this client's name.

Steps

  1. list_rules first. Read the built-in rules as well as the user's; many requests are already covered, and built-ins cannot be weakened.
  2. Find the evidence. search_record for the app, site or phrase the user named, or read_day on the window they mean. Quote the heading, not the body.
  3. Draft the smallest change that does what they asked: one rule where one will do. Prefer editing an existing rule over adding a near-duplicate.
  4. Show the change as a diff: the rule before (or "none") and the rule after, with one line on what it will stop or move from the next snapshot on. Say that text already recorded is not changed.
  5. Wait for a yes. Then apply with add_rule, update_rule or remove_rule, one call per rule.
  6. Confirm in one line what was applied and that it is in today's ledger.

Do not

  • Apply anything before the user agrees, even a removal they asked for.
  • Add a rule from a single occurrence without saying it was one occurrence.
  • Change the prompt or config here; that is a different request.
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. 2d ago First seen · 29 lines · 58 tokens per session scan A 41bc563d5ac0

Subscribe to this mod's changes

ambient-context-tune-rules is a skill published in the GitHub repository dragthelake/ambient-context (165 stars, last pushed 3d ago), licensed MIT. It adds 58 tokens to every session and 466 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-09-07.

Related

Other skills, from other repositories

project-wiki

A system for creating and maintaining a project wiki: a set of organized documents that explain a software project's plans, rules, references, and progress.

GeminiLight/MindOS · 63 tokens

mindos-zh

A local knowledge-base assistant for storing and finding decisions, meeting notes, procedures, troubleshooting lessons, and preferences across conversations and coding agents. It works only with the MindOS knowledge base.

GeminiLight/MindOS · 490 tokens

mindos

MindOS: local knowledge assistant & shared KB. Keeps decisions, notes, SOPs, debugging lessons, research findings, preferences across sessions/agents. Core: save notes, search KB, organize files, run workflows, review, append CSV, hand off context, distill lessons. NOT for app source or paths outside KB. Triggers…

GeminiLight/MindOS · 136 tokens

mindos-max

MindOS: local knowledge assistant & global memory layer. Keeps decisions, notes, SOPs, debugging lessons, architecture choices, research findings, preferences, conversation summaries for all connected agents. PROACTIVE: (1) search MindOS first for past context, (2) offer to save after valuable work, (3) persist key…

GeminiLight/MindOS · 145 tokens

mindos

Operate a MindOS knowledge base: update notes, search, organize files, execute SOPs/workflows, retrospective, append CSV, cross-agent handoff, route unstructured input to the right files, distill experience, sync related docs. Use when the task targets files inside the user's MindOS KB (mindRoot). NOT for editing app…

GeminiLight/MindOS · 157 tokens

plugin-core-builtin-migration

A repeatable process for turning an optional MindOS renderer plugin into a built-in, always-available part of the application. It also covers moving old entry points while keeping existing data usable.

GeminiLight/MindOS · 86 tokens