agentsmd

package
v1.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package agentsmd provides hierarchical AGENTS.md file loading with directory traversal. ABOUTME: Loads AGENTS.md files from directory traversal (git root → CWD) ABOUTME: Supports override and merge semantics inspired by OpenAI Codex

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadContext

func LoadContext() (string, error)

LoadContext loads AGENTS.md files from the directory hierarchy Strategy:

  1. Load global ~/.hex/AGENTS.md (if exists)
  2. Find git repository root
  3. Traverse from repo root → current working directory
  4. At each level, check for: - AGENTS.override.md (replaces previous REPOSITORY context, preserves global) - AGENTS.md (merges with previous context)

Returns the combined context string and any error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL