claude-code-homelab: Command for Claude Code

.claude/commands/reseed.md

reseed is a command for Claude Code from a777ance/claude-code-homelab. It costs 33 tokens per session (638 once invoked), scanned A, original, MIT.

A command that updates the repository's versioned briefing and regenerates the working session context without clearing the conversation. It first uses Git to fast-forward the local main branch to the latest remote version.

In plain words
What is it for?
Use it to reload the latest project guidance during an active session while keeping the existing conversation.
Why use it?
It prevents the session from being rebuilt from stale instructions and protects uncommitted work from being overwritten. It stops when the working tree is dirty or cannot be fast-forwarded safely.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to a777ance/claude-code-homelab. 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/a777ance/claude-code-homelab/main/.claude/commands/reseed.md
Clone the repo
git clone --depth 1 https://github.com/a777ance/claude-code-homelab

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 reseed

README.md
[![agentmods](https://agentmods.dev/badge/commands/a777ance/claude-code-homelab/reseed.svg)](https://agentmods.dev/commands/a777ance/claude-code-homelab/reseed)
Your own site
<a href="https://agentmods.dev/commands/a777ance/claude-code-homelab/reseed"><img src="https://agentmods.dev/badge/commands/a777ance/claude-code-homelab/reseed.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 638 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.00033 $0.00638
Opus 5 $0.00016 $0.00319
Sonnet 5 $0.00007 $0.00128
Haiku 4.5 $0.00003 $0.00064

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

Security

Grade A, and why

reseed 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 7d 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.

.claude/commands/reseed.md · 49 lines

How it starts

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

Regenerate the working briefing mid-session without clearing the conversation — from the latest seed, not the copy pinned when the session opened.

The seed is this repo's briefing set (below); like a map seed, the whole working world regenerates deterministically from it. But the seed is versioned and the founder pushes new commits straight to main, so a "refresh" is really a pull: regenerating from a behind-local seed just rebuilds a stale world. So this command pulls the current seed first, then reseeds — the same sync-then-regenerate the SessionStart hook does around a /clear, but for the no-clear case.

1. Pull the current seed onto disk (fast-forward only)

git fetch origin --quiet
git status --short                            # must be clean to fast-forward
git log -1 --format='local %h %ci %s' -- CLAUDE.md
git pull --ff-only 2>&1                        # land origin/main on disk — no merge commit, no rewrite
git log -1 --format='now   %h %ci %s' -- CLAUDE.md
  • Dirty tree → do not pull. Stop and tell me what's uncommitted, so a fast-forward can't clobber in-flight work. Commit or stash first, then re-run.
  • Non-fast-forward (local has diverged from origin/main) → stop and tell me; don't force it. Reconcile by hand.
  • Already up to date → fine, the seed on disk is already current — continue.

2. Regenerate from the seed (read it all in one batch)

Read all of these from the now-current working tree, in parallel:

  1. CLAUDE.md — the briefing (this repo is a setup guide, not a live system — don't deploy from here).
  2. README.md — start here.
  3. docs/ai-cto/context.md — current open items (AI CTO state).

These are the seed for this repo. Anything else is pulled on demand, not part of the standing seed.

3. Confirm ready — one line

Report exactly: the CLAUDE.md revision you landed (<short-hash> <date>), whether the pull fast-forwarded or was already current, and that every seed file was read. Then stop and wait for work. Do not summarize the seed back to me — just confirm the world is regenerated from the latest seed.

Read the full file on GitHub · 49 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. 7d ago First seen · 49 lines · 33 tokens per session scan A bd13a621d738

Subscribe to this mod's changes

reseed is a command published in the GitHub repository a777ance/claude-code-homelab (2 stars, last pushed 27d ago), licensed MIT. It adds 33 tokens to every session and 638 once invoked, about $0.0002 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-08-31.