Wayfinder validates and searches project knowledge kept beside code.
- A bundle is portable Markdown: concepts with OKF YAML metadata, indexes and a log.
- Authority runs OKF → engine contract → Profile. Profiles add team rules without redefining OKF. Bitwild is optional; no Profile is a required base.
- Configuration selects; the lock pins.
wayfinder.jsonchooses the Profile source,getpins its Git revision, and validation uses the local lock/cache without fetching. - Validation is conformance:
PASS(exit 0),FAIL(1), orINCOMPLETE(2). It does not establish truth, relevance or sound judgment. - Search is local and explicitly indexed. It returns cited evidence, not answers. During refresh it can return the previous snapshot with notices; verify changed sources before relying on them.
- Source files are authoritative. Search indexes and graph views are derived and rebuildable.
- Skills separate mechanics from conventions. Generic skills handle OKF and Wayfinder; each Profile's skill carries its judgment.
- Libraries power CLI and MCP. Public Dart APIs support embedding. Project knowledge belongs in the project's bundle; this repository holds reusable tools, Profiles and illustrative examples.
On macOS Apple Silicon or Linux x64:
curl -fsSL https://raw.githubusercontent.com/btwld/wayfinder/main/tool/install.sh | shFor Windows PowerShell, upgrades, plugin setup and troubleshooting, see the installation guide. Native bundles include the local model and libraries; no Dart SDK or external embedding service is needed.
In a project with a configured knowledge/ bundle:
wayfinder get .
wayfinder validate knowledge
wayfinder index knowledge
wayfinder search knowledge "How is reporting implemented?"
wayfinder graph knowledge --output mermaid
wayfinder query --type Guide --output jsonReindex after edits; unchanged content reuses vectors. Search never implicitly
rebuilds an index. Without a path, wayfinder index and
wayfinder search "your question" use all configured project bundles.
Use validate --output json or --output sarif for automation; --fix repairs
stale generated indexes when the selected Profile requires them.
For a new bundle, invoke /adopt-knowledge-bundle; it preserves existing bundles
and asks which Profile to use. Bitwild is one option;
create-profile and the
two-rule example support independent rules.
This repository has no root knowledge/. In a clone, substitute
examples/bitwild for the get path and examples/bitwild/knowledge for the
bundle path in the commands above. See examples.
Install the skill family together. Authoring and retrieval
load as needed; adoption, assessment and Profile creation are explicitly invoked.
wayfinder get installs each Profile's skill into the project, pinned to its lock;
commit those skill directories with the lock.
Run wayfinder setup to configure project MCP. wayfinder mcp serves
validate, index, search, query and graph across configured bundles over stdio;
wayfinder mcp <bundle> selects one. See the
MCP guide.
Exact metadata views and saved query IDs are documented in structured queries.
| Need | Start here |
|---|---|
| Install or configure | Install, project configuration |
| Author, review or adopt knowledge | Skills, examples |
| Embed or understand the engine | API routes, contract, decisions |
| Integrate against the prepared 0.5 surface | Compatibility and support contract |
| Develop or release | Contributing, releasing |
packages/ holds core validation/projects and portable/native knowledge entry
points, CLI/MCP, embeddings, the SQLite storage driver, an optional ObjectBox
store, storage driver tests and the Flutter reader SDK.
profiles/bitwild/ owns Bitwild's rules, skill and history; skills/ is generic.
implementation/ and docs/schemas/ hold the engine contract. examples/ holds
illustrative bundles; docs/ holds guides and decisions; tool/ holds tooling.
Read AGENTS.md and the change requirements.
Run the core checks and report results. Development requires Dart 3.11 or later; stable SDK formatting is canonical.