> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nika.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Standup digest

> T1 starter · engineering: the standup note writes itself from what you actually committed.

> **T1 starter · engineering / any team**: two data sources gathered in
> parallel, one model call, one file on disk. Your first taste of « the
> boring parts run themselves ».

## The job

Every morning you reconstruct yesterday from memory. Your git history
already knows. This workflow reads the commits since yesterday, stamps
the date from a builtin (not from the model's imagination), and writes
the three standup bullets in your tone. When Git fails or is refused, the
workflow records “Git history unavailable” and tells the model to invent
no commit facts. This is distinct from an empty successful log, and on
macOS in 0.124.1 it is the default outcome:

> [!WARNING]
>
> **Limit on macOS in 0.124.1.** The sandbox confines `exec: git` to the
> workflow's declared filesystem boundary, which grants no read of `.git`
> or of git's global configuration. The confined `git` exits with status
> 128, even inside a real repository, so `history` takes its
> `recover:` value and the note says history is unavailable instead of
> listing your commits. See
> [Known limits](https://docs.nika.sh/changelog/known-limits.md#git-inside-a-workflow-is-refused-on-macos).

## The shape

```mermaid theme={"system"}
flowchart LR
  today["today · nika:date"]:::invoke
  history["history · git"]:::exec
  digest["digest"]:::infer
  save["save · nika:write"]:::invoke
  today --> digest
  history --> digest
  digest --> save
  classDef infer fill:#5b8cff22,stroke:#5b8cff,color:#5b8cff
  classDef exec fill:#ff7a3c22,stroke:#ff7a3c,color:#ff7a3c
  classDef invoke fill:#22d3ee22,stroke:#22d3ee,color:#22d3ee
```

## The file

```yaml standup-digest.nika theme={"system"}
nika: standup-digest

model: ollama/qwen3.5:4b   # local · zero key · swap for groq/llama-3.3-70b-versatile (a fast one-liner job)

permits:
  exec: ["git"]              # the ONE program this workflow may run
  tools: ["nika:date", "nika:write"]
  fs: { write: ["out/standup-note.md"] }

tasks:
  # No deps between these two → the engine runs them in parallel.
  today:
    invoke:
      tool: "nika:date"
      args: { op: now }

  history:
    exec:
      command: ["git", "log", "--since=yesterday", "--oneline", "--no-merges"]
    on_error:
      recover: "Git history unavailable: the command failed or was refused. No commit facts were collected."

  digest:
    with:
      today: ${{ tasks.today.output }}
      history: ${{ tasks.history.output }}
    infer:
      # a reasoning model needs 16384 here, or a documented run.reasoning.effort: low
      max_tokens: 400          # a standup note is short · the ceiling says so
      prompt: |
        Date · ${{ with.today }}
        Commits since yesterday ·
        ${{ with.history }}

        Write my standup note · 3 bullets · done / doing / blocked.
        Plain words · no fluff. If history is unavailable, say that and invent no
        done / doing / blocked facts. Only an empty successful log means no commits.

  save:
    with:
      digest: ${{ tasks.digest.output }}
    invoke:
      tool: "nika:write"
      args:
        path: out/standup-note.md
        create_dirs: true
        content: "${{ with.digest }}"

outputs:
  history: ${{ tasks.history.output }}
  note: ${{ tasks.digest.output }}
```

## How it works

**1. Two tasks start together**

`today` and `history` have no incoming edge: the engine runs them
in parallel. Parallelism is the default, not an option you switch on.

**2. Unavailable history stays visible**

`on_error.recover` carries an explicit unavailable-history message into
`outputs.history` and the note. It grants no extra filesystem access.

**3. The digest waits for both**

The two `with:` bindings make `digest` the merge point — each
`${{ tasks.X.output }}` reference IS a data edge. The prompt reads
the bindings (`${{ with.today }}` · `${{ with.history }}`).

**4. The note lands on disk**

`nika:write` takes an explicit `content:`: a write without it is refused
by `nika check` (`NIKA-BUILTIN-001`). The workflow also returns the note
via `outputs:`.

## Constructs you just used

| Construct | Where | Reference |
| - | - | - |
| implicit parallelism | `today` + `history` | [DAG shape](https://docs.nika.sh/concepts/workflows.md) |
| `exec:` | `history` | [The 4 verbs](https://docs.nika.sh/concepts/verbs.md) |
| `nika:date` · `nika:write` | `today` · `save` | [Builtins](https://docs.nika.sh/reference/builtins.md) |
| `outputs:` | envelope tail | [YAML syntax](https://docs.nika.sh/reference/yaml-syntax.md) |

## Run it

> [!NOTE]
>
> **What it needs:** A local model ([Ollama](https://ollama.com) serving `qwen3.5:4b`), run from a Git repository you work in. Git is refused on macOS in 0.124.1, so there the note says history is unavailable ([Known limits](https://docs.nika.sh/changelog/known-limits.md#git-inside-a-workflow-is-refused-on-macos)).

**1. Rehearse it**

```bash theme={"system"}
nika try standup-digest
```

A mock model answers and nothing is written in your folder.

**2. Get your own copy**

Save the file above as `standup-digest.nika` at the root of a Git repository you work in. It reads no sample file.

**3. Check it, then run it**

```bash theme={"system"}
nika check standup-digest.nika
nika run standup-digest.nika --model mock/echo   # a mock model, no key
ollama pull qwen3.5:4b   # once, for the real run
nika run standup-digest.nika
```

The run writes `out/standup-note.md`.

Any other model works: pass `--model <provider>/<name>` with its key, and cap a cloud model with `--max-cost-usd`.

## Make it yours

* Point `--since` at your sprint cadence (`--since=friday` for Monday standups).
* Keep the local model or choose another provider/model available in `nika catalog`.
* Add a `nika:notify` task to post the note straight into your team channel. See [Release notes](https://docs.nika.sh/examples/release-notes.md) for the pattern.

> [card] [Next · Meeting actions](https://docs.nika.sh/examples/meeting-actions.md)
>
> Same tier, one new idea: structured output. The model returns typed
> JSON, not prose.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.