Documentation
¶
Overview ¶
Package projectctx discovers project-level instruction files (AGENTS.md) and composes them into the agent's system prompt as a labelled section.
This is a layered capability, not core behavior: the agent loop works fine without it. It is gated by the config feature flag `features.agents_file` and wired in at the chat surface (cmd/neo), keeping the core policy-free.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Doc ¶
Doc is one discovered instruction file: where it came from and its contents.
func Load ¶
Load discovers AGENTS.md instruction files for a session rooted at cwd, returned in increasing priority (earlier = more general, later = more specific):
- ~/.neo/AGENTS.md user-global guidance
- AGENTS.md from the repo root down to cwd, outermost first
The upward walk stops at the repository root (the first ancestor containing .git) or the filesystem root. Missing or empty files are skipped — only a genuine read error (e.g. permissions) is returned.