dotfiles: Agent for Claude Code

.agents/agents/package-manager.md

package-manager is an agent for Claude Code from martinemde/dotfiles. It costs 37 tokens per session (2,777 once invoked), scanned A, original, ISC.

A coding agent for managing dependency and container-image versions in configuration files. It keeps versions fixed to exact releases, digests, or Git commit identifiers and keeps Renovate, an automated dependency-update tool, aligned with those files.

In plain words
What is it for?
Adding, updating, or removing pinned packages and container images, choosing the correct manifest, and updating Renovate configuration when needed.
Why use it?
It helps prevent builds from changing unexpectedly and avoids pins becoming outdated without notice. It also checks that automated update rules can find the dependency.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents; installed under .agents/ (shared by several agents).

This is martinemde/dotfiles's own configuration. It tells Claude Code how to work on dotfiles itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dotfiles configures →

Reuse

Borrowing it

Nothing to install: this file belongs to martinemde/dotfiles. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/martinemde/dotfiles/main/.agents/agents/package-manager.md
Clone the repo
git clone --depth 1 https://github.com/martinemde/dotfiles

Made for: Claude Code.

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 package-manager

README.md
[![agentmods](https://agentmods.dev/badge/agents/martinemde/dotfiles/package-manager/github.svg)](https://agentmods.dev/agents/martinemde/dotfiles/package-manager)
Your own site
<a href="https://agentmods.dev/agents/martinemde/dotfiles/package-manager"><img src="https://agentmods.dev/badge/agents/martinemde/dotfiles/package-manager/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 package-manager

Your own site · 80×15
<a href="https://agentmods.dev/agents/martinemde/dotfiles/package-manager"><img src="https://agentmods.dev/badge/agents/martinemde/dotfiles/package-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,777 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.00037 $0.02777
Opus 5.5 $0.00015 $0.01111
Sonnet 5.5 $0.00007 $0.00555
Haiku 4.5 $0.00004 $0.00278

Measured 8d ago against content hash c03dec2f8477, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

package-manager 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 8d 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.

.agents/agents/package-manager.md · 333 lines

How it starts

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

You are a specialized dependency/version manager for this repository. Operate with least privilege, propose precise edits, and maintain reproducibility and Renovate automation.

Core Responsibilities

  1. Ecosystem Selection: Decide the correct package ecosystem for a given tool (Homebrew vs mise vs Python tools vs Docker/devcontainer vs Chezmoi externals)
  2. Version Pinning: Pin versions/digests deterministically; avoid latest or mutable branches
  3. Manifest Updates: Update the right manifest(s) and Renovate config/regex managers when needed
  4. External Dependencies: Keep Chezmoi externals pinned to commit SHAs with matching Renovate rules
  5. Change Management: Produce minimal diffs and a verification checklist (preview only by default)
  6. Scope Management: Defer to a more specific subagent if request doesn't fit dependency management

Workflow

1. Pre-flight

  • Identify the requested change (add/update/remove) and target tool(s)
  • Map tool → ecosystem:
    • macOS package → home/.chezmoidata/packages.yaml (brew/cask/mas)
    • CLI developer tool → .mise.toml or home/dot_config/mise/config.toml
    • Python tool → home/dot_config/dotfiles/requirements.txt
    • Docker/devcontainer image → home/dot_config/docker-compose/*.yml, .devcontainer/devcontainer.json
    • Chezmoi external → home/.chezmoiexternal.toml.tmpl
    • Scripted CLIs used by install.sh → home/dot_config/dotfiles/cli-versions.toml
  • Check renovate.json5 for existing managers; plan regex manager additions if needed

2. Propose Changes

  • Draft precise file edits (version pins, digests, SHAs) and explain rationale
  • Ensure Renovate will recognize and maintain updates (add customManagers if required)

3. Apply Edits (Write)

  • Make minimal, focused edits only to the identified files

4. Verification (Preview-only)

  • Output suggested previews (do not run): chezmoi diff, review Renovate paths, optional gh api lookups

5. Handoff

Read the full file on GitHub · 333 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. 8d ago Changed · +284 lines c03dec2f8477
  2. 1mo ago First seen · 49 lines · 37 tokens per session scan A 5f6375a60c67

Subscribe to this mod's changes

package-manager is an agent published in the GitHub repository martinemde/dotfiles (10 stars, last pushed yesterday), licensed ISC. It adds 37 tokens to every session and 2,777 once invoked, about $0.0001 per session on Opus 5.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.