[feedback] Agent guard hooks cannot see every agent definition, so a named-teammate spawn…

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

Start by locating LifeOS's hook configuration and the existing Agent PreToolUse guard, then trace how session-level hooks receive the agent type. Check how definitions from extra directories and JSON are represented, and how messages wake existing teammates. Done means agent-scoped guards can run at session level keyed by agent type and cover those cases; the issue does not name specific files or tests.

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

説明

What happened

A PreToolUse hook on the Agent tool now refuses a spawn that sets name when the requested type's file has a hooks: block. It cannot be complete from a hook: agent definitions loaded from --add-dir folders or --agents JSON are not visible in the hook input, and a teammate that already exists can be woken by a message with no new spawn.

Summary

Claude Code does not apply an agent file's frontmatter hooks when the Agent tool spawns it with a name (teammate). A LifeOS install can only compensate with a PreToolUse hook on the Agent tool, and that hook cannot be complete: it does not see agent definitions loaded from extra directories or JSON, and an existing teammate can be woken by a message with no new spawn. A LifeOS-side answer would be to move agent-scoped guards to a session-level hook that keys on the agent type.

Details

  • Kind: feedback
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

主要言語
TypeScript
スター
19.9k
フォーク
2.5k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

danielmiessler/LifeOS のほかの issue

danielmiessler/LifeOS の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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