# Récit for agents

import cast from "../../../../examples/scenario-lorem/cast.md?raw";
import night from "../../../../examples/scenario-lorem/night.story.md?raw";

**Récit for agents** gives an agent what it needs to write with you: an MCP server that validates,
edits and renders a story, skills it can install, and a **bible** — the characters, sets, style,
image prompts and beats of a story world, written once in Markdown. The film below is a micro-film
of the Lorem bible, compiled from
[`examples/scenario-lorem`](https://github.com/vguerand/recit/tree/main/examples/scenario-lorem).
Récit never calls a model and never generates an image: it describes, checks and traces.

<StoryEmbed slug="ai/night" />

<details>
<summary>The bible of this film</summary>

<SourceFile code={cast} title="examples/scenario-lorem/cast.md" />

</details>

<details>
<summary>The Markdown source of this film</summary>

<SourceFile code={night} title="examples/scenario-lorem/night.story.md" />

</details>

## What it gives your agent

<FeatureGrid cols={3}>
  <FeatureCard title="A bible" description="Characters, sets, a style, image prompts and beat templates in one Markdown file, with a typed JSON twin." href="/ai/bible" />
  <FeatureCard title="Scene attributes" description="cast=, beat=, set=, shot=, pose= and prompt= on a scene; recit validate checks every reference with its line number." site="docs" href="/documentation/scenario/overview" />
  <FeatureCard title="Prompts, not images" description="recit prompts build derives one deterministic prompt per shot; you generate the image wherever you like." href="/ai/prompts" />
  <FeatureCard title="Provenance" description="recit assets register traces each image: origin, licence, the fingerprint of its prompt, and a warning when it goes stale." site="docs" href="/documentation/scenario/provenance" />
  <FeatureCard title="An MCP server" description="Validate a bible, build a prompt, list the prompts and register an asset from any MCP host." href="/ai/mcp" />
  <FeatureCard title="Skills" description="recit skills export writes the guides and the character sheets as Agent Skills, from the same source." href="/ai/skills" />
</FeatureGrid>

## Start a story world

<TutorialSteps>
  <TutorialStep title="Copy the example" duration="1 min">
    The Lorem bible, its three micro-films in English and French and their placeholder images.

    ```bash
    cp -r examples/scenario-lorem my-world
    ```

  </TutorialStep>
  <TutorialStep title="Check it" duration="1 min">
    Every scene's cast, set, pose and prompt is checked against the bible. The copy passes with
    warnings: three traits are still `{inferred}` and no image is registered yet. Once you have
    validated them and registered your images, `--strict` turns those warnings into errors.

    ```bash
    recit validate cast.md night.story.md
    ```

  </TutorialStep>
  <TutorialStep title="Derive the prompts" duration="1 min">
    One prompt per shot, the same in every language, with a placeholder image until yours is
    registered.

    ```bash
    recit prompts build cast.md --placeholders
    ```

  </TutorialStep>
</TutorialSteps>

The bible is specified on [docs.recit.dev](https://docs.recit.dev/documentation/scenario/bible), and the MCP
setup on [AI › MCP](https://docs.recit.dev/documentation/ai/mcp).
