Skip to content

feat: @ context references + Honcho config fixes#2343

Merged
teknium1 merged 3 commits into
mainfrom
hermes/hermes-31d7db3b
Mar 21, 2026
Merged

feat: @ context references + Honcho config fixes#2343
teknium1 merged 3 commits into
mainfrom
hermes/hermes-31d7db3b

Conversation

@teknium1

@teknium1 teknium1 commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

Summary

@ Context References (closes #682)

Inline @file:path, @folder:dir, @diff, @staged, @git:N, and @url: references that expand before the message reaches the LLM. Supports line ranges (@file:main.py:10-50), token budget enforcement (soft warn at 25%, hard block at 50%), and path sandboxing for gateway.

Core module from PR #2090 by @kshitijk4poor. CLI and gateway wiring rewritten against current main. Fixed asyncio.run() crash in gateway context.

Honcho Fixes (from #1960 / #1962 by @erosika)

  • Hide Honcho session banner when not explicitly configured (stray env var no longer triggers it)
  • Instance-local config via $HERMES_HOME/honcho.json with fallback to global
  • Default session strategy changed to per-directory

All 5685 tests pass.

Add explicitly_configured field to HonchoClientConfig — set when the
config has a hosts.hermes block or explicit enabled flag, vs auto-enabled
from a stray HONCHO_API_KEY env var.  Banner only shows when this is true.

Based on #1960 by @erosika, reimplemented without duplicating config parsing.
…strategy to per-directory

- Add resolve_config_path(): checks $HERMES_HOME/honcho.json first,
  falls back to ~/.honcho/config.json.  Enables isolated Hermes instances
  with independent Honcho credentials and settings.
- Update CLI and doctor to use resolved path instead of hardcoded global.
- Change default session_strategy from per-session to per-directory.

Part 1 of #1962 by @erosika.
@teknium1 teknium1 force-pushed the hermes/hermes-31d7db3b branch from 5c4fa36 to e183744 Compare March 21, 2026 18:42
@teknium1 teknium1 changed the title feat(honcho): instance-local config, host-scoped writes, tools startup context fix(honcho): instance-local config via HERMES_HOME, hide banner for unconfigured users Mar 21, 2026
…injection

Add @file:path, @folder:dir, @diff, @StaGeD, @git:N, and @url:
references that expand inline before the message reaches the LLM.
Supports line ranges (@file:main.py:10-50), token budget enforcement
(soft warn at 25%, hard block at 50%), and path sandboxing for gateway.

Core module from PR #2090 by @kshitijk4poor. CLI and gateway wiring
rewritten against current main. Fixed asyncio.run() crash when called
from inside a running event loop (gateway).

Closes #682.
@teknium1 teknium1 changed the title fix(honcho): instance-local config via HERMES_HOME, hide banner for unconfigured users feat: @ context references + Honcho config fixes Mar 21, 2026
@teknium1 teknium1 merged commit 2a5f86e into main Mar 21, 2026
1 check passed
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…31d7db3b

feat: @ context references + Honcho config fixes
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…31d7db3b

feat: @ context references + Honcho config fixes
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
…31d7db3b

feat: @ context references + Honcho config fixes
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…31d7db3b

feat: @ context references + Honcho config fixes
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
…31d7db3b

feat: @ context references + Honcho config fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: @ Context References — Scoped File, Folder, Diff & URL Injection in Messages

1 participant