Add pre-compact hook to auto-trigger /compound workflow
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
- #250 của @mvanhorn — đã đóng, không merge
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Start by reading plugins/compound-engineering/commands/workflows/compound.md, especially the existing auto-invoke triggers noted in the issue. Then investigate how the plugin registers hooks that run before context compaction or session end. Done means compoundable sessions are detected, user preferences control prompting or auto-run, trivial sessions are skipped, and the existing command is invoked correctly.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature Request
Add a hook that triggers before context compaction (or session end) to check if there's anything worth compounding, and if so, automatically run the /workflows:compound command.
Motivation
The /workflows:compound command captures valuable knowledge - solved problems, learnings, patterns discovered - but requires manual invocation. By the time you think to run it, the context may have already been compacted or the session ended, losing that valuable context.
A pre-compact hook would ensure knowledge gets captured at the optimal moment - when the full context is still available and fresh.
Proposed Behavior
- Trigger: Before context compaction or session end
- Check: Analyze the session for compoundable content:
- Problems that were solved
- Significant debugging sessions
- Pattern discoveries or learnings
- Non-trivial fixes with root cause analysis
- Action: If compoundable content is detected, prompt to run
/workflows:compound(or auto-run based on user preference)
Acceptance Criteria
- Hook triggers before context compaction
- Intelligently detects if session contains compoundable material
- Respects user preference (prompt vs auto-run)
- Doesn't trigger for trivial sessions (simple Q&A, quick fixes)
- Works with the existing
/workflows:compoundcommand
Context
Discussed in the Every Discord. This aligns with the core plugin philosophy: "Each unit of engineering work should make subsequent units of work easier—not harder."
Currently, the /workflows:compound command has auto-invoke trigger phrases like "that worked" and "it's fixed", but a pre-compact hook would provide a safety net for capturing knowledge before context is lost.
Related
/workflows:compoundcommand:plugins/compound-engineering/commands/workflows/compound.md- Existing auto-invoke triggers (lines 166-169 in compound.md)
- Ngôn ngữ chính
- TypeScript
- Star
- 25.6k
- Fork
- 2.1k
- Merge trung bình
- 3 giờ 57 phút
- Pull request đã merge (30 ngày)
- 170
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 EveryInc/compound-engineering-plugin
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
EveryInc/compound-engineering-plugin#2085 ·
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 66/100
EveryInc/compound-engineering-plugin#795 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 80/100
EveryInc/compound-engineering-plugin#2084 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
EveryInc/compound-engineering-plugin#2083 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Host support: DeepSeek Harness (dsh)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
EveryInc/compound-engineering-plugin#2072 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của EveryInc/compound-engineering-plugin
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
e2e-failure ready-to-code
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
redhat-developer/rhdh-plugin-export-overlays#4794 · 1 bình luận ·
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 78/100
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 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: plugins documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
CatVinci-Studio/Textus#727 ·
Maintainer thường phản hồi trong vòng 1 ngày