Commit Graph
5 Commits
Author SHA1 Message Date
Claude 5747c57790 Memory › Patterns: never lose the cards, same-height cards, a turning refresh arrow
- "Read again" emptied the page: from the app, the index read failed, brain took that for
  "no conversations" and dropped every project from the cache. A database that can't be read
  now throws (readAllConversations); the cache is never emptied all at once; a project whose
  Claude calls all failed keeps what it had; a merge reply that keeps nothing keeps the list.
  `brain patterns --json` prints {error}, and the page shows the reason above the cards.
- The cards found before stay on the page while Claude reads again.
- Every card has the same rows and line counts (title and description on two lines, the files
  line, the weekly bars, three conversations), so the grid is even.
- "Read again" is now a round arrow: it lights up under the pointer and turns while it works.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-28 15:51:58 +00:00
Claude 31d49f271c Memory › Patterns: find the skills by itself, from conversations and project files
- The analysis starts on its own when Memory opens and it is due (never done, or a project
  changed and the last run is older than 6 h). Only the projects that changed are read again,
  and a lock file keeps two runs from overlapping.
- Each project's folder is read too (the cwd Claude Code recorded): CLAUDE.md and AGENTS.md
  (their rules, release and build sections first), the top of the README, package.json
  scripts, Makefile targets, the names in scripts/, bin/, tools/ and .github/workflows.
  Secrets are masked, and a folder that doesn't look like a project (or the home folder) is
  never read. A routine seen only in the files (a release checklist in CLAUDE.md) can be a
  pattern; it cites the files, and a file that wasn't there does not count.
- The skills and commands already in ~/.claude and each project's .claude/ are sent along, so a
  task that has its skill is not proposed again.
- The skill writer gets the project files as well, to use the real scripts and commands.
- The cards show where a task was seen ("Seen in CLAUDE.md, scripts/release.sh"); the empty and
  analysing texts say that the files are read, in the 16 languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-28 15:36:12 +00:00
Claude e1b6034929 brain skill: the newest conversation wins, and no link it did not see
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-28 15:25:05 +00:00
Claude b6c8e63fa7 brain patterns: merge duplicates, leave out brain's own runs
- one extra call merges the same task found in several projects or
  batches ('Trier les mails du matin' + 'Trier la boîte mail du matin')
- conversations started by a program are skipped: the 'brain enrich'
  keyword runs now carry the internal marker (older ones are recognised by
  their prompt), and so do the patterns and skill prompts
- the prompt tells Claude to ignore tool tests and automatic JSON requests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-28 15:06:18 +00:00
Claude 8a2266e6d0 Memory › Patterns: find the tasks that could become skills
The old cards counted conversations per project ('brain', 'coucou'...),
which are not habits, and their buttons wrote an empty skill template or
two useless lines in CLAUDE.md.

- brain patterns: Claude reads each project's conversations (title + first
  request, secrets masked) and finds the tasks you keep asking for, in at
  least 3 conversations. Cached in .state/patterns.json; a project is read
  again only when its conversations change; --cached for the page
- brain skill <id>: Claude writes a real SKILL.md from that task's latest
  conversations (your steps, preferences and corrections), as a draft
- brain install-skill <id>: copies the reviewed draft to ~/.claude/skills,
  backing up a skill of the same name first
- Patterns page: 'Could become a skill' cards (task, how often, a few of
  its conversations), Create the skill, review sheet, install on click.
  The CLAUDE.md button and the project cards are gone
- BrainRunner: brain gets its node and claude on PATH, and big outputs no
  longer block on the pipe
- 19 new strings in the 16 languages, 4 old ones removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-28 14:54:09 +00:00