Add pre-compact hook to auto-trigger /compound workflow

オープン
#95 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #250 @mvanhorn による — マージされずにクローズ

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

enhancement

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

  1. Trigger: Before context compaction or session end
  2. 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
  3. 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:compound command

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:compound command: plugins/compound-engineering/commands/workflows/compound.md
  • Existing auto-invoke triggers (lines 166-169 in compound.md)
主要言語
TypeScript
スター
25.6k
フォーク
2.1k
平均マージ
3時間 57分
マージ済み PR(30日)
170

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EveryInc/compound-engineering-plugin のほかの issue

EveryInc/compound-engineering-plugin の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。