hermes-agent/website/docs/user-guide
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
..
features fix(honcho): isolate session routing for multi-user gateway (#1500) 2026-03-16 00:23:47 -07:00
messaging fix(gateway): make group session isolation configurable 2026-03-16 00:22:23 -07:00
_category_.json feat: add documentation website (Docusaurus) 2026-03-05 05:24:55 -08:00
checkpoints-and-rollback.md docs: explain checkpoints, /rollback, and git worktrees 2026-03-15 23:04:07 -07:00
cli.md docs: fallback providers + /background command documentation 2026-03-15 06:24:28 -07:00
configuration.md fix(docker): auto-mount host CWD to /workspace 2026-03-16 04:53:24 -07:00
git-worktrees.md docs: explain checkpoints, /rollback, and git worktrees 2026-03-15 23:04:07 -07:00
security.md docs: complete Daytona backend documentation coverage 2026-03-06 03:37:05 -08:00
sessions.md fix(gateway): make group session isolation configurable 2026-03-16 00:22:23 -07:00