hermes-agent/website/docs
Teknium 12724e6295
feat: progressive subdirectory hint discovery (#5291)
As the agent navigates into subdirectories via tool calls (read_file,
terminal, search_files, etc.), automatically discover and load project
context files (AGENTS.md, CLAUDE.md, .cursorrules) from those directories.

Previously, context files were only loaded from the CWD at session start.
If the agent moved into backend/, frontend/, or any subdirectory with its
own AGENTS.md, those instructions were never seen.

Now, SubdirectoryHintTracker watches tool call arguments for file paths
and shell commands, resolves directories, and loads hint files on first
access. Discovered hints are appended to the tool result so the model
gets relevant context at the moment it starts working in a new area —
without modifying the system prompt (preserving prompt caching).

Features:
- Extracts paths from tool args (path, workdir) and shell commands
- Loads AGENTS.md, CLAUDE.md, .cursorrules (first match per directory)
- Deduplicates — each directory loaded at most once per session
- Ignores paths outside the working directory
- Truncates large hint files at 8K chars
- Works on both sequential and concurrent tool execution paths

Inspired by Block/goose SubdirectoryHintTracker.
2026-04-05 12:33:47 -07:00
..
developer-guide feat: progressive subdirectory hint discovery (#5291) 2026-04-05 12:33:47 -07:00
getting-started docs: deep quality pass — expand 10 thin pages, fix specific issues (#4134) 2026-03-30 20:30:11 -07:00
guides fix: move pre_llm_call plugin context to user message, preserve prompt cache (#5146) 2026-04-04 16:55:44 -07:00
integrations docs: fix stale references across 8 doc pages 2026-04-03 23:30:29 -07:00
reference feat(gateway): add MATRIX_REQUIRE_MENTION and MATRIX_AUTO_THREAD support 2026-04-04 13:09:27 -07:00
user-guide feat: progressive subdirectory hint discovery (#5291) 2026-04-05 12:33:47 -07:00
index.md docs(voice): add comprehensive voice mode guide 2026-03-14 09:50:45 -07:00