fossil-provider-performance

fossil-provider-performance is a skill for Claude Code, Codex from BrentFarris/echo. It costs 50 tokens per session (918 once invoked), scanned A, original, MIT.

A set of internal rules for keeping a Fossil source-control provider responsive. Fossil is a version-control system, similar to Git, and these rules describe how it checks file changes and refreshes status.

In plain words
What is it for?
It is for implementing or maintaining Fossil checkout status, change detection, caching, and frontend status updates.
Why use it?
It prevents slow interactive requests and missed edits by requiring the right change checks and using cached, background updates.

Skill for Claude CodeCodex

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

Good fit It is for implementing or maintaining Fossil checkout status, change detection, caching, and frontend status updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/brentfarris/echo/fossil-provider-performance
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 BrentFarris/echo --skill fossil-provider-performance
Clone the repo
git clone --depth 1 https://github.com/BrentFarris/echo

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 fossil-provider-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/brentfarris/echo/fossil-provider-performance/github.svg)](https://agentmods.dev/skills/brentfarris/echo/fossil-provider-performance)
Your own site
<a href="https://agentmods.dev/skills/brentfarris/echo/fossil-provider-performance"><img src="https://agentmods.dev/badge/skills/brentfarris/echo/fossil-provider-performance/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 fossil-provider-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/brentfarris/echo/fossil-provider-performance"><img src="https://agentmods.dev/badge/skills/brentfarris/echo/fossil-provider-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 918 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.00050 $0.00918
Opus 5.5 $0.00020 $0.00367
Sonnet 5.5 $0.00010 $0.00184
Haiku 4.5 $0.00005 $0.00092

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

Security

Grade A, and why

fossil-provider-performance 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 5d 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.

.echo/skills/fossil-provider-performance/SKILL.md · 37 lines

How it starts

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

Fossil provider performance contract (internal/sourcecontrol/fossil)

fossil changes flag rules (verified empirically against fossil 2.29)

  • --hash is required for change detection. Without it, fossil relies on recorded mtime/size and silently misses same-size edits (e.g. xyz → wxy), even with a fresh mtime. Never drop --hash from a changes call whose result feeds change detection.
  • fossil changes is O(checkout size) no matter how few paths it is scoped to (~25µs/file measured; a 1-file scoped call costs the same as a full scan). fossil info/finfo stay O(1) (~30ms). This asymmetry drives the whole architecture: interactive requests must never wait on a changes spawn.
  • fossil extras is redundant: changes --differ already lists extra (untracked) files with the EXTRA code. Never add a separate extras spawn.

Cache architecture (status.go)

  • repositoryState carries a status snapshot cache (keyed to the revision token) and a change-records cache, plus single-flight background refresh (queueStatusRefresh, throttled by refreshMinInterval) that pushes source_control_status via the notifier (wired by sourcecontrol.Service.Register through NotifyingProvider).
  • Caching is gated on cachingAllowed (active subscription): without a subscriber there are no file-event invalidations, so every status recomputes. This keeps direct-disk-mutation semantics (integration tests, external edits with no watcher) correct.
  • Status() = recovery → fresh cache (≤2s) → stale-while-revalidate (serve last-known + background refresh + push) → synchronous compute (cold). computeStatus double-checks the cache under computeMu so concurrent callers share one checkout scan.
  • rawStatus/rawStatusPaths answer from the records cache (TTL 5s) when fresh; pathIsConflicted (diff hot path) does too. Partial scoped results are never cached.
  • afterMutation (actions.go, in the Action defer after the revision bump): checkpoint-only actions (protect/unprotect/hunks) rebuild the snapshot from cached records + the just-written manifest (rebuildStatusCache) so the next status is instant; checkout-changing actions invalidate everything (the service's async post-action push recomputes).
  • InvalidateWorkspace bumps the revision and drops caches; recovery of an interrupted protected commit invalidates too (journal existed).
  • service.Action pushes the post-action status asynchronously (goroutine) — never put a full VCS scan back on the action request path.

Read the full file on GitHub · 37 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. 5d ago First seen · 37 lines · 50 tokens per session scan A 3d09df19273b

Subscribe to this mod's changes

fossil-provider-performance is a skill published in the GitHub repository BrentFarris/echo (11 stars, last pushed 2d ago), licensed MIT. It adds 50 tokens to every session and 918 once invoked, about $0.0002 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-10-21.