github / github/copilot-cli

Allo implicit acces to files mentioned in the prompt

未關閉
#1,593 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:permissions
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

Sometimes it is useful to refence an external file (e.g. documentation or other examples) and then copilot ask to access this file out of the allowed list. As its quite obvious I want it to access that file it would be good if implicit access could be granted (read only).

### Proposed solution

There should be some `--grant-implicit` flag that if I mention a file or website in my prompt grants read only access to that resource even if outside the current allowed directory range.

### Example prompts or workflows

Something like:

> The documentation at /home/myuser/balbal.txt describes how we need to implement the new feature X in this session, make you familiar with that and create a plan.

or

> Our implementation of A violates section abc of specification at http://example.test/rfc123.txt and we need to make it compliant.

### Additional context

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。