# pal cli algorithm-reflect

Source: https://pal.konvert7.com/docs/cli/algorithm-reflect

Log algorithm performance after the LEARN phase

```bash title="Usage"
pal cli algorithm-reflect [options]
```

| Option | What it does |
| --- | --- |
| `--task <text>` | Brief task description |
| `--criteria <n>` | Total criteria count |
| `--passed <n>` | Criteria passed |
| `--failed <n>` | Criteria failed |
| `--sentiment <1-10>` | Implied satisfaction 1-10 |
| `--q1 <text>` | Q1 — Self: what I'd do differently |
| `--q2 <text>` | Q2 — Algorithm: structural improvement |
| `--q3 <text>` | Q3 — AI: reasoning blind spot |
| `--scope <scope>` | general (default) \| task-specific — is the algorithm idea reusable or task-bound? |

Required: --task, --q1, --q2, --q3.

Example:

```text title="Text"
pal cli algorithm-reflect --task "description" --criteria N --passed N --failed N --sentiment 1-10 \
  --q1 "self reflection" --q2 "algorithm reflection" --q3 "AI reflection"
```

Output: algorithm-reflections.jsonl in records/reflections/