feat(config): support config block in TOOLS.md #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/bash-env-for-agent-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Search for YAML configuration block in AGENTS.md first, then TOOLS.md. Returns the first file containing a valid YAML block.
Why
This enables gradual migration of configuration from AGENTS.md to TOOLS.md without breaking existing setups. Brad can move config blocks thoughtfully while both locations continue to work.
Changes
find_agents_md()intofind_workspace()andfind_config_file()find_workspace()locates directory containing either AGENTS.md or TOOLS.mdfind_config_file()checks AGENTS.md first, then TOOLS.md for a YAML blockTesting
Tested locally with
DEBUG_AGENT_CONFIG=1- correctly finds YAML block in AGENTS.md and loads config.