Self-hosted AI workspace.
Find a file
Alexandre Teixeira 837fbfd0ea feat(runtime): resolve compact-runtime context window at turn preparation
The compact (clean v3) runtime had no effective context window: it learned a
limit only reactively from a provider 400/413 and its terminal metrics carried
no context_length. PR #41 addressed the reporting gap by probing provider
metadata between the last model byte and [DONE], unauthenticated, and folded
known-table and endpoint evidence into one "known" flag.

Resolve the window once, before the first model request, instead:

- src/agent_runtime/context_resolution.py adds a typed ContextResolution
  (effective value, evidence class, source, all observations, conflicts,
  provider_io, cached, secret-free probe errors). Evidence classes stay
  distinct: runtime_confirmed (llama.cpp /slots, /props, or a limit the
  provider stated this turn), provider_advertised (models catalog),
  operator_declared (client_runtime_context.model_context_window),
  known_table, unknown (0, never a default).
- Selection is deterministic: runtime beats provider beats table; an
  operator declaration caps measured evidence and replaces weaker evidence.
  Disagreements are recorded as conflicts; a declaration below a measured
  value is a cap, above it a contradiction.
- The provider probe forwards the turn's credentials only to the provider's
  own origin, runs URL resolution off the event loop, is bounded by one
  deadline, never raises, and caches remote results per credential
  fingerprint (shorter TTL for failures; local servers are re-probed).
- stream_preview resolves at preparation (or accepts a supplied resolution),
  seeds the proactive trim budget from it when evidence is not unknown, and
  terminal metrics report only the stored resolution plus any limit the
  provider stated during the turn. Metrics perform no discovery.

src/agent_loop.py and the regular runtime's legacy model_context probe are
unchanged. A conftest guard keeps tests that drive the compact runtime with
placeholder endpoints from performing real DNS/HTTP lookups.
2026-10-01 21:59:53 +01:00
.github ci: install FFmpeg for media integration tests 2026-09-23 01:08:20 +01:00
assets/branding refactor(docs): separate Pages site source (#6176) 2026-08-27 10:20:36 +02:00
companion fix(companion): honor configured pairing address (#6060) 2026-08-15 21:11:10 +02:00
config/searxng Generate SearXNG secret on first boot 2026-06-01 11:03:02 +09:00
core feat(runtime): enforce server request authority 2026-10-01 18:35:41 +01:00
docker Squash Odysseus development history 2026-09-11 06:04:19 +00:00
docs feat(runtime): enforce server request authority 2026-10-01 18:35:41 +01:00
integrations Add Codex and Claude document draft integration 2026-06-09 14:27:53 +09:00
licenses perf(static): vendor KaTeX and Mermaid, and load them on first use (#5994) 2026-08-16 22:43:12 +01:00
mcp_servers Preserve preview harness, editor, email and task improvements 2026-10-01 01:34:26 +00:00
plans Consolidate Odysseus agent harness and tool contracts 2026-09-17 10:07:40 +00:00
resources/skills Squash Odysseus development history 2026-09-11 06:04:19 +00:00
routes Merge pull request #44 from o3LL/fix/pty-session-group-teardown 2026-10-01 20:25:11 +01:00
scripts merge: reconcile Wave 1.1 with post-PR40 lab 2026-10-01 09:09:55 +01:00
services merge: reconcile PR 40 with current lab 2026-10-01 05:03:58 +01:00
specs Merge lab into refactor/email-library-package 2026-10-01 02:22:23 +01:00
src feat(runtime): resolve compact-runtime context window at turn preparation 2026-10-01 21:59:53 +01:00
static merge: reconcile PR 40 with current lab 2026-10-01 05:03:58 +01:00
swift/odysseus-mlx-image-bridge Merge verified Odysseus fixes 2026-07-23 14:49:02 +00:00
tests feat(runtime): resolve compact-runtime context window at turn preparation 2026-10-01 21:59:53 +01:00
website Merge pull request #45 from o3LL/fix/windows-bash-pipes-env 2026-10-01 20:20:45 +01:00
.dockerignore refactor(docs): separate Pages site source (#6176) 2026-08-27 10:20:36 +02:00
.env.example docs: generate the ODYSSEUS_* configuration reference from the source 2026-09-30 15:11:19 +02:00
.gitattributes perf(static): vendor KaTeX and Mermaid, and load them on first use (#5994) 2026-08-16 22:43:12 +01:00
.gitignore feat(scripts): add odysseus-dev, a per-worktree isolated boot 2026-09-25 17:35:47 +02:00
ACKNOWLEDGMENTS.md merge: reconcile PR 40 with current lab 2026-10-01 05:03:58 +01:00
app.py fix(auth): swap the API token cache atomically instead of clearing it 2026-09-30 16:07:12 +02:00
build-macos-app.sh refactor(docs): separate Pages site source (#6176) 2026-08-27 10:20:36 +02:00
build-windows-portable.ps1 feat(launcher): add portable windows launcher (#976) 2026-06-16 04:58:16 +01:00
CONTRIBUTING.md chore: update repository URLs after organization transfer (#5622) 2026-07-20 16:43:47 +02:00
docker-compose.gpu-amd.yml merge: reconcile PR 40 with current lab 2026-10-01 05:03:58 +01:00
docker-compose.gpu-nvidia.yml merge: reconcile PR 40 with current lab 2026-10-01 05:03:58 +01:00
docker-compose.yml Preserve preview harness, editor, email and task improvements 2026-10-01 01:34:26 +00:00
Dockerfile Squash Odysseus development history 2026-09-11 06:04:19 +00:00
HARNESS_VERSION reserve wall time for artifact completion 2026-09-19 12:45:09 +00:00
install-service.sh Odysseus v1.0 2026-05-31 23:58:26 +09:00
launch-windows.ps1 fix(mcp): stop assuming http://localhost:7000 for the OAuth callback (#6032) 2026-08-15 23:09:01 -06:00
launcher.py Squash Odysseus development history 2026-09-11 06:04:19 +00:00
LICENSE chore: backport main-only changes to dev AGPL relicense + Cookbook serve fix (#3704) 2026-06-09 23:20:34 +02:00
odysseus-ui.service fix: systemd service should serve on port 7000 to match Docker/setup/README (#1297) 2026-06-03 02:04:37 +09:00
Odysseus.spec feat(launcher): add portable windows launcher (#976) 2026-06-16 04:58:16 +01:00
package-lock.json Squash Odysseus development history 2026-09-11 06:04:19 +00:00
package.json Squash Odysseus development history 2026-09-11 06:04:19 +00:00
pyproject.toml test: add fast lane and duration visibility (#3659) 2026-06-09 20:11:47 +02:00
README.md Harden maintainer-preview harness and review fixes 2026-09-21 06:54:03 +00:00
requirements-optional.txt Squash Odysseus development history 2026-09-11 06:04:19 +00:00
requirements.txt Harden maintainer-preview harness and review fixes 2026-09-21 06:54:03 +00:00
ROADMAP.md Merge verified Odysseus fixes 2026-07-23 14:49:02 +00:00
SECURITY.md fix(auth): derive the session cookie Secure flag from the request scheme (#6048) 2026-08-16 22:56:36 +01:00
setup.py fix(setup): load .env so a pre-seeded admin password is honored on native installs (#4787) 2026-06-23 20:08:05 +02:00
start-macos.sh fix(mcp): stop assuming http://localhost:7000 for the OAuth callback (#6032) 2026-08-15 23:09:01 -06:00
THREAT_MODEL.md fix(review): harden scholarly redirects, editor draft limits, and threat model 2026-09-23 12:53:06 +01:00
update_windows.bat Windows: add Docker update script 2026-06-02 20:45:32 +09:00

Odysseus

A self-hosted AI workspace for chat, agents, research, documents, email, notes, calendar, and local model workflows.

Quick Start · Setup Guide · Contributing · Roadmap

Packaging status

Odysseus interface


Quick Start

dev is the default branch and gets the newest changes first. Use main if you want the more curated branch.

git clone https://github.com/odysseus-dev/odysseus.git
cd odysseus
cp .env.example .env
docker compose up -d --build

Open http://localhost:7011 when the containers are healthy. The first admin password is printed in docker compose logs odysseus.

Native installs, GPU notes, Windows/macOS instructions, HTTPS, and configuration live in the setup guide.

Features

  • Chat + Agents — local/API models, tools, MCP, files, shell, skills, and memory.
  • Cookbook — hardware-aware model recommendations, downloads, and serving.
  • Deep Research — multi-step web research with source reading and report generation.
  • Compare — blind side-by-side model testing and synthesis.
  • Documents — writing-first editor with AI edits, suggestions, Markdown, HTML, CSV, and syntax highlighting.
  • Email — IMAP/SMTP inbox with triage, tags, summaries, reminders, and reply drafts.
  • Notes, Tasks + Calendar — reminders, todos, scheduled agent tasks, and CalDAV sync.
  • Extras — gallery/image editor, themes, uploads, web search, presets, sessions, and 2FA.

Demo

A full hover-to-play tour lives on the Odysseus landing page. Its source lives under website/.

Contributing

Help is welcome. The best entry points are fresh-install testing, provider setup bugs, mobile/editor polish, docs, and small focused refactors. See CONTRIBUTING.md and ROADMAP.md.

Security

Odysseus is a self-hosted workspace with powerful local tools. Keep auth enabled, keep private data out of Git, and do not expose raw model/service ports publicly.

  • Keep AUTH_ENABLED=true for any network-accessible deployment.
  • Keep LOCALHOST_BYPASS=false outside local development.

Deployment details are in the setup guide.

Star History

Star History Chart

License

AGPL-3.0-or-later -- see LICENSE and ACKNOWLEDGMENTS.md.