Commit Graph
12 Commits
Author SHA1 Message Date
LouisandClaude de2eef8438 PR Triage: a Mochi that sorts the whole PR queue every morning (#1277)
A ready-made Mochi (on: pr-queue, daily 07:30) for repositories that get more
pull requests than one can read. brain reads the open queue with gh, sorts
the new ones and a slice of the backlog against the repository's CLAUDE.md
and every title (to find duplicates): ready, needs work, duplicate or against
the rules, can wait. What it would close is one "close" proposal (15 at
most, each with its own comment), closed only on the click, never on its
own. It never merges and stays on the Mac.
brain 0.14.0.


Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-03 18:36:41 +00:00
LouisandClaude b7366038dc Mochis: teams, a notebook of what they learn, export and import (#1273)
- Teams (10): a Mochi joins a team (Code, Quality, Release, Watch, Memory or
  your own, with its colour). The pills sort them by team; tiles and sheets
  show it; ready-made Mochis join theirs.
- Its own memory (32): "Learns from its runs" keeps a notebook. After a run
  it writes one "To remember:" line, kept out of its result, read again next
  time. The sheet lists it, one line or all can be forgotten.
- Sharing (33): export a Mochi or its whole team to a .mochis.json file (no
  repository path, no key), import one from a file or a GitHub link, with a
  preview. Imported Mochis arrive off, never autonomous, code Mochis on the
  repository picked.
- Telegram answers lose their markdown marks.
brain 0.13.0: team and learns fields, `mochi notes`, `mochi export`,
`mochi import`.


Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-03 17:05:00 +00:00
LouisandClaude 9fa806ecc5 Mochis on Telegram: reports, morning team recap, talk and approve from the chat (#1269)
Mochis → Telegram: paste a @BotFather token (Keychain), pair one chat with
/start and a code, and the Mochis write there after each run or in one
morning recap. From the chat: /mochis, /waiting, /recap, /team <mission>,
/run /last /pause /wake, @Name or a reply to talk to a Mochi. Proposals only
go to GitHub on a button tap. Per-Mochi switch for who writes there.
brain 0.12.0: `mochi run --ask` adds what you asked to the run.


Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-03 14:46:48 +00:00
LouisandClaude 85cb93526c Mochis: a team lead for missions, and Mochis that wake after another (#1268)
Team lead, at the top of the team: a mission in a sentence, Claude picks
which Mochis do it and in what order (brain team plan), the plan shows
with each one's reason and can be trimmed, and on a click they run one
after the other, each reading the mission and what the ones before wrote
(brain team run). Each step shows working, done or failed, and opens its
result.

A new wake-up, "After another Mochi": when the Mochi it follows ends a
run well, it starts with what that one wrote. A Mochi runs once per
chain, so no loop; chains stay on the Mac (not in the Cloud). The
creator offers it, with the Mochi to follow.

brain 0.11.0: team plan, team run, on: after (+ tests).


Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-03 14:08:25 +00:00
LouisandClaude f6a156b68e Mochis: team grouped by what wakes them, Mochi sheet, create your own in 4 steps (#1258)
The Team page:
- what waits for your click comes first, from every Mochi
- the Mochis are grouped by what wakes them up (a time, GitHub, a mail,
  a watch, a click), as tiles, as the list, or as today's timeline
- a click on a Mochi opens its sheet: next wake, runs and success over
  30 days, API value, and its log, each result opening in place

New Mochi opens a creator in 4 steps (job, what wakes it, what it may
do, its look), the Mochi taking shape on the left. Its job can be
described in one sentence: Claude writes the name, instructions, wake-up
and outfit (brain mochi draft). A dry run shows what it would write
before it's created (brain mochi try): nothing saved or posted, a code
Mochi only reads in a copy.

brain 0.10.0: mochi draft, mochi try, today's runs in mochi list.


Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-03 02:01:23 +00:00
LouisandClaude 3a7eaba620 Coucou Cloud: every ready-made Mochi but the Memory Gardener (#1248)
The Cloud ran only PR Reviewer. It now runs what each Mochi needs:
- GitHub events: new PR (PR Reviewer), new issue (Issue Triage), an issue
  labelled for an unscheduled Night Shift, a failed run on the default
  branch (CI Fixer, its failed logs in the prompt);
- schedules in the user's time zone, once per slot (Night Shift takes the
  oldest labelled issue it hasn't worked on, Deps & Security, Ship Log from
  the week's commits);
- a click on the Mac (POST /v1/mochis/:id/run: Release Prep, or any of them now);
- Prod Watch every 15 minutes, no AI, a run only when an address changes.

A Mochi that changes files is asked, once its report is written, to run a
pack script mounted in the sandbox: the changed files go to the session's
outputs and the Worker keeps them until the click, which makes the draft PR
with GitHub's API (blobs, tree, commit, a mochi/ branch, the PR). Nothing is
pushed from the sandbox, which keeps read-only tokens; each GitHub token asks
only what its step needs. Issue Triage's reply is posted on the issue.

Mac: brain 0.9.1 sends kind, tools, schedule, label, addresses, runs a day
and the time zone; a Cloud Mochi no longer runs on the Mac's schedule, Run
now goes to the Cloud, turning one on or off reaches the Cloud, and Cloud
runs keep their link and what started them. The Cloud page lists Prod Watch
and says why a Mochi stays on the Mac.


Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-01 15:22:48 +00:00
LouisandClaude 937676765e Release prep: Coucou 0.9.0, the first launch, Coucou Cloud, Plans (#1247)
CHANGELOG 0.9.0 (the new onboarding, Coucou Cloud at $9 a month on your own key, Plans,
Settings in one place, Autonomous Mochis, the details), the README row, the Cloud in the
Mochis section and Mochi's room out of the feature lists (it left the window in #1210),
What's new in the 16 languages (3 items), version 0.9.0 build 31 in project.yml and
Info.plist, and coucou-brain 0.9.0 with the Cloud commands in its README.


Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-01 14:20:07 +00:00
Claude d957aa8742 Release prep: Coucou 0.8.0, ready-made Mochis
CHANGELOG 0.8.0 (ready-made Mochis, nothing leaves without the click, nine outfits,
the details), the README row and a sentence in the Mochis section, What's new in the
16 languages (3 items), version 0.8.0 build 30 in project.yml and Info.plist, and
coucou-brain 0.8.0 with the ready-made Mochis in its README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-29 21:03:23 +00:00
Louis 4d237b294b brain: read the version from package.json (#1185) (#1186)
Prepared by the Night Shift Mochi (Coucou).
2026-11-29 21:40:33 +01:00
Claude 38f2b6b2c0 Release prep: Coucou 0.7.0 (GitHub), Memory and Mochis
0.7.0 now comes out with Memory and the Mochis; Botan and the iPhone app's 3.0 wait for Botan's
launch (their CHANGELOG lines are kept in a comment at the top of CHANGELOG.md, and the What's new
entry is rewritten: Memory, Mochis, draft replies, in the 16 languages). README: the 0.7.0 row and
the two new sections of the window.

brain becomes the npm package coucou-brain 0.7.0 (it was never published as @coucou/brain, which
the Memory page asked to install): files, engines, postinstall pins the Node that can load
better-sqlite3, prepublishOnly builds, an English README head. The user's settings move to
~/CoucouBrain/.state/config.json so an npm update keeps them (brain.config.local.json next to the
package still counts, for a dev checkout), and the language defaults to the Mac's instead of
French. The Memory and Mochis pages say npm install -g coucou-brain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-28 23:33:01 +00:00
Louis RailleandClaude Sonnet 4.6 a8d0e713c8 brain: step 2 — MCP server + hooks (FTS5, corrections, pause)
- brain/src/fts.ts : index FTS5 SQLite (BM25 OR-query, diacritics, stopwords FR+EN,
  prefix queries, cross-project threshold -6.0, mesures exclues, session dedup)
- brain/src/mcp/server.ts : serveur MCP stdio 6 outils (brain_index, brain_search,
  brain_project, brain_rules, brain_get, brain_correct)
- brain/hooks/brain-session-start.js : hook SessionStart (~1500 tokens, corrections
  global+projet, décisions actives, tâches ouvertes, guard COUCOU_BRAIN_INTERNAL)
- brain/hooks/brain-prompt.js : hook UserPromptSubmit (FTS < 280 ms, 5 résultats
  ~1000 tokens, dedup session, guard interne)
- brain/hooks/package.json : force CJS pour les hooks dans le paquet ESM
- brain/launchd/fr.louisraille.brain-ingest.plist : agent launchd horaire
- brain/src/cli.ts : commandes mcp, fts (debug), pause, resume, doctor + correct
  --scope + rebuild FTS après ingest/rebuild
- brain/tests/fts.test.ts + hooks.test.ts : 114 tests, 5 suites

Validé sur 4 scénarios : portfo/bento ✅, sbe-hub/migration ✅,
reels/corrections ✅, math sans rapport → rien ✅

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-11-27 02:41:25 +01:00
Louis RailleandClaude Sonnet 4.6 a756079ade feat(brain): add brain/ module — session and repo digestion pipeline
TypeScript CLI that digests Claude Code sessions and git repos into
Markdown pages in ~/CoucouBrain/. Incremental (SQLite manifest),
secret masking with 31 unit tests, chunking for long sessions, two-pass
LLM (chunk summariser → digest, project page merge), stats command.

- brain ingest [--dry-run] [--limit N] [--project X] [--since date]
- brain stats --pretty
- 31/31 mask unit tests passing, tsc clean

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-11-26 13:40:01 +01:00