Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 9, 2025

With remote file support via -d flag, system-wide paths and "agents" fallbacks are no longer needed.

Code Changes

Removed search paths:

  • /etc/agents/tasks and /etc/agents/rules (system-wide)
  • /etc/opencode/rules (system-wide)
  • agents/tasks and agents/rules fallbacks for remote directories

Standardized behavior:

  • Remote directories now use only .agents/{tasks,rules} paths
  • Search hierarchy simplified to: project → parents → user home

Documentation

Updated all references in:

  • README.md
  • docs/reference/search-paths.md
  • docs/reference/file-formats.md
  • docs/explanation/architecture.md

Migration

Users previously using /etc/agents can specify remote directories instead:

# Before: system-wide /etc/agents/rules
# After:  remote directory
coding-context-cli -d git::https://github.com/org/shared-rules.git fix-bug
Original prompt

Remove support for /etc/agents and for "agent" sub paths when ".agents" exists. With support for remote files, we don't need these anymore.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits November 9, 2025 20:20
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove support for /etc/agents and agent sub paths Remove /etc/agents and "agents" fallback paths Nov 9, 2025
Copilot AI requested a review from alexec November 9, 2025 20:26
1. Project-specific: ./.agents/rules/, ./.cursor/rules/, etc.
2. Parent directories: ../AGENTS.md, ../../AGENTS.md, etc.
3. User-specific: ~/.agents/rules/, ~/.claude/CLAUDE.md, etc.
4. System-wide: /etc/agents/rules/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this list mention remote systems?

@alexec alexec marked this pull request as ready for review November 9, 2025 20:50
@alexec alexec merged commit 8f5cd2f into main Nov 9, 2025
2 checks passed
@alexec alexec deleted the copilot/remove-etc-agents-support branch November 9, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants