Skip to main content

Module agents_md

Module agents_md 

Source
Expand description

greengate agents-md — a self-verifying pointer for coding agents.

Deliberately NOT a prose contract and NOT a list of check names: both drift from what the registry actually enforces the moment a check is added, removed, or its severity changes — see amont-fleet’s severities module doc for the canonical shape of that failure. This generates a short block that instead tells an agent to ask greengate list --json, which cannot go stale because it IS the registry.

Never touches anything outside its own markers. An AGENTS.md a repository already wrote is the repository’s, not this tool’s, to rewrite — matching greengate.conf’s “declared, never assumed” posture.

Enums§

CheckResult
MarkerState

Constants§

END
START

Functions§

check
check_pointer
Is the CLAUDE.md signpost the one this binary generates?
desired_file_content
What writing would produce, given what is on disk today.
desired_pointer_content
The same splice, for the pointer.
generate_block
The block, START and END inclusive, always ending in exactly one newline.
generate_pointer
The CLAUDE.md pointer, START and END inclusive.
has_markers
Does text carry a marker of either pair? The opt-in test, answered from the text alone.
write
write_pointer
Write the CLAUDE.md signpost.