Learning guide: fw learn and the corpus
fw learns locally. It reads your git history, a code graph and your docs, stores them in SQLite, and searches them without a network call.
Commands
Section titled “Commands”| Command | Usage |
|---|---|
fw learn |
fw learn <status|harvest|distill|search|loop|systemd> [–xfs-root <dir>] |
fw corpus |
fw corpus <sources|status|sync|search|read|systemd> [–root <dir>] |
fw mem |
fw mem <add|search|timeline|get|list|stats|prune> |
fw graph |
fw graph <build <dir> [–json f] [–report f]|query <question>|explain <node>|path <a> <b>|report|export> |
fw docs |
fw docs <resolve|query|ingest|list> [lib] [topic] [–tokens 4000] |
The table is read from fw <command> --help.
Learn from a repository
Section titled “Learn from a repository”- Go to the repository.
- Harvest history, graph and docs.
fw learn harvest- Look at what was stored.
fw learn status- Search it.
fw learn search "how are releases published"Run it on a server
Section titled “Run it on a server”fw learn systemd prints a systemd unit for a VPS. fw learn loop repeats harvest and distill.
Reference docs
Section titled “Reference docs”fw corpus keeps a polite, resumable copy of design, Android, Chromium, Rust and Cargo docs. fw learn search includes it. See the fw corpus and fw learn pages.