rai learn
Manage learning records — structured observations captured from development sessions, code reviews, and retrospectives. Learning records feed the pattern store and coaching system.
rai learn write¶
Write a learning record to local storage. Use to capture observations that should influence future sessions but do not warrant a full pattern entry.
| Argument | Description |
|---|---|
CONTENT |
Learning content to record (required) |
| Flag | Short | Description |
|---|---|---|
--type |
-t |
Record type: observation, correction, insight. Default: observation |
--context |
Keywords describing the context (comma-separated) | |
--project |
-p |
Project path |
# Record an observation
rai learn write "Pydantic v2 validators use @field_validator not @validator"
# Record a correction with context
rai learn write "Never use sequential Alembic IDs in concurrent branches" \
--type correction --context "alembic,migrations,concurrent"
rai learn push¶
Push buffered learning records to the connected RaiSE server for team-wide sharing and pattern promotion review.
| Flag | Short | Description |
|---|---|---|
--dry-run |
Show what would be pushed without sending |
See also: rai pattern, rai session