CLAUDE.md@src/grove/core/watchesA

CLAUDE.md@src/grove/core/watches from bearlike/grove is a CLAUDE.md file: the standing instructions Claude Code reads in that repo.

Install it, pinned
mdr add bearlike/grove/src/grove/core/watches/CLAUDE.md@git:20261002.ab7241f

Pins git:20261002.ab7241f in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
CLAUDE.md file
Repository
bearlike/grove
Path
src/grove/core/watches/CLAUDE.md
Versions recorded
3
Latest version
git:20261002.ab7241f, committed Oct 2, 2026
First version recorded
Sep 23, 2026
Size
16,690 bytes
Repository stars
8
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# grove.core.watches — register a callback, halt, and be woken

> ↑ [grove.core](../CLAUDE.md) · [root](../../../../CLAUDE.md)

One concern: an agent waiting on something slow says what it is waiting for and **stops**, and Grove delivers the outcome when it settles. Wire shapes live in [contracts/watches.py](../contracts/CLAUDE.md); delivery is [`core/mailboxes.py`](../CLAUDE.md) unchanged; the daemon owns the routes and the lifespan.

## The cost model IS the design

A naive implementation gives each waiter a thread, or wakes every few seconds and scans the registry. Both scale CPU with how many agents happen to be waiting, which on a fleet host is exactly backwards — **waiting should be free**.

- **One scheduler for the host**: a single asyncio task over a `heapq` keyed on `next_due`, plus one `asyncio.Event` that register/cancel set to wake it early. No thread, process, timer or sleeping coroutine per watch or per workspace.
- **Nothing periodic.** An empty registry returns `None` from `seconds_until_next()`, so the loop awaits an event rather than a clock and no timer exists to fire. There is no tick, no sweep, no scan — the heap's minimum IS the next wakeup.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add bearlike/grove/src/grove/core/watches/CLAUDE.md@sha256:7dd6b6556bac65ef

The line at the top of this page pins the label git:20261002.ab7241f, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_cryuntsbxpzquqiu.svg)](https://markdownregistry.com/a/art_cryuntsbxpzquqiu)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Sep 23, 2026 and Oct 2, 2026, about one every 4 days.

versioncommittedcommitsizeaudit
git:20261002.ab7241f latest2026-10-02 ab7241f 16,690 BA view · diff
git:20260930.45159a62026-09-30 45159a6 12,796 BA view · diff
git:20260923.1a5058d2026-09-23 1a5058d 11,592 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (16690 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

bearlike/grove · 8 stars · license MIT · pushed 2026-10-02 · branch current

API

GET https://markdownregistry.com/api/v1/artifacts/art_cryuntsbxpzquqiu
GET https://markdownregistry.com/api/v1/resolve?ref=bearlike/grove/src/grove/core/watches/CLAUDE.md
GET https://markdownregistry.com/api/v1/blob/7dd6b6556bac65ef56154048173a147e45cc744be0f615389cd55ef07f2e9bf7

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: what a CLAUDE.md file is · keeping AGENTS.md and CLAUDE.md in sync · which agent file does what.

More from bearlike/grove

AGENTS.md AGENTS.md file
bearlike/grove · AGENTS.md
git:20260812.6377c5a · audit A · 8 stars
CLAUDE.md CLAUDE.md file
bearlike/grove · CLAUDE.md
git:20260930.45159a6 · audit A · 8 stars
AGENTS.md@docs AGENTS.md file
bearlike/grove · docs/AGENTS.md
git:20260812.6377c5a · audit A · 8 stars
CLAUDE.md@docs CLAUDE.md file
bearlike/grove · docs/CLAUDE.md
git:20261002.ab7241f · audit B · 8 stars
AGENTS.md@packaging AGENTS.md file
bearlike/grove · packaging/AGENTS.md
git:20260812.6377c5a · audit A · 8 stars
CLAUDE.md@packaging CLAUDE.md file
bearlike/grove · packaging/CLAUDE.md
git:20261002.ab7241f · audit A · 8 stars
AGENTS.md@src/grove/client AGENTS.md file
bearlike/grove · src/grove/client/AGENTS.md
git:20260812.6377c5a · audit A · 8 stars
CLAUDE.md@src/grove/client CLAUDE.md file
bearlike/grove · src/grove/client/CLAUDE.md
git:20260930.45159a6 · audit A · 8 stars
AGENTS.md@src/grove/core AGENTS.md file
bearlike/grove · src/grove/core/AGENTS.md
git:20260812.6377c5a · audit A · 8 stars
CLAUDE.md@src/grove/core CLAUDE.md file
bearlike/grove · src/grove/core/CLAUDE.md
git:20260930.45159a6 · audit C · 8 stars
AGENTS.md@src/grove/core/agents AGENTS.md file
bearlike/grove · src/grove/core/agents/AGENTS.md
git:20260812.6377c5a · audit A · 8 stars
CLAUDE.md@src/grove/core/agents CLAUDE.md file
bearlike/grove · src/grove/core/agents/CLAUDE.md
git:20260930.45159a6 · audit A · 8 stars

Every file in bearlike/grove

Browse by kind, by grade A, or by owner.