Smarter context: tell the agent what changed in git and in files since its last turn
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- developer-experience
Hướng nghiên cứu
Start by tracing how the first user message is assembled and how later turns are prepared; the issue names pendingNotes as the natural place to queue change notices. Check how the app detects the current branch, HEAD, changed files, and files read or edited in the chat before estimating the work. Done means the proposed git context appears at chat start, later notes appear only for relevant external changes, and notices are capped and skipped outside repositories.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Today
The system prompt shows the project's top-level listing and AGENTS.md, but nothing about git:
- no branch;
- no uncommitted changes;
- no recent commits.
Between turns the user may also edit files, switch branches or pull. The agent only notices when an edit fails because a file changed since it was read (the read-before-edit check), or not at all, and may build on stale reads.
Proposal
- At chat start: add a short git block to the first user message, not the system prompt, so the cached prefix stays stable:
- the branch;
- ahead/behind counts;
- up to 20 changed files with their status;
- the last 5 commit subjects.
- Before each later turn: if files the agent read or edited in this chat changed outside it, or the branch or HEAD moved, prepend one note, e.g. "Changed since your last turn: src/a.ts (modified), branch main → feature/x". The mechanism Undo uses to queue notes (
pendingNotes) is the natural place. - Cap it and skip it when nothing changed or the project is not a repository.
Measure
Fewer failed edits from stale reads, and fewer "check git status" tool calls, on the benchmark (#49) and in real use (counts in the local log, numbers only).
- Ngôn ngữ chính
- TypeScript
- Star
- 2
- Fork
- 2
- Merge trung bình
- 8 giờ 28 phút
- Pull request đã merge (30 ngày)
- 26
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PierrunoYT/patch
-
enhancement priority: low severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PierrunoYT/patch#305 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
security: isAppPageUrl checks devRendererUrl with startsWith instead of comparing parsed URL originsĐang mởpriority: low security severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PierrunoYT/patch#300 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Claude Code chats: tool calls made inside Claude Code subagents leave cards that end as "(stopped)"Đang mởbug priority: low severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
PierrunoYT/patch#289 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug priority: medium severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PierrunoYT/patch#285 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority: medium security severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
PierrunoYT/patch#283 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PierrunoYT/patch
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
TomerAberbach/profiler-md#733 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug priority: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
brentspine/brents-toasts#143 ·
-
🐛 bug 🗺️ DB Models & Ops
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
LibreChat-AI/LibreChat#17214 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Wavvon/Wavvon-clients#136 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
umami-software/umami#4637 ·
Maintainer thường phản hồi trong vòng 3 ngày