Strengthen doc-first, multi-repo protocol and clarify tools
Expanded copilot-instructions.md to enforce strict doc-first and cross-repo hard-gate rules, including per-question doc checks and a no re-read policy with explicit penalties. Broadened consent requirements for all file modifications. Updated context recovery paths. In CLAUDE.md, added sequential execution override and mapped Copilot tool names to Claude Code equivalents, ensuring protocol consistency across tools.
This commit is contained in:
parent
dbccbf487d
commit
322f38f1fa
File diff suppressed because one or more lines are too long
16
CLAUDE.md
16
CLAUDE.md
|
|
@ -1 +1,17 @@
|
||||||
CRITICAL: Your FIRST action in every session MUST be reading `.github/copilot-instructions.md`. Execute ALL session-start instructions found there before responding to any user query. It is the single source of truth for this repo.
|
CRITICAL: Your FIRST action in every session MUST be reading `.github/copilot-instructions.md`. Execute ALL session-start instructions found there before responding to any user query. It is the single source of truth for this repo.
|
||||||
|
|
||||||
|
## SEQUENTIAL EXECUTION OVERRIDE
|
||||||
|
The AI AGENT CORE PROTOCOL in copilot-instructions.md requires STRICT SEQUENTIAL execution. This OVERRIDES your default parallelization behavior. Do NOT parallelize doc reads with code searches. The sequence is:
|
||||||
|
1. Read copilot-instructions.md → process its rules FULLY
|
||||||
|
2. Read ALL docs/ .md files listed in the protocol → wait for completion
|
||||||
|
3. Output [LOADED_DOCS: ...] prefix
|
||||||
|
4. ONLY THEN respond to the user's query or search code
|
||||||
|
|
||||||
|
## Tool mapping for AI AGENT CORE PROTOCOL
|
||||||
|
The copilot-instructions.md references Copilot tool names. Map them to Claude Code tools:
|
||||||
|
- `get_file` / `file_search` → `Read`, `Glob`, `Grep`
|
||||||
|
- `code_search` / `get_symbols_by_name` / `find_symbol` → `Grep`, `Glob`
|
||||||
|
- `replace_string_in_file` / `edit_file` → `Edit`
|
||||||
|
- `create_file` → `Write`
|
||||||
|
|
||||||
|
Follow the protocol using YOUR tools. The rules (LOADED_DOCS prefix, hard-gate, no-re-read, context recovery, explicit consent) apply equally to Claude Code.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue