Home / bearlike / grove · src/grove/core/watches/CLAUDE.md · GitHub

CLAUDE.md@src/grove/core/watches claudeA

CLAUDE.md@src/grove/core/watches is agent-read markdown (claude) from bearlike/grove.

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns 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

Latest version
mdr add bearlike/grove/src/grove/core/watches/CLAUDE.md@git:20260923.1a5058d
Exact content
mdr add bearlike/grove/src/grove/core/watches/CLAUDE.md@sha256:a014514d4ff31199

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

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

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260923.1a5058d latest2026-09-23 1a5058d 11,592 BA view

Audit of the latest version

A  14 of 14 checks passed. Deterministic, no model, same answer every run.
  • pass: Size between 200 bytes and 200 KB (11592 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 · 7 stars · license MIT · pushed 2026-09-23 · 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/a014514d4ff31199f24c9e799a1075b111c7f2eb3fcc56e146f07db2809c0165

Your agent 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.

More from bearlike/grove

AGENTS.md agents
bearlike/grove · AGENTS.md
git:20260812.6377c5a · audit A · 7 stars
CLAUDE.md claude
bearlike/grove · CLAUDE.md
git:20260923.1a5058d · audit A · 7 stars
AGENTS.md@docs agents
bearlike/grove · docs/AGENTS.md
git:20260812.6377c5a · audit A · 7 stars
CLAUDE.md@docs claude
bearlike/grove · docs/CLAUDE.md
git:20260923.1a5058d · audit B · 7 stars
AGENTS.md@packaging agents
bearlike/grove · packaging/AGENTS.md
git:20260812.6377c5a · audit A · 7 stars
CLAUDE.md@packaging claude
bearlike/grove · packaging/CLAUDE.md
git:20260812.6377c5a · audit A · 7 stars
AGENTS.md@src/grove/client agents
bearlike/grove · src/grove/client/AGENTS.md
git:20260812.6377c5a · audit A · 7 stars
CLAUDE.md@src/grove/client claude
bearlike/grove · src/grove/client/CLAUDE.md
git:20260803.49581e6 · audit A · 7 stars
AGENTS.md@src/grove/core agents
bearlike/grove · src/grove/core/AGENTS.md
git:20260812.6377c5a · audit A · 7 stars
CLAUDE.md@src/grove/core claude
bearlike/grove · src/grove/core/CLAUDE.md
git:20260923.1a5058d · audit C · 7 stars
AGENTS.md@src/grove/core/agents agents
bearlike/grove · src/grove/core/agents/AGENTS.md
git:20260812.6377c5a · audit A · 7 stars
CLAUDE.md@src/grove/core/agents claude
bearlike/grove · src/grove/core/agents/CLAUDE.md
git:20260921.13d222a · audit A · 7 stars

Every file in bearlike/grove

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