Skip to content

docs: split agent instructions into scoped context files#61460

Open
Malenford wants to merge 1 commit into
NousResearch:mainfrom
Malenford:docs/scope-agent-context-pr
Open

docs: split agent instructions into scoped context files#61460
Malenford wants to merge 1 commit into
NousResearch:mainfrom
Malenford:docs/scope-agent-context-pr

Conversation

@Malenford

Copy link
Copy Markdown

Move long-form guidance out of the root AGENTS.md into docs/agent-context references and add scoped AGENTS.md files for key subtrees. Keep load-bearing rules summarized in the root context to reduce startup prompt size while preserving discoverability.

What does this PR do?

Related Issue

Fixes #

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 🔒 Security fix
  • 📝 Documentation update
  • ✅ Tests (adding or improving test coverage)
  • ♻️ Refactor (no behavior change)
  • 🎯 New skill (bundled or hub)

Changes Made

How to Test

Checklist

Code

  • I've read the Contributing Guide
  • My commit messages follow Conventional Commits (fix(scope):, feat(scope):, etc.)
  • I searched for existing PRs to make sure this isn't a duplicate
  • My PR contains only changes related to this fix/feature (no unrelated commits)
  • I've run pytest tests/ -q and all tests pass
  • I've added tests for my changes (required for bug fixes, strongly encouraged for features)
  • I've tested on my platform:

Documentation & Housekeeping

  • I've updated relevant documentation (README, docs/, docstrings) — or N/A
  • I've updated cli-config.yaml.example if I added/changed config keys — or N/A
  • I've updated CONTRIBUTING.md or AGENTS.md if I changed architecture or workflows — or N/A
  • I've considered cross-platform impact (Windows, macOS) per the compatibility guide — or N/A
  • I've updated tool descriptions/schemas if I changed tool behavior — or N/A

For New Skills

  • This skill is broadly useful to most users (if bundled) — see Contributing Guide
  • SKILL.md follows the standard format (frontmatter, trigger conditions, steps, pitfalls)
  • No external dependencies that aren't already available (prefer stdlib, curl, existing Hermes tools)
  • I've tested the skill end-to-end: hermes --toolsets skills -q "Use the X skill to do Y"

Screenshots / Logs

Move long-form guidance out of the root AGENTS.md into docs/agent-context references and add scoped AGENTS.md files for key subtrees. Keep load-bearing rules summarized in the root context to reduce startup prompt size while preserving discoverability.
@alt-glitch alt-glitch added type/docs Documentation improvements P3 Low — cosmetic, nice to have comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint labels Jul 9, 2026

@tonydwb tonydwb left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Summary

Verdict: LGTM

What the PR Does

Split agent instructions into scoped context files, improving context management and organization.

Assessment

  • Scope: Large diff (1070 lines) but entirely documentation/instructional content restructuring.
  • Documentation: Per AGENTS.md, splitting large instruction files into scoped context files is desired (reduces prompt cache invalidation, improves maintainability).
  • No code, tests, or security-sensitive content affected.

Note: PR was previously unreviewed.


Reviewed by Hermes Agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint P3 Low — cosmetic, nice to have type/docs Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants