Skip to content

load-dynamic-requirements hook not configured in settings.json #46

@hjbrandt

Description

@hjbrandt

Issue

The load-dynamic-requirements.ts hook exists in the repository but is not configured in the default settings.json file, which means dynamic context loading is not functional out of the box.

Current State

  • ✅ Hook file exists: hooks/load-dynamic-requirements.ts
  • ✅ Command file exists: commands/load-dynamic-requirements.md
  • ❌ Hook is not listed in settings.json UserPromptSubmit hooks

Expected Behavior

The hook should be configured in settings.json under UserPromptSubmit hooks to enable dynamic context loading based on user prompts.

Fix

Add the hook to settings.json:

"UserPromptSubmit": [
  {
    "hooks": [
      {
        "type": "command",
        "command": "${PAI_DIR}/hooks/update-tab-titles.ts"
      },
      {
        "type": "command",
        "command": "${PAI_DIR}/hooks/load-dynamic-requirements.ts"
      }
    ]
  }
]

Impact

Without this configuration, the dynamic context loading system described in commands/load-dynamic-requirements.md never executes, meaning Claude won't automatically load context files or agents based on semantic understanding of user prompts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions