Commit 9123371
mios-map + tool-aware refine + OpenAI-standard simplification
Three stacked operator asks landed in one bundle:
1. "Open a map / directions to <PLACE>" path:
* New mios-map shim. Bash, URL-encodes <PLACE>, builds the
correct Google Maps URL (search or directions mode), opens
via mios-open-url. Optional --directions [--from <origin>]
for routed maps. Returns 0/1/64 with clear stderr.
* Symlinked into /usr/local/{s,}bin via tmpfiles.d shim-links
(also added mios-hermes-soul-sync that was missing -- shim
count 37 -> 39).
2. "Prompt refining should be tool aware to be able to hint":
* New /usr/share/mios/owui/tool-hints.yaml -- canonical-verb
manifest with name + intent + example + tags for every
mios-* shim (25 verbs) PLUS an intent_patterns block for
composite asks ("near <PLACE>", "show me a picture of",
"open a map / directions"). Operator-editable; adding a
new shim is one YAML entry.
* Pipe init now loads the YAML, renders a 3-column markdown
table (Verb | Intent | Example), and substitutes into the
{tool_table} placeholder in _REFINE_SYSTEM. Falls back to
a noop string on YAML missing/parse error so refine never
crashes from a manifest typo.
3. "Simplify to OpenAI API standards for Day-0 Agents
understanding -- Do a pass on ALL system prompts" +
"generisize this to be completely platform agnostic and
plain generic english (or standard OpenAI patterns here)" +
"ABSOLUTELY NO HARDCODED ENGLISH STANDARD Linux and Windows
Terminologies" +
"the prompt should use thinking to plan a course of action in
the MiOS environments for it's refinements for global agents":
* _REFINE_SYSTEM rewritten from ~200 hardcoded lines (intent
table + 8 examples + MiOS-specific preamble) to ~95 lines of
generic role + schema + rules + 4 high-signal examples.
* Preamble is platform-agnostic: "You are a prompt refinement
layer for a multi-agent system. Rewrite the user's raw
request into a structured handoff the downstream orchestrator
agent will execute." No "MiOS-Agent", no "Hermes", no
"Operator: `mios`" -- the platform-specific verbs come from
the injected {tool_table} alone.
* New THINK FIRST section + THINKING line in the schema:
model reasons step-by-step (intent restate -> verb scan ->
step count -> delegate decision) before emitting the
structured handoff. Capped at 80 tokens. Mirrors user
language.
* 200 lines of LEGACY_REFINE_DEAD_BODY pruned from the file
entirely (was a leftover doc-anchor that wasn't loaded by
anything).
* Rendered prompt is now 8156 chars (down from ~22K).
* Live verified: pipe init succeeds, render contains all 4
example patterns, all 25 canonical verbs, the THINK FIRST
directive, the "near <PLACE>" intent rule. OWUI restart
clean.
Also: saved a project memory entry at
~/.claude/projects/C--/memory/project_mios.md so future Claude
sessions don't re-derive MiOS context from CLAUDE.md every time
(operator: "what is MiOS?! Remember!!").
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4631a4f commit 9123371
4 files changed
Lines changed: 451 additions & 196 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
0 commit comments