2.5 KiB
Agent instructions for Hermes WebUI
This file is the shared entry point for AI assistants working in this repository. Keep it project-specific and safe to publish. Do not put personal machine setup, private network details, credentials, tokens, or local-only workflow notes here.
Read first
Before making changes, read:
README.mdCONTRIBUTING.mdCHANGELOG.md
For architecture, testing, or setup work, also read the matching reference:
ARCHITECTURE.mdfor design constraints and current module layoutTESTING.mdfor local verification commands and manual test guidancedocs/onboarding.mdfor first-run onboarding behaviordocs/troubleshooting.mdfor diagnostic flows
Onboarding and reinstall support
If the task involves install, reinstall, bootstrap, first-run onboarding,
provider setup, local model server setup, Docker onboarding, WSL onboarding, or
support for a failed first run, read docs/onboarding-agent-checklist.md
before running commands or inspecting logs.
Follow that checklist's safety rules:
- use isolated
HERMES_HOMEandHERMES_WEBUI_STATE_DIRfor trials unless the human explicitly asks to use real state - do not delete or overwrite a real
~/.hermesdirectory without explicit approval - do not print API keys, OAuth tokens, cookies, full
.envfiles, fullauth.jsonfiles, or password hashes - collect non-secret status and log evidence before recommending a fix
Contribution style
- Keep changes focused on one logical problem.
- Prefer the existing Python + vanilla JavaScript structure over new dependencies or build steps.
- Update docs when changing setup, onboarding, runtime behavior, architecture, or testing guidance.
- Update
CHANGELOG.mdfor user-visible behavior, setup, workflow, or documentation changes that should be release-note ready. - For UI or UX changes, follow
CONTRIBUTING.md: include before/after evidence and test relevant responsive states.
Local state and secrets
Hermes WebUI can read and write real agent state, sessions, workspaces, credentials, and cron data. Treat local validation as potentially destructive unless you have confirmed the active state directories.
Prefer isolated trial state for experiments:
HERMES_HOME=/tmp/hermes-webui-agent-home \
HERMES_WEBUI_STATE_DIR=/tmp/hermes-webui-agent-state \
HERMES_WEBUI_PORT=8789 \
python3 bootstrap.py
Do not include private machine instructions in this tracked file. Use a git-ignored local note for personal workflow details.