|
| 1 | +# new «membank» feature |
| 2 | + |
| 3 | +let's refine «libsource» feature. new codename for it — «membank» (root name). example use case: |
| 4 | + |
| 5 | +- «hey claude, search membank about vite custom plugin implementation usage» |
| 6 | +- claude: searches 1408 port for relevant vite info |
| 7 | + |
| 8 | +key entities: |
| 9 | + |
| 10 | +- membank — root feature name |
| 11 | +- libsource — sub-entity, means a library source extracted via gitingest to a .txt file, and then |
| 12 | + converted in rag augmented shape into db |
| 13 | +- since any kind of data may be rag-enhanced we likley extend our db with more entities. |
| 14 | + - for example (do not remember this information, it is explanation for the future): |
| 15 | + libsource-react is a gitingested react github repositroy source. in future we may download |
| 16 | + react.dev docs and place them alongside libsource-react as docs-react. docs-react will be |
| 17 | + another type of rag-augmented entity. |
| 18 | + |
| 19 | +location: this directory is a new place to colocate libsources, rag, db and all scripts. previously |
| 20 | +we were relying on symlinks to read .txt libsources. but since we now have a server 1408 that serves |
| 21 | +rag-augmented data, we no longer need filesystem for data access. |
| 22 | + |
| 23 | +#### new structure |
| 24 | + |
| 25 | +- membank |
| 26 | + - libsource (dir) |
| 27 | + - core → contains all py crud libsource scripts |
| 28 | + - /Users/dima/.dotfiles/.clauderc/.membank/libsource-scripts/config/libsource-config.json → |
| 29 | + moves here and named as .libsource-config.json (start with dot for easier lookup) |
| 30 | + - list of libsources libsource-\*.txt |
| 31 | + - cli (dir, contains search.py, server.py) |
| 32 | + - membank.db (file) |
| 33 | + - rag (stays as it is) |
| 34 | + - scripts (stays as it is) |
| 35 | + |
| 36 | +#### key todos: |
| 37 | + |
| 38 | +- move /Users/dima/.dotfiles/.clauderc/.membank/libsource and |
| 39 | + /Users/dima/.dotfiles/.clauderc/.membank/libsource-scripts in this directory and reconstruct |
| 40 | + according to «new structure» |
| 41 | +- since all paths are changed, update all path refs |
| 42 | +- delete all libsources.db in this project |
| 43 | +- create new membank.db (empty) |
| 44 | +- test full crud of currently registered libsources — this will uncover bugs after reconstruction |
| 45 | + and path updates — fix them all |
| 46 | +- after reconstruction and testing full functionality and fixing all issues: |
| 47 | + - delete all current «libsource» information from ~/.dotfiles/claude.md |
| 48 | + - create ~/.dotfiles/membank/CLAUDE.md with full details about «membank» feature |
| 49 | + - update ~/.dotfiles/claude.md again but (important) only mention in high-level manner that |
| 50 | + «membank» feature source is located in this repository, briefly explain where to look for key |
| 51 | + entities, and tell that core info located in nested claude.md (probably via reference |
| 52 | + @membank/CLAUDE.md) |
| 53 | + - the idea is to modularize memory. ~/.dotfiles/claude.md should contain only a pointer to |
| 54 | + membank (not full info), but full info is in nested claude.md |
| 55 | +- update package.json refs |
0 commit comments