-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathllms.txt
More file actions
97 lines (70 loc) · 6.27 KB
/
Copy pathllms.txt
File metadata and controls
97 lines (70 loc) · 6.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Wayfinder
> Wayfinder is the deterministic model router built for Omarchy. It gives coding agents one loopback endpoint, selects an eligible local or hosted destination, and records prompt-free route and delivery receipts.
Use the Omarchy plugin as the primary installation path. The Router is a separate Rust process and remains the routing authority when the shell reloads. The scored request path is offline, deterministic, and keyless; provider credentials are resolved only after a destination is selected.
For an Omarchy installation, ask the user to review the repository and then run:
```sh
omarchy plugin add https://github.com/asdecided/omarchy-wayfinder.git
cd ~/.config/omarchy/plugins/io.github.asdecided.wayfinder
./install.sh
```
Then ask the user to open the Wayfinder bar item and choose **Set up Wayfinder**. The plugin creates only a missing policy, validates it, and installs the independent user service. Never replace an existing policy, provider credential, coding-agent configuration, or independently installed Router binary.
For the local-only first-success path, discover fixed loopback catalogs, explicitly choose a returned model, initialize a no-clobber policy, start the Router, and prove one real routed response:
```sh
wayfinder-router local discover --json
wayfinder-router init --preset local --endpoint http://127.0.0.1:11434 --model MODEL
wayfinder-router serve
wayfinder-router local probe --endpoint http://127.0.0.1:8787 --model local --json
```
Discovery never scans the network, installs a runtime, pulls a model, or chooses on the user's behalf. The probe sends one fixed public prompt and reports only bounded delivery evidence; it never prints the model response. A policy is not created and readiness is not claimed unless every explicit step succeeds.
For a two-arm local/OpenAI policy outside the panel, run:
```sh
wayfinder-router init --preset hybrid
wayfinder-router doctor
wayfinder-router serve
```
`init` is no-clobber. Automatic presets run deterministic first-run calibration against the bundled, checksum-recorded developer corpus and emit the static result into the new policy. The calibration does not inspect retained user prompts or call a model. Set `OPENAI_API_KEY` in the user's existing credential boundary before delivery; never write its value into the policy or output.
Connect a supported coding agent only after showing the generated recipe to the user:
```sh
wayfinder-router connect codex
wayfinder-router connect claude-code
wayfinder-router connect opencode
wayfinder-router connect pi
wayfinder-router connect aider
```
For Omarchy's explicit agent-routing mode, Codex, Claude Code, and OpenCode can
be launched without changing client configuration:
```sh
wayfinder-router exec codex -- codex
wayfinder-router exec claude-code -- claude
wayfinder-router exec opencode -- opencode
```
`exec` validates Router health, a ready destination, the Wayfinder-owned `auto`
model, and the required wire endpoint before it replaces the process. Never
bypass a failed probe by launching the original command directly. Pi has no
verified no-write endpoint override and must remain on the reviewed `connect
pi` path; do not read or edit its `models.json` to approximate this contract.
Use `wayfinder-router doctor --json` for bounded diagnosis. A `routing-distribution` warning means at least 20 scored automatic requests used only one configured arm. Do not suppress the warning by inventing traffic or lowering a threshold blindly; review the starter receipt or calibrate with representative labelled JSONL.
Custom calibration accepts rows shaped as `{"text":"...","label":"local|cloud"}`. `--distill-lexicon` learns a bounded static vocabulary and weight from labels, then emits TOML that the pure Rust scorer evaluates without a network, model, embedding dependency, or credential:
```sh
wayfinder-router calibrate prompts.jsonl \
--costs local=0,cloud=1 \
--quality-penalty 2 \
--distill-lexicon \
--out calibrated.toml
```
`--out` is also no-clobber. Review the generated policy and held-out evidence before activating it. Do not describe the bundled corpus or distilled vocabulary as a universal accuracy claim.
To reverse a plugin-owned Router upgrade, run `./install.sh --rollback-router` from the installed plugin. To remove an owned project profile, use `wayfinder-router project rollback --json`. Neither operation authorizes deletion of a user policy, repository, credential, or independently installed binary.
## Start here
- [Repository README](https://github.com/asdecided/WayfinderRouter/blob/main/README.md): Product boundaries, installation, build, endpoints, and verification.
- [Omarchy plugin](https://github.com/asdecided/omarchy-wayfinder): Flagship plugin source, installer, bar surface, and release authority.
- [Coding-agent quick starts](https://github.com/asdecided/WayfinderRouter/blob/main/docs/coding-agent-quickstarts.md): Reviewed Codex, Claude Code, OpenCode, Pi, and Aider connection recipes.
- [Omarchy troubleshooting](https://github.com/asdecided/omarchy-wayfinder/blob/main/docs/troubleshooting.md): Bounded diagnostics, updates, recovery, and rollback.
## Routing and calibration
- [Lexical routing](https://github.com/asdecided/WayfinderRouter/blob/main/docs/lexical-routing.md): Feature, lexicon, calibration, and evidence caveats.
- [Standalone deterministic Router decision](https://github.com/asdecided/WayfinderRouter/blob/main/decisions/WF-ADR-0001-standalone-deterministic-router.md): Request-time purity and product boundary.
- [Calibration and classifier decision](https://github.com/asdecided/WayfinderRouter/blob/main/decisions/WF-ADR-0003-calibration-and-classifier.md): Offline labelled-data contract.
- [Developer starter threshold decision](https://github.com/asdecided/WayfinderRouter/blob/main/decisions/WF-ADR-0078-evidence-backed-developer-starter-threshold.md): Corpus, objective, defaults, and limitations.
## Operations and contribution
- [Managed gateway deployment](https://github.com/asdecided/WayfinderRouter/blob/main/docs/managed-gateway-deployment.md): Fail-closed network-exposed surface.
- [Contributing](https://github.com/asdecided/WayfinderRouter/blob/main/CONTRIBUTING.md): Required invariants and test expectations.
- [Security policy](https://github.com/asdecided/WayfinderRouter/blob/main/SECURITY.md): Reporting and security boundaries.