## Extract codebase rules from developer session logs

Turn recurring coding errors into path-scoped repository guidelines.

Parse recent terminal transcripts and coding session history to identify instances where tool calls failed or code required manual correction. Formulate concise, path-scoped rule recommendations targeting specific directories or files. Present the rule additions as a preview diff and ask for user approval before writing or updating any rule files in the repository.

Approvals:

- Writing or updating repository rule files waits for user approval.

Source: BotBento use case https://botbento.com/usecases/extract-codebase-rules-from-developer-session-logs/ (CC BY 4.0).
