hermes-agent/website/docs
Bartok9 3543b755af fix(docker): auto-mount host CWD to /workspace
Fixes #1445 — When using Docker backend, the user's current working
directory is now automatically bind-mounted to /workspace inside the
container. This allows users to run `cd my-project && hermes` and have
their project files accessible to the agent without manual volume config.

Changes:
- Add host_cwd and auto_mount_cwd parameters to DockerEnvironment
- Capture original host CWD in _get_env_config() before container fallback
- Pass host_cwd through _create_environment() to Docker backend
- Add TERMINAL_DOCKER_NO_AUTO_MOUNT env var to disable if needed
- Skip auto-mount when /workspace is already explicitly mounted
- Add tests for auto-mount behavior
- Add documentation for the new feature

The auto-mount is skipped when:
1. TERMINAL_DOCKER_NO_AUTO_MOUNT=true is set
2. User configured docker_volumes with :/workspace
3. persistent_filesystem=true (persistent sandbox mode)

This makes the Docker backend behave more intuitively — the agent
operates on the user's actual project directory by default.
2026-03-16 04:53:24 -07:00
..
developer-guide fix(honcho): isolate session routing for multi-user gateway (#1500) 2026-03-16 00:23:47 -07:00
getting-started Merge pull request #1360 from NousResearch/hermes/hermes-aa701810 2026-03-14 19:53:40 -07:00
guides docs: clarify gateway service scopes (#1378) 2026-03-14 21:17:41 -07:00
reference fix: restore local STT fallback for gateway voice notes 2026-03-15 21:51:40 -07:00
user-guide fix(docker): auto-mount host CWD to /workspace 2026-03-16 04:53:24 -07:00
index.md docs(voice): add comprehensive voice mode guide 2026-03-14 09:50:45 -07:00