Knowledge cache + Florence timestamp-gate

florence.agent.md:
- Tilfoej Step 0: timestamp-gate
  Laes ~/.claude/.florence-timestamp — spring runden over
  hvis under 30 minutter gammel. Skriv timestamp efter runde.
  Forhindrer Florence i at kore ved hver session-aabning.

curabis-standard.agent.md:
- CLAUDE.md-template: erstat 24 URL-fetches med local cache-laesning
  fra ~/.claude/bcquality-knowledge/ (architecture/ testing/ mcp/)
  Session-start reduceres fra ~25 netvaerkskald til 0.

Global ~/.claude/CLAUDE.md opdateret separat:
- Auto-update downloader nu knowledge-filer til cache ved SHA-aendring
- Session-start laeder fra cache, ikke fra URLs
- Florence korer kun hvis >= 30 min siden sidst

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Michael Dieringer 2026-06-25 18:32:20 +02:00
parent 6cfb1498e2
commit 526b2a126d
2 changed files with 29 additions and 25 deletions

View file

@ -58,6 +58,26 @@ improvise the checklist — she follows it exactly, and flags if it is outdated.
## Round protocol
### Step 0 — Timestamp gate
Before doing anything, check `~/.claude/.florence-timestamp`:
```
$ts = Get-Content ~/.claude/.florence-timestamp -ErrorAction SilentlyContinue
$age = if ($ts) { ((Get-Date) - [datetime]$ts).TotalMinutes } else { 999 }
```
- If `$age < 30`: skip the round entirely. Silence is the report.
- If `$age >= 30` (or file missing): proceed to Step 1.
After completing Step 4 (report), always write the current timestamp:
```
(Get-Date -Format "o") | Set-Content ~/.claude/.florence-timestamp
```
This prevents Florence from running more than once per 30 minutes,
regardless of how many sessions are opened.
### Step 1 — Read the checklist
Open HEARTBEAT.md. Note the last round timestamp. Proceed item by item.