Commit fb9f807
nobody
feat(sync-gbrain): default to --strategy auto (code + markdown)
The /sync-gbrain skill previously ran 'gbrain sync --strategy code' for
the code-stage walk, silently skipping every markdown file in the repo. For
code repos with non-trivial docs (READMEs aside — those are still skipped
by gbrain's own hard-coded list), this meant guides, ADRs, design docs,
and architectural notes never reached the brain.
Switch the page-creating walk in the code stage to --strategy auto so a
single sync pass indexes both code AND markdown. Full-mode behavior is
preserved: after the walk, --full still runs 'gbrain reindex-code --yes'
to force chunker-version re-embed of code pages (upstream garrytan#1639/garrytan#1642's
walk+reindex split, kept intact).
Three call sites updated: the dry-run summary string, the spawnGbrain
walk call, and the walk's error-summary message. Doc block at top of
file and the inline comment block above the walk are updated to describe
the new behavior. sync-gbrain/SKILL.md.tmpl's architecture note
('native code surfaces ... gbrain sync --strategy auto') is updated to
match; generated SKILL.md files regenerated via 'bun run gen:skill-docs
--host all' (all 9 hosts + Claude default).
Personal fork only — not pushed upstream.1 parent 61c9a20 commit fb9f807
3 files changed
Lines changed: 18 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
631 | 635 | | |
632 | 636 | | |
633 | 637 | | |
634 | | - | |
| 638 | + | |
635 | 639 | | |
636 | 640 | | |
637 | 641 | | |
| |||
713 | 717 | | |
714 | 718 | | |
715 | 719 | | |
716 | | - | |
717 | | - | |
718 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
719 | 724 | | |
720 | 725 | | |
721 | 726 | | |
722 | 727 | | |
723 | | - | |
| 728 | + | |
724 | 729 | | |
725 | 730 | | |
726 | 731 | | |
| |||
732 | 737 | | |
733 | 738 | | |
734 | 739 | | |
735 | | - | |
| 740 | + | |
736 | 741 | | |
737 | 742 | | |
738 | 743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | | - | |
| 758 | + | |
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments