Skip to content

Commit c091a75

Browse files
qchappCopilot
andauthored
Update src/ai_agent/agent/tools/repo_info_tool.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 00bf69e commit c091a75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ai_agent/agent/tools/repo_info_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def _extract_cli(files: List[FetchedFile]) -> List[tuple[str, str]]:
269269
for m in CLI_LINE_RE.finditer(f.content):
270270
cmd = re.sub(r"^\s*(\$|>)\s*", "", m.group(0)).strip()
271271
out.append((cmd, f.path))
272-
return _dedupe_pairs(out)[:5] # <-- changed
272+
return _dedupe_pairs(out)[:5] # Limit to 5 CLI command examples for brevity and relevance
273273

274274
def _extract_api(files: List[FetchedFile]) -> List[tuple[str, str]]:
275275
out: List[tuple[str,str]] = []

0 commit comments

Comments
 (0)