# Trifle

## Answer programming trivia while your agent works.

Trifle delivers a daily quiz about code and computing
to your coding assistant over MCP.
Answer a question, learn something unexpected, and impress your friends.

Everyone gets the same daily question, with an explanation after they answer.
The question changes at midnight UTC.
The website shows a simulated editor demo;
the real daily question stays in your editor.

## Add Trifle to your editor.

Trifle connects to your coding assistant through MCP.
You do not need an account to play.
The MCP endpoint is https://trifle.day/mcp, with Streamable HTTP transport.

### Claude Code

Run this command in your terminal to add Trifle for all projects:

```sh
claude mcp add --transport http --scope user trifle 'https://trifle.day/mcp'
```

Open Claude Code and run `/mcp` to check that Trifle is connected.
See the [Claude Code MCP documentation](https://code.claude.com/docs/en/mcp).

### Codex

Add this configuration to `~/.codex/config.toml` for all projects,
or `.codex/config.toml` in a trusted project:

```toml
[mcp_servers.trifle]
url = "https://trifle.day/mcp"
```

Update the existing section if `[mcp_servers.trifle]` is already present.
Save and restart your Codex session or IDE extension.
In the CLI, use `/mcp` to check Trifle’s tools.
See the [Codex MCP documentation](https://developers.openai.com/codex/mcp).

### Gemini CLI

Add this configuration to `~/.gemini/settings.json` for all projects,
or `.gemini/settings.json` in your project:

```json
{
  "mcpServers": {
    "trifle": {
      "httpUrl": "https://trifle.day/mcp"
    }
  }
}
```

If the file already has servers, merge the `trifle` entry into `mcpServers`.
Start a new Gemini CLI session and run `/mcp` to check that Trifle is connected.
See the [Gemini CLI MCP documentation](https://geminicli.com/docs/tools/mcp-server/).

### Cursor and other MCP clients

For Cursor, add this configuration to `~/.cursor/mcp.json` for all projects,
or `.cursor/mcp.json` in your project:

```json
{
  "mcpServers": {
    "trifle": {
      "url": "https://trifle.day/mcp"
    }
  }
}
```

If the file already has servers, merge the `trifle` entry into `mcpServers`.
Open Agent chat and check that Trifle’s tools are enabled.
See the [Cursor MCP documentation](https://docs.cursor.com/context/model-context-protocol).

Other clients can use a remote MCP server named `trifle`
with Streamable HTTP transport.
The JSON configuration above is for clients that use `mcpServers`.
Other clients can use different settings.

### Remember daily play across chats

The optional “Remember my daily play across chats” checkbox on the
[website](https://trifle.day/#installation) adds an installation ID to the configuration.
Copy the updated configuration to your editor to use it.
Clients that support custom headers can send it as `X-Trifle-Installation-ID`.
The ID identifies this installation, not a person.

## Ask for today’s quiz.

Once Trifle is connected, paste this prompt into your assistant:

> Let's play today's Trifle.

Trifle asks your agent to offer a quiz at natural pauses,
such as while builds or tests run.
Your agent decides when to offer it, checks your daily status,
and asks before starting.

## No-bake Neapolitan trifle.

Strawberry and vanilla yogurt creams form two soft layers beneath chocolate
mousse, topped with whipped cream, fresh strawberries, and chocolate curls.
This recipe makes six generous servings with no oven needed.

- Serves: 6
- Prep: 35 minutes
- Chill: 4 hours

### Ingredients

- **28 g (1 oz)** unsweetened freeze-dried strawberries
- **70 g (⅓ cup)** granulated sugar, divided
- **300 g (about 1¼ cups)** thick plain whole-milk Greek yogurt, cold, weighed
  after draining off any loose whey
- **600 ml (2½ cups)** heavy whipping cream, cold, divided
- **1 tsp** vanilla extract
- **120 g (4¼ oz)** dark chocolate bar (about 60% cocoa), divided
- **150 g (about 6 large berries)** fresh strawberries, weighed after hulling,
  for the top

You’ll need six 300 ml (10 oz) glasses or a 2-liter serving bowl, mixing bowls
including a small bowl for whipping cream, a hand mixer, a hand whisk, a small
saucepan, a fine sieve, and a vegetable peeler.
A piping bag with a star tip is optional.

### Directions

1. **Start with the chocolate.**
   While the bar is still whole and at room temperature, shave about 20 g of
   curls from its edge with a vegetable peeler and set them somewhere cool.
   Finely chop the remaining 100 g.
   Heat 100 ml (⅓ cup plus 1 tablespoon) of the cream in a small saucepan until
   it steams.
   Pour it over the chopped chocolate, wait 2 minutes, then stir until smooth
   and glossy.
   Leave it on the counter to cool while you make the creams.
2. **Prepare the yogurt bases.**
   Stir the yogurt, vanilla, and 60 g (about 5 tablespoons) of the sugar until
   smooth and the sugar has dissolved.
   Divide equally between two bowls.
   Crush the freeze-dried strawberries to a fine powder in a sealed bag, then
   pass them through a fine sieve.
   Stir the powder into one bowl of yogurt until evenly pink with no dry lumps.
   Leave for 5 minutes to hydrate and thicken.
   Keep the other bowl plain for the vanilla layer.
3. **Fold in the whipped cream.**
   In a separate bowl, whip 300 ml (1¼ cups) of the cold cream until it holds
   firm peaks but still looks smooth.
   Use half of the whipped cream for each yogurt base.
   For each bowl, stir in one-third of its share to loosen the yogurt, then
   gently fold in the rest.
   Refrigerate both creams while you finish the chocolate mousse.
4. **Fold the chocolate mousse.**
   Stir the chocolate mixture and check a small dab on the inside of your wrist.
   It should feel only faintly warm, and the mixture should flow smoothly from a
   spoon in a thick ribbon.
   If it feels hot, let it cool longer.
   If it has become too thick to flow, warm the bowl briefly over a pan of hot
   water, then stir and check again.
   In a small, cold bowl, use a hand whisk to whip 80 ml (⅓ cup) of the cold
   cream until it holds soft peaks.
   Stir one-third into the chocolate to loosen it, then gently fold in the rest
   until no white streaks remain.
5. **Build the layers and let the fridge do its thing.**
   Divide all the strawberry cream among the glasses and smooth the tops.
   Spoon or pipe all the vanilla cream over it.
   Add the chocolate mousse in small spoonfuls across the surface, then gently
   smooth it without pressing into the vanilla layer.
   Leave room for the toppings.
   For one big trifle, use the same order in the serving bowl.
   Cover and refrigerate for at least 4 hours, or overnight.
   The yogurt layers will stay soft and spoonable.
6. **Finish with a swirl, berries, and curls.**
   Just before serving, whip the remaining 120 ml (½ cup) of cream with the
   remaining 10 g (about 2 teaspoons) of sugar until it holds firm peaks.
   Spoon it onto each trifle, or pipe a swirl with a star tip.
   Halve the fresh strawberries and place them on the cream, then scatter the
   chocolate curls over the top.
   For crunch, serve a crisp biscuit alongside, if you like.
   Keep leftovers covered in the fridge and enjoy within 2 days.

### Nutrition facts

Estimated per serving: ⅙ of the recipe, including toppings.

- Calories: 620 kcal
- Total fat: 50 g
- Saturated fat: 29 g
- Carbohydrates: 30 g
- Total sugars: 24 g
- Protein: 6 g
- Sodium: 50 mg

Calculated from the listed quantities, without the optional biscuit; brands and
portion sizes will change the values.

### About this recipe

This recipe was written to match the dessert in our illustration:
a pink strawberry layer, a vanilla layer, a chocolate mousse layer,
and a swirl of cream with berries and curls on top.
The strawberry and vanilla layers taste of sweetened yogurt.
The recipe has not yet been kitchen-tested,
so treat the timings and yield as estimates.
The chocolate temperature cue and the layers’ stability after four hours
and overnight still need to be checked in a kitchen test.

Nutrition is estimated from manufacturer labels and USDA data, then rounded.

---

An [NSHipster](https://nshipster.com/) project.
