Sign inGet started
–

brain-link-discipline

by garrytan/gbrain · Agents, MCP & Prompting

Enforces that whenever the agent reports a created or edited knowledge-base page, it derives the correct hosted URL mechanically from git, pushes before linking, verifies the link resolves, and includ

Lift · GLM-5.3-flash—untestable in our sandbox · why ↓
92
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP

What it does

When you report a brain page to the user — created, edited, committed, or relayed from a subagent — a working link is part of the deliverable, in the SAME message. Derive the path mechanically (git ls-files --full-name), push BEFORE linking, verify the link resolves when a hosted remote exists, and degrade through a defined fallback chain when it doesn't. Inside brain pages the rule inverts: relative links preserve the link graph; absolute URLs are for chat deliverables only.

#agent-conventions#git#knowledge-base#links#output-formatting#verification

Quality judgment

completeness
9.0/10
clarity
9.0/10
trigger quality
7.0/10
examples
8.0/10
structure
9.0/10
overall
9.0/10

Exceptionally thorough: mechanical path derivation, push-before-link ordering, verification with token-safety caveat, fallback chain, subagent relay rewrite, anti-patterns, and dedup boundaries. Triggers are described in prose but no explicit frontmatter trigger list is included, slightly weakening routing reliability; everything else is near-exemplary.

Files (3)

LICENSE · 1.0 KBrouting-eval.jsonl · 1.2 KBSKILL.md · 12.9 KB