Expand description
.caliban/rules/<topic>.md — path-scoped rule files with optional
paths: glob frontmatter.
Part of ADR 0036. Rules behave like miniature CLAUDE.md addendums that the
agent activates lazily once the model touches a matching file (or eagerly
at startup when paths: is absent).
Structs§
- Rule
- A loaded rule file (frontmatter parsed; body raw).
- RuleSet
- A set of loaded rules with a pre-built
GlobSetfor fast path matching.
Enums§
- Rule
Scope - Whether the rule was loaded from the user dir (
~/.caliban/rules/) or the project dir (<workspace>/.caliban/rules/).
Functions§
- scan_
caliban_ rules - Scan both the user dir (
~/.caliban/rules/) and the project dir (<workspace>/.caliban/rules/) for*.mdrule files. Malformed files are skipped with a warning.