Skip to content
Discussion options

You must be logged in to vote

Answers to all three, verified against the code.

1. port in config.json — not read in local_embedded

That config.json is the Hermes memory-plugin config; the embedded daemon never reads a port from it. In local_embedded the port comes only from the Hindsight profile, resolved in hindsight_embed/profile_manager.py::_resolve_ports with this priority:

  1. HINDSIGHT_API_PORT in the profile's .env — ~/.hindsight/profiles/<name>.env (or ~/.hindsight/embed for the default profile)
  2. the default profile's fixed 8888
  3. a legacy port in metadata.json (pre-0.9 profiles)
  4. a fresh allocation

Your 9368 is case 4, and it isn't actually random: _allocate_port hashes the profile name into the 8889–9888 range (sk…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nicoloboschi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants