berd-monitor
Skill962 starsChanged 4 months agoApache-2.0View on GitHub
Run a long-lived command outside the current Berd turn and wake the owning session with actionable stdout. Use for builds, tests, reviews, deployments, polling, watchers, and other external waits.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bb-cli/AGENTS.mdAGENTS.md
- distro/skills/berd-help/references/agents.mdAGENTS.md
- LAWS/AGENTS.mdAGENTS.md
- src/features/design-system/AGENTS.mdAGENTS.md
- src/shared/ui/AGENTS.mdAGENTS.md
- bb-cli/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- src/shared/ui/CLAUDE.mdCLAUDE.md
- assistive-uxSkill
- berdctl-new-commandSkill
- code-reviewSkill
- create-prSkill
- experimental-featuresSkill
- agent-builderSkill
- berd-helpSkill
- berd-orchestratorSkill
- skill-builderSkill
- buzz-handoffSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Use berd-monitor when a command may outlive the current turn.
- Very specific: line 17
Run short, bounded commands normally.
- Distinctive: line 39
put verbose output and diagnostics in durable logs or stderr.
- Distinctive: line 40
avoid NUL bytes and emit a final summary when practical.
- Very specific: line 42
Default --if-running steer adds an event to an active run or starts a new turn.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Berd Monitor
Use berd-monitor when a command may outlive the current turn. It detaches the
producer from Berd and the agent harness, buffers output across delivery
failures, and sends complete stdout lines to the exact originating session.
Run short, bounded commands normally. Do not hold a turn open with sleep,
polling, log tailing, or a foreground timeout.
Start
berd-monitor run \
--state-key <stable-key> \
--label '<concise source name>' \
--instructions '<short event-handling guidance>' \
-- <producer-command> [args...]AGENT_SESSION_ID selects the current session. Use --session-id only for
another positively identified session; never infer a session from the working
directory. The command prints the detached monitor PID. After checking the
monitor's watcher.log under the printed state directory when diagnosis is
needed, continue other work or end the turn—never wait on the detached PID.
The producer's stdout is the event API:
- emit concise, newline-terminated milestones and flush promptly;
- put verbose output and diagnostics in durable logs or stderr;
- avoid NUL bytes and emit a final summary when practical.
Default --if-running steer adds an event to an active run or starts a new
turn. Use --if-running queue only when the active run must not be steered.
Pending events retry without being dropped, and a trailing partial line is
delivered when the producer exits.
Delivered messages are visibly labeled as coming from berd-monitor. Stop a
monitor with:
berd-monitor stop --state-key <stable-key>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

