# Cohere v0.1.0 - Table of Contents

> A coherence layer for Elixir/Phoenix: a derived map of your system that cannot lie, thin authored intent cards, and a drift sentinel that keeps them honest.

## Pages

- [Cohere](readme.md)
- [Changelog](changelog.md)
- [cohere usage rules](usage-rules.md)

## Modules

- [Cohere](Cohere.md): A coherence layer for Elixir/Phoenix projects.
- [Cohere.Check](Cohere.Check.md): The check verb: every finding cohere can make, in one iterative command —
the same command locally and in CI. Fix what it lists, run it again.
- [Cohere.Derive.Modules](Cohere.Derive.Modules.md): Classifies every module in the host app and groups the domain layer into
context groups.
- [Cohere.Derive.Routes](Cohere.Derive.Routes.md): Derives the HTTP/LiveView surface from compiled Phoenix routers.
- [Cohere.Derive.Schemas](Cohere.Derive.Schemas.md): Derives object shape from Ecto schemas via `__schema__/1` reflection.
- [Cohere.Derive.Workers](Cohere.Derive.Workers.md): Derives the background-job surface: Oban workers plus the queue and cron
wiring that lives only in application config.
- [Cohere.Design](Cohere.Design.md): Design docs: the authored artifact of the feature loop.
- [Cohere.Design.Doc](Cohere.Design.Doc.md): A parsed design doc: frontmatter (slug, status, date, contexts,
supersedes) plus the body and its sections keyed by heading.

- [Cohere.Docs](Cohere.Docs.md): Renders the cohere docs site: authored markdown in `docs_src/` becomes
static HTML in `docs/`, alongside pages derived from the compiled tasks
and the repo's own coherence artifacts.
- [Cohere.Drift](Cohere.Drift.md): The drift sentinel: mechanically detects when the project has moved out
from under its coherence artifacts.
- [Cohere.Intent](Cohere.Intent.md): Loads, parses, generates, and updates intent cards.
- [Cohere.Intent.Card](Cohere.Intent.Card.md): One authored intent card: the thin layer of truth that cannot be derived.
- [Cohere.Map](Cohere.Map.md): The derived map: the actual shape of the system, assembled from reflection
over the compiled application.
- [Cohere.Map.Renderer](Cohere.Map.Renderer.md): Renders a `Cohere.Map` to markdown.
- [Cohere.Markdown](Cohere.Markdown.md): Frontmatter and section mechanics shared by every authored artifact —
intent cards and design docs.
- [Cohere.Onboarding](Cohere.Onboarding.md): Owns the cohere block in the host's agent guidance file (`AGENTS.md`).
- [Cohere.Packet](Cohere.Packet.md): Assembles a work packet: context delivered, not discovered.
- [Cohere.Project](Cohere.Project.md): Discovers the host project: its OTP app, module inventory, namespaces,
and which coherence-relevant capabilities are present.
- [Cohere.Surface](Cohere.Surface.md): The public function surface of a module, and a stable hash over it.

## Mix Tasks

- [mix cohere](Mix.Tasks.Cohere.md): Prints the project's current coherence level and what the next rung
requires.
- [mix cohere.check](Mix.Tasks.Cohere.Check.md): The check verb of the feature loop: run it anytime, locally or in CI;
fix what it lists and run it again.
- [mix cohere.complete](Mix.Tasks.Cohere.Complete.md): The complete verb of the feature loop — the land step, one command.
- [mix cohere.design](Mix.Tasks.Cohere.Design.md): The start verb of the feature loop — and, with no arguments, the listing.
- [mix cohere.gen.intent](Mix.Tasks.Cohere.Gen.Intent.md): Generates an intent card skeleton for each named context, bound to its
current public surface (so a fresh card is born non-drifted).
- [mix cohere.init](Mix.Tasks.Cohere.Init.md): Creates the `cohere/` directory (map, `intent/`, `design/`), derives the
first map, writes a README explaining the feature loop, and syncs the
agent-guidance block into `AGENTS.md` — the loop's instructions, landed
where agents already look.
- [mix cohere.map](Mix.Tasks.Cohere.Map.md): Derives the system map from the compiled application and writes it to
`cohere/map.md` (configurable via `config :cohere, dir: ...`).
- [mix cohere.packet](Mix.Tasks.Cohere.Packet.md): Prints a work packet — map slices, intent cards, anchored designs
(drafts inlined as live intent, accepted as pointers), per-directory
agent guidance, related routes, and runtime-verification pointers —
for the contexts a task touches.

