Updated all documentation and configuration files: Documentation changes: - Updated README.md to describe LLMX as LiteLLM-powered fork - Updated CLAUDE.md with LiteLLM integration details - Updated 50+ markdown files across docs/, llmx-rs/, llmx-cli/, sdk/ - Changed all references: codex → llmx, Codex → LLMX - Updated package references: @openai/codex → @llmx/llmx - Updated repository URLs: github.com/openai/codex → github.com/valknar/llmx Configuration changes: - Updated .github/dependabot.yaml - Updated .github workflow files - Updated cliff.toml (changelog configuration) - Updated Cargo.toml comments Key branding updates: - Project description: "coding agent from OpenAI" → "coding agent powered by LiteLLM" - Added attribution to original OpenAI Codex project - Documented LiteLLM integration benefits Files changed: 51 files (559 insertions, 559 deletions) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
3.7 KiB
AGENTS.md Discovery
LLMX uses AGENTS.md files to gather helpful guidance before it starts assisting you. This page explains how those files are discovered and combined, so you can decide where to place your instructions.
Global Instructions (~/.llmx)
- LLMX looks for global guidance in your LLMX home directory (usually
~/.llmx; setCODEX_HOMEto change it). For a quick overview, see the Memory with AGENTS.md section in the getting started guide. - If an
AGENTS.override.mdfile exists there, it takes priority. If not, LLMX falls back toAGENTS.md. - Only the first non-empty file is used. Other filenames, such as
instructions.md, have no effect unless LLMX is specifically instructed to use them. - Whatever LLMX finds here stays active for the whole session, and LLMX combines it with any project-specific instructions it discovers.
Project Instructions (per-repository)
When you work inside a project, LLMX builds on those global instructions by collecting project docs:
- The search starts at the repository root and continues down to your current directory. If a Git root is not found, only the current directory is checked.
- In each directory along that path, LLMX looks for
AGENTS.override.mdfirst, thenAGENTS.md, and then any fallback names listed in your LLMX configuration (seeproject_doc_fallback_filenames). At most one file per directory is included. - Files are read in order from root to leaf and joined together with blank lines. Empty files are skipped, and very large files are truncated once the combined size reaches 32 KiB (the default
project_doc_max_byteslimit). If you need more space, split guidance across nested directories or raise the limit in your configuration.
How They Come Together
Before LLMX gets to work, the instructions are ingested in precedence order: global guidance from ~/.llmx comes first, then each project doc from the repository root down to your current directory. Guidance in deeper directories overrides earlier layers, so the most specific file controls the final behavior.
Priority Summary
- Global
AGENTS.override.md(if present), otherwise globalAGENTS.md. - For each directory from the repository root to your working directory:
AGENTS.override.md, thenAGENTS.md, then configured fallback names.
Only these filenames are considered. To use a different name, add it to the fallback list in your LLMX configuration or rename the file accordingly.
Fallback Filenames
LLMX can look for additional instruction filenames beyond the two defaults if you add them to project_doc_fallback_filenames in your LLMX configuration. Each fallback is checked after AGENTS.override.md and AGENTS.md in every directory along the search path.
Example: suppose your configuration lists ["TEAM_GUIDE.md", ".agents.md"]. Inside each directory LLMX will look in this order:
AGENTS.override.mdAGENTS.mdTEAM_GUIDE.md.agents.md
If the repository root contains TEAM_GUIDE.md and the backend/ directory contains AGENTS.override.md, the overall instructions will combine the root TEAM_GUIDE.md (because no override or default file was present there) with the backend/AGENTS.override.md file (which takes precedence over the fallback names).
You can configure those fallbacks in ~/.llmx/config.toml (or another profile) like this:
project_doc_fallback_filenames = ["TEAM_GUIDE.md", ".agents.md"]
For additional configuration details, see Config and revisit the Memory with AGENTS.md guide for practical usage tips.