Skip to content

Commit c438d81

Browse files
Complete Diogenes host runtime management
1 parent 2fbc46e commit c438d81

60 files changed

Lines changed: 2573 additions & 1294 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.env.example‎

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Odysseus UI — Environment Configuration
2-
# Copy this file to .env and fill in your values.
1+
# Diogenes (Odysseus UI) — Environment Configuration
2+
# setup.py and uvsetup.sh copy this file to .env on first setup.
33

44
# ============================================================
55
# LLM Configuration
@@ -64,12 +64,12 @@ SEARXNG_INSTANCE=http://localhost:8080
6464
# ODYSSEUS_DATA_DIR=C:\path\to\dir
6565

6666
# ============================================================
67-
# Ulysses host runtime layout
67+
# Diogenes host runtime layout
6868
# ============================================================
69-
# Ulysses does not scan the entire host. It resolves known projects from one
70-
# explicit microservices root (default: $HOME/Hermes):
71-
#
72-
# ULYSSES_MICROSERVICES_ROOT=/home/your-user/Hermes
69+
# Diogenes does not scan the entire host. It resolves known projects from one
70+
# explicit services root. uvsetup.sh confirms this path interactively and
71+
# writes the absolute result to .env. ${HOME}/Hermes is the portable default.
72+
ULYSSES_MICROSERVICES_ROOT=${HOME}/Hermes
7373
#
7474
# The native Services UI expects these projects beneath that root:
7575
# sandwich/
@@ -82,24 +82,24 @@ SEARXNG_INSTANCE=http://localhost:8080
8282
# bifrost/
8383
# signal-cli/
8484
#
85-
# Sandwich is detected at:
86-
# $ULYSSES_MICROSERVICES_ROOT/sandwich
87-
# Its Bun-owned node/npm/npx compatibility commands are detected from PATH.
85+
# Sandwich is detected in place. Diogenes checks this source tree and the
86+
# user-level command links, so a service manager's reduced PATH cannot hide it.
87+
ULYSSES_SANDWICH_ROOT=${ULYSSES_MICROSERVICES_ROOT}/sandwich
8888
#
8989
# Colibri sources and model containers are independent of the microservices
9090
# root. Override any path when your host uses a different layout:
91-
# ULYSSES_COLIBRI_GLM_ROOT=/home/your-user/Odysseus/colibri
92-
# ULYSSES_COLIBRI_HY3_ROOT=/home/your-user/Odysseus/colibri-hy3
93-
# ULYSSES_COLIBRI_GLM_MODEL=/home/your-user/colibri-models/mastouri--GLM-5.2-colibri-int4-g64-with-int8-mtp
94-
# ULYSSES_COLIBRI_HY3_MODEL=/home/your-user/colibri-models/UnderstandLing--Hy3-colibri-int4
91+
ULYSSES_COLIBRI_GLM_ROOT=${HOME}/Odysseus/colibri
92+
ULYSSES_COLIBRI_HY3_ROOT=${HOME}/Odysseus/colibri-hy3
93+
ULYSSES_COLIBRI_GLM_MODEL=${HOME}/colibri-models/mastouri--GLM-5.2-colibri-int4-g64-with-int8-mtp
94+
ULYSSES_COLIBRI_HY3_MODEL=${HOME}/colibri-models/UnderstandLing--Hy3-colibri-int4
9595
# ULYSSES_COLIBRI_GLM_PORT=8642
9696
# ULYSSES_COLIBRI_HY3_PORT=8643
9797
#
98-
# Optional exact vLLM/CUDA environment contract. When this absolute local path
99-
# points to a complete uv-compiled requirements lock, Cookbook replaces generic
100-
# "pip install -U vllm" controls with an idempotent uv Reconcile action. Remote
101-
# SSH targets keep their own normal package flow.
102-
# ULYSSES_VLLM_LOCK=/home/your-user/Odysseus/Ulysses-state/locks/ulysses-vllm-cuda13.lock
98+
# Diogenes uses requirements/diogenes-vllm-cuda13.lock by default. It pins the
99+
# verified Python 3.13 / CUDA 13 stack (vLLM 0.23.0, Torch 2.11.0, Triton
100+
# 3.6.0). Set an absolute override only when deliberately testing another
101+
# compiled lock. Remote SSH targets keep their own normal package flow.
102+
# ULYSSES_VLLM_LOCK=/absolute/path/to/an/alternate.lock
103103

104104
# ============================================================
105105
# Auth & Security
@@ -208,12 +208,13 @@ SEARXNG_INSTANCE=http://localhost:8080
208208
# needed there.
209209
# ODYSSEUS_INPROCESS_TASKS=1
210210

211-
# Built-in browser MCP provider: playwright (upstream default), camofox,
212-
# disabled, or auto. `auto` selects Camofox only when CAMOFOX_URL is set.
213-
# Camofox MCP is a stdio adapter and still needs an independent
214-
# camofox-browser service (default http://127.0.0.1:9377).
215-
# ODYSSEUS_BROWSER_MCP_PROVIDER=playwright
216-
# CAMOFOX_URL=http://127.0.0.1:9377
211+
# Diogenes defaults to Camofox and never silently registers Playwright. Set
212+
# disabled for no built-in browser MCP, or explicitly set playwright only on a
213+
# deployment that intends to use it. Camofox MCP is a stdio adapter and needs
214+
# the independent camofox-browser service managed in the Services screen.
215+
ODYSSEUS_BROWSER_MCP_PROVIDER=camofox
216+
CAMOFOX_URL=http://127.0.0.1:9377
217+
CAMOFOX_MCP_ROOT=${ULYSSES_MICROSERVICES_ROOT}/camofox-mcp
217218
# CAMOFOX_API_KEY=
218219
# CAMOFOX_PROFILES_DIR=
219220
# CAMOFOX_VIEWPORT=1366x768

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ venv/
1414
.env
1515
.env.bak.*
1616
!.env.example
17+
.ulysses-runtime.json
1718
# Local uv lockfile (optional, per-platform — see "Faster installs with uv" in README)
1819
requirements.lock
1920

‎components/sandwich/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Sandwich control command resolution at the user level.
2929
## Layout
3030

3131
- `bin/`: the canonical `sandwich` command and compatibility façades
32-
- `manifest.json`: versioned operations consumed by Ulysses
32+
- `manifest.json`: versioned operations consumed by Diogenes
3333
- `lib/`: shared Bun discovery and translation helpers
3434
- `config/`: managed Bun and shell configuration
3535
- `scripts/install-user.sh`: previewable user-level installer
@@ -94,7 +94,7 @@ Hermes commit match, rejects unrelated tracked changes, backs up the files it
9494
will replace, applies the pinned patch and Bun artifacts, performs frozen
9595
workspace installs, and rebuilds the TUI and Web workspaces. It never restarts
9696
Hermes or another service. `--allow-active` is an explicit human override, not
97-
an automatic Ulysses action.
97+
an automatic Diogenes action.
9898

9999
After a reviewed upstream Hermes update, maintainers can refresh the profile
100100
against an explicitly selected upstream reference:

‎config/ulysses/colibri-providers.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
},
119119
"upstream-auto": {
120120
"label": "Upstream auto-tier",
121-
"description": "Minimal current-dev auto-tier profile with no Ulysses tuning overrides.",
121+
"description": "Minimal current-dev auto-tier profile with no Diogenes tuning overrides.",
122122
"ram": "0",
123123
"auto_tier": true,
124124
"ctx": "4096",

‎config/ulysses/runtime-catalog.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"runtimes": [
44
{
55
"runtime_id": "ulysses.api",
6-
"label": "Ulysses API",
6+
"label": "Diogenes API",
77
"adapter": "native",
88
"ownership": "managed",
99
"source_root": "${ULYSSES_REPOSITORY_ROOT}",

‎config/ulysses/runtime-management.json‎

Lines changed: 56 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,17 @@
2626
"root": "${ULYSSES_MICROSERVICES_ROOT}/SEARXNG/searxng",
2727
"compose": "docker-compose.yml",
2828
"env_files": [".env"],
29-
"git_update": false,
29+
"git_update": true,
30+
"source_url": "https://github.com/searxng/searxng-docker.git",
31+
"source_branch": "master",
3032
"build_on_update": false,
3133
"ports": [7070]
3234
},
3335
{
3436
"id": "chroma.vector",
3537
"label": "Chroma",
3638
"category": "docker",
37-
"root": "${HOME}/Odysseus/odysseus",
39+
"root": "${ULYSSES_REPOSITORY_ROOT}",
3840
"compose": "docker-compose.yml",
3941
"env_files": [".env"],
4042
"compose_services": ["chromadb"],
@@ -51,8 +53,21 @@
5153
"role": "Shared Odysseus and Hermes browser backend",
5254
"root": "${ULYSSES_MICROSERVICES_ROOT}/camofox/camofox-browser",
5355
"package_json": "package.json",
54-
"env_files": [],
55-
"launch": ["bun", "start"],
56+
"env_files": [".env"],
57+
"config_files": [{"path": "start.sh", "format": "shell"}],
58+
"bootstrap_files": [
59+
{
60+
"path": ".env",
61+
"mode": "0600",
62+
"content": "# Camofox browser environment\nCAMOFOX_PORT=9377\n"
63+
},
64+
{
65+
"path": "start.sh",
66+
"mode": "0755",
67+
"content": "#!/usr/bin/env bash\nset -Eeuo pipefail\nROOT=\"$(cd -- \"$(dirname -- \"${BASH_SOURCE[0]}\")\" && pwd -P)\"\ncd \"$ROOT\"\nif [[ -f .env ]]; then\n set -a\n source .env\n set +a\nfi\nexec bun start\n"
68+
}
69+
],
70+
"launch": ["bash", "start.sh"],
5671
"tmux_session": "ulysses-camofox-browser",
5772
"git_update": true,
5873
"source_url": "https://github.com/jo-inc/camofox-browser",
@@ -70,9 +85,26 @@
7085
"env_files": [".env"],
7186
"config_files": [
7287
{"path": "config.json", "format": "json"},
73-
{"path": "startup.sh", "format": "shell"}
88+
{"path": "start.sh", "format": "shell"}
7489
],
75-
"launch": ["bash", "startup.sh"],
90+
"bootstrap_files": [
91+
{
92+
"path": ".env",
93+
"mode": "0600",
94+
"content": "# Bifrost host settings\nBIFROST_HOST=0.0.0.0\nBIFROST_PORT=7999\n"
95+
},
96+
{
97+
"path": "start.sh",
98+
"mode": "0755",
99+
"content": "#!/usr/bin/env bash\nset -Eeuo pipefail\nROOT=\"$(cd -- \"$(dirname -- \"${BASH_SOURCE[0]}\")\" && pwd -P)\"\ncd \"$ROOT\"\nif [[ -f .env ]]; then\n set -a\n source .env\n set +a\nfi\nexec npx -y @maximhq/bifrost@latest -app-dir . -port \"${BIFROST_PORT:-7999}\" -host \"${BIFROST_HOST:-127.0.0.1}\"\n"
100+
},
101+
{
102+
"path": "config.json",
103+
"mode": "0600",
104+
"content": "{\n \"$schema\": \"https://www.getbifrost.ai/schema\",\n \"client\": {\n \"enforce_auth_on_inference\": true,\n \"drop_excess_requests\": true\n },\n \"providers\": {}\n}\n"
105+
}
106+
],
107+
"launch": ["bash", "start.sh"],
76108
"tmux_session": "ulysses-bifrost",
77109
"package_spec": "@maximhq/bifrost@latest",
78110
"git_update": false,
@@ -134,9 +166,24 @@
134166
"capability_group": "messaging",
135167
"role": "Interactive Signal backend",
136168
"root": "${ULYSSES_MICROSERVICES_ROOT}/signal-cli",
137-
"env_files": [],
138-
"config_files": [{"path": "runconfig.sh", "format": "shell"}],
139-
"launch": ["bash", "runconfig.sh"],
169+
"env_files": [".env"],
170+
"config_files": [
171+
{"path": "start.sh", "format": "shell"},
172+
{"path": "runconfig.sh", "format": "shell"}
173+
],
174+
"bootstrap_files": [
175+
{
176+
"path": ".env",
177+
"mode": "0600",
178+
"content": "# Used when no legacy runconfig.sh exists.\nSIGNAL_ACCOUNT=\nSIGNAL_HTTP_HOST=127.0.0.1\nSIGNAL_HTTP_PORT=8090\n"
179+
},
180+
{
181+
"path": "start.sh",
182+
"mode": "0755",
183+
"content": "#!/usr/bin/env bash\nset -Eeuo pipefail\nROOT=\"$(cd -- \"$(dirname -- \"${BASH_SOURCE[0]}\")\" && pwd -P)\"\ncd \"$ROOT\"\nif [[ -f runconfig.sh ]]; then\n exec bash runconfig.sh\nfi\nif [[ -f .env ]]; then\n set -a\n source .env\n set +a\nfi\n: \"${SIGNAL_ACCOUNT:?Set SIGNAL_ACCOUNT in .env before starting signal-cli}\"\nexec signal-cli --account \"$SIGNAL_ACCOUNT\" daemon --http \"${SIGNAL_HTTP_HOST:-127.0.0.1}:${SIGNAL_HTTP_PORT:-8090}\"\n"
184+
}
185+
],
186+
"launch": ["bash", "start.sh"],
140187
"tmux_session": "ulysses-signal-cli",
141188
"update_module": "src.ulysses_signal_update",
142189
"update_args": ["--install-user"],
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Ulysses control-plane design
1+
# Diogenes control-plane design
22

33
## Scope
44

5-
Ulysses adds one service-management surface in the existing Odysseus UI and
5+
Diogenes adds one service-management surface in the existing Odysseus UI and
66
manages more than Docker:
77

88
- Docker Compose projects and containers;
@@ -23,7 +23,7 @@ Odysseus and Hermes remain separate agents:
2323
- the existing Odysseus MCP configuration UI controls only MCPs registered to
2424
the Odysseus agent;
2525
- Hermes profiles and watchdogs control only MCPs registered to Hermes;
26-
- the Ulysses Services UI may observe and operate either registry, but it
26+
- the Diogenes Services UI may observe and operate either registry, but it
2727
never copies, merges, or implicitly registers configuration between them;
2828
- shared host services such as Camofox, Firecrawl, SearXNG, Chroma, and model
2929
endpoints remain host-scoped dependencies that either agent may reference
@@ -73,7 +73,7 @@ record never makes a dead process “running.”
7373
2. Produce a read-only inventory and ambiguity report.
7474
3. Register the service as externally managed.
7575
4. Compare its live launch, environment keys, ports, and data paths with a
76-
proposed Ulysses definition.
76+
proposed Diogenes definition.
7777
5. Add read-only status, health, logs, and port views.
7878
6. Test the adapter against a fixture or human-started candidate.
7979
7. Preview configuration migration and rollback.
@@ -83,16 +83,16 @@ Up/Down/Restart/Update controls remain hidden or disabled until adoption.
8383

8484
## Execution isolation
8585

86-
Ulysses never relies on shell activation for managed commands. Each execution
86+
Diogenes never relies on shell activation for managed commands. Each execution
8787
starts with a sanitized environment, then applies its declared configuration:
8888

89-
- Ulysses Python uses Ulysses's `.venv`.
89+
- Diogenes Python uses Diogenes's `.venv`.
9090
- Hermes remains a native installation with its own upstream-managed venv/home.
9191
- Odysseus production retains its known-good `.venv`.
9292
- Bun/npx-compatible tools use Sandwich.
9393
- Compose projects retain their own project roots and environment files.
9494
- tmux panes receive the service execution contract explicitly and do not
95-
inherit whichever venv launched Ulysses.
95+
inherit whichever venv launched Diogenes.
9696

9797
## Configuration
9898

@@ -127,12 +127,12 @@ Colibri Hy3 runtimes. Sandwich detection/install/doctor is available there;
127127
service and package operations live in the Services JavaScript view.
128128

129129
The existing Cookbook Active view is the implementation precedent: it already
130-
tracks the vLLM task, readiness, PID, and tmux output. Ulysses generalizes that
130+
tracks the vLLM task, readiness, PID, and tmux output. Diogenes generalizes that
131131
component rather than embedding a second terminal manager.
132132

133133
The current six-pane workstation layout maps to:
134134

135-
| Current pane | Ulysses representation |
135+
| Current pane | Diogenes representation |
136136
| --- | --- |
137137
| signal-cli daemon on 8090 | Messaging service card + health/log/console |
138138
| Camofox periodic stats on 9377 | Browser service metrics + health/log |
@@ -155,7 +155,7 @@ required safety contract.
155155
## Browser and search capabilities
156156

157157
- Camofox/Camofox MCP is the preferred general browser provider.
158-
- Ulysses does not auto-install Playwright or Playwright Chromium.
158+
- Diogenes does not auto-install Playwright or Playwright Chromium.
159159
- An existing Playwright installation can be reported and explicitly disabled.
160160
- Firecrawl's internal browser remains private to Firecrawl.
161161
- Firecrawl plus SearXNG provide the canonical agent search/scrape path.
@@ -176,7 +176,7 @@ required safety contract.
176176

177177
| Runtime | Adapter | Initial state |
178178
| --- | --- | --- |
179-
| Ulysses API | native observation | managed |
179+
| Diogenes API | native observation | managed |
180180
| vLLM 0.23.0 / Agents A1 | native model endpoint | external |
181181
| Chroma | Docker Compose/container | external; persistence repair required |
182182
| Hermes gateway | systemd user/native | external |
@@ -211,7 +211,7 @@ the `odysseus_chromadb-data` volume at `/chroma/chroma`; the mounted directory i
211211
nearly empty while the active SQLite database and vector segments are under the
212212
container's unmounted `/data`.
213213

214-
Ulysses therefore:
214+
Diogenes therefore:
215215

216216
- reports the live persistence state as degraded without changing it;
217217
- pins the candidate image to the observed production digest;

0 commit comments

Comments
 (0)