aidevops: Command for Claude Code

.agents/scripts/commands/optimise-linux-indexing-backups.md

optimise-linux-indexing-backups is a command for Claude Code from marcusquinn/aidevops. It costs 10 tokens per session (235 once invoked), scanned A, original, MIT.

A Linux audit and configuration command for excluding selected paths from indexing and backup scans.

In plain words
What is it for?
Reviewing indexing and backup recommendations, exporting them as JSON, applying safe exclusions, and checking run status.
Why use it?
It helps identify unnecessary scanning of frequently changing files and can produce exclusions for backup tools.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: agent in frontmatter; mentions subagents; installed under .agents/ (shared by several agents).

This is marcusquinn/aidevops's own configuration. It tells Claude Code how to work on aidevops 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 aidevops configures →

Part of the aidevops plugin — 13 skills, 128 commands shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to marcusquinn/aidevops. 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/marcusquinn/aidevops/main/.agents/scripts/commands/optimise-linux-indexing-backups.md
Clone the repo
git clone --depth 1 https://github.com/marcusquinn/aidevops

Made for: Claude Code.

Or install aidevops, the plugin that ships this one along with the rest of its 13 skills, 128 commands.

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 optimise-linux-indexing-backups

README.md
[![agentmods](https://agentmods.dev/badge/commands/marcusquinn/aidevops/optimise-linux-indexing-backups.svg)](https://agentmods.dev/commands/marcusquinn/aidevops/optimise-linux-indexing-backups)
Your own site
<a href="https://agentmods.dev/commands/marcusquinn/aidevops/optimise-linux-indexing-backups"><img src="https://agentmods.dev/badge/commands/marcusquinn/aidevops/optimise-linux-indexing-backups.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 235 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00010 $0.00235
Opus 5 $0.00005 $0.00118
Sonnet 5 $0.00002 $0.00047
Haiku 4.5 $0.00001 $0.00023

Measured 4d ago against content hash 57d4ca248c62, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

optimise-linux-indexing-backups scanned grade A 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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Default mode never requires sudo and does not rewrite unknown backup jobs. Use the generated exclude file from `--apply` in restic, borg, kopia, duplicity, rsnapshot, rclone, or other backup tooling as appropriate.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.agents/scripts/commands/optimise-linux-indexing-backups.md · 24 lines

What it actually says

~/.aidevops/agents/scripts/optimise-indexing-backups-helper.sh linux scan $ARGUMENTS

Modes

Invocation Result
/optimise-linux-indexing-backups Dry-run audit of local indexers, backup tools, and high-churn paths
/optimise-linux-indexing-backups --json Emit machine-readable recommendations
/optimise-linux-indexing-backups --apply Write a reusable exclude file under ~/.aidevops/configs/
/optimise-linux-indexing-backups status Show last successful run and reminder state

Default mode never requires sudo and does not rewrite unknown backup jobs. Use the generated exclude file from --apply in restic, borg, kopia, duplicity, rsnapshot, rclone, or other backup tooling as appropriate.

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 · 24 lines · 10 tokens per session scan A 57d4ca248c62

Subscribe to this mod's changes

optimise-linux-indexing-backups is a command published in the GitHub repository marcusquinn/aidevops (392 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 235 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.