update-config

update-config is a skill for Claude Code, Codex from JustinThomas2/agentrc. It costs 67 tokens per session (599 once invoked), scanned B, original, MIT.

A procedure for changing agent settings, permissions, hooks and environment variables stored in a shared configuration repository.

In plain words
What is it for?
It is used to update settings files, permission rules, hooks and environment variables while following the repository's branching and review process.
Why use it?
It prevents configuration edits from being made in the wrong symlinked file or outside the required version-controlled workflow.

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/justinthomas2/agentrc/update-config
Any agent
npx skills add JustinThomas2/agentrc --skill update-config
Clone the repo
git clone --depth 1 https://github.com/JustinThomas2/agentrc

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 update-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/justinthomas2/agentrc/update-config.svg)](https://agentmods.dev/skills/justinthomas2/agentrc/update-config)
Your own site
<a href="https://agentmods.dev/skills/justinthomas2/agentrc/update-config"><img src="https://agentmods.dev/badge/skills/justinthomas2/agentrc/update-config.svg" alt="Measured on agentmods" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 599 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00067 $0.00599
Opus 5 $0.00034 $0.00300
Sonnet 5 $0.00013 $0.00120
Haiku 4.5 $0.00007 $0.00060

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

Security

Grade B, and why

update-config scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

like `~/.claude/settings.json` is a symlink into `~/agentrc/claude/`,
skills/update-config/SKILL.md · 45 lines

What it actually says

CHANGE = $ARGUMENTS - if that reads as a literal placeholder instead of a description, use the description I gave when invoking this skill. If I gave none, ask what config change I want before doing anything else.

Agent config on this machine is managed by the agentrc repo. What looks like ~/.claude/settings.json is a symlink into ~/agentrc/claude/, and the same goes for the other agent config files. Two consequences:

  • File-editing tools refuse to write through symlinks. Always resolve the real path first with readlink -f <file> and edit that (e.g. ~/agentrc/claude/settings.json).
  • A config edit is a repo change. It goes through the git workflow in AGENTS.md, never a silent in-place edit.

Your task

  1. Resolve the target. Run readlink -f on the config file to get its repo path. If the file is NOT a symlink into ~/agentrc, stop and ask whether it should be added to the repo first.
  2. Branch per AGENTS.md: switch to main (stash or commit unrelated WIP, never carry it along), pull, then branch off the fresh main.
  3. Make the edit in the repo file. Read the file first and merge with what is there; never regenerate the whole file.
  4. Permission rules must use forms the permission checker actually matches. File rules use Edit(path) - the Edit(...) form covers all file-editing tools (Edit, Write, NotebookEdit). Never write Write(path) rules; they are silently ignored and cause startup warnings.
  5. Validate JSON files with jq . <file>; if jq is missing on the machine, fall back to python3 -m json.tool <file>. For settings semantics (hook events, schema fields), defer to the harness's own bundled config documentation rather than guessing.
  6. Commit with a Conventional Commit message, then STOP. Show me the diff and wait - per AGENTS.md, never push or open a PR without my explicit go-ahead. New skill folders also need scripts/fetch-skills.sh re-run to link them; mention it when that applies.
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 · 45 lines · 67 tokens per session scan B 48cd44e0ea12

Subscribe to this mod's changes

update-config is a skill published in the GitHub repository JustinThomas2/agentrc (2 stars, last pushed 1mo ago), licensed MIT. It adds 67 tokens to every session and 599 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens