Academy → Using HermesOfficial documentation · clear explanation

Context References

Context References

Essential9 minutes3 questions2026-08-09
The idea in one minute

Start with meaning, then move to detail.

This lesson explains Context References as part of operating Hermes with explicit security boundaries. You will learn what it does, when it matters, and the smallest safe test that proves it works.

If you are new

If you are new, do not memorize names. Focus on three questions: what problem does this solve, what access does it need, and how can you verify the result?

For hands-on use

For practice, inspect the first example, identify its effects, run it on test data, and compare the result with the source claim.

For specialists

For advanced readers, inspect Supported References, Usage Examples, CLI Tab Completion, then verify failure modes and version compatibility.

What do you need first?

You only need to know which files and accounts the agent may access.

What will you know?

A clear outcome before you read.

  • Understand Context References without assumed prior knowledge.
  • Separate the source description from what still needs testing in your environment.
  • Read the first command and identify its inputs and outputs before copying it.
Lesson terms

Short definitions before the details.

Approval & sandbox
Approval pauses a sensitive action before execution; sandboxing limits impact if something goes wrong.
Official page description

Inline @-syntax for attaching files, folders, git diffs, and URLs directly into your messages

Topic map

What does the source say, and in what order?

  1. 01
    Supported References

    Start here to understand the core idea or structure.

  2. 02
    Usage Examples

    Read this after the foundation, then connect it to the previous step.

  3. 03
    CLI Tab Completion

    Read this after the foundation, then connect it to the previous step.

  4. 04
    Line Ranges

    Read this after the foundation, then connect it to the previous step.

  5. 05
    Size Limits

    Read this after the foundation, then connect it to the previous step.

  6. 06
    Security

    Read this after the foundation, then connect it to the previous step.

  7. 07
    Sensitive Path Blocking

    Read this after the foundation, then connect it to the previous step.

  8. 08
    Path Traversal Protection

    Read this after the foundation, then connect it to the previous step.

  9. 09
    Binary File Detection

    Read this after the foundation, then connect it to the previous step.

  10. 10
    Platform Availability

    Finish here to verify the result and special cases.

Examples from the official page

Copy only after you understand the effect.

Review @file:src/main.py and suggest improvements What changed? @diff Compare @file:old_config.yaml and @file:new_config.yaml What's in @folder:src/components? Summarize this article @url:https://arxiv.org/abs/2301.00001
Check @file:main.py, and also @file:test.py.
@file:src/main.py:42 # Single line 42 @file:src/main.py:10-25 # Lines 10 through 25 (inclusive)
Try it now

Read the first command and identify its inputs and outputs before copying it.

Match every command to your installed Hermes version, review the files and accounts it can reach, and use non-sensitive data for the first test. If this explanation differs from the source, the official source wins.

Knowledge check

Three decisions before completion.

1. What is the source of truth when “Context References” changes?
2. What is the best way to apply this lesson?
3. What should happen before a step can modify files or an external account?