claude-code - 💡(How to fix) Fix [FEATURE] Support SessionStart hooks in Cowork (Claude Desktop App) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47993Fetched 2026-04-15 06:36:26
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3closed ×1commented ×1

Fix Action

Fix / Workaround

Cowork sessions do not fire SessionStart hooks defined in ~/.claude/settings.json or in plugins. There is no reliable way to run automated setup actions at the start of a Cowork session. The only workaround is putting instructions in CLAUDE.md, but Claude routinely skips these in favor of responding to the user's first message. This forces users to send a throwaway "boot up" message before their real question just to trigger initialization — every single session.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Cowork sessions do not fire SessionStart hooks defined in ~/.claude/settings.json or in plugins. There is no reliable way to run automated setup actions at the start of a Cowork session. The only workaround is putting instructions in CLAUDE.md, but Claude routinely skips these in favor of responding to the user's first message. This forces users to send a throwaway "boot up" message before their real question just to trigger initialization — every single session.

Proposed Solution

SessionStart hooks from ~/.claude/settings.json and installed plugins should fire at the start of every Cowork session, the same way they do in Claude Code CLI. The hook's stdout should be injected into context before Claude processes the user's first message.

Alternative Solutions

  • CLAUDE.md with "BLOCKING" instructions — unreliable, Claude skips them when the user's first message is engaging
  • Scheduled tasks — no "on session start" trigger, only cron/one-time/manual
  • Telling users to send "boot up" as their first message every session — works but bad UX

Priority

High - Significant impact on productivity

Feature Category

Configuration and settings

Use Case Example

  1. User has a persistent memory system in Google Drive (Obsidian vault with config, active projects, and session logs)
  2. At session start, they need to mount Google Drive via request_cowork_directory and run a session-autoload skill
  3. In Claude Code CLI, this works perfectly as a SessionStart hook
  4. In Cowork, there is no equivalent — the user must manually prompt Claude to do this every session, and if they forget, Claude operates without any prior context

Additional Context

Related issue: #27398 (plugin hooks not firing in Cowork on Windows). This request is broader — SessionStart hooks from both user settings and plugins should work in Cowork across all platforms.

extent analysis

TL;DR

Implement SessionStart hooks in Cowork sessions to run automated setup actions, similar to how they work in Claude Code CLI.

Guidance

  • Investigate the difference in how SessionStart hooks are handled between Claude Code CLI and Cowork to identify the root cause of the issue.
  • Consider modifying the Cowork session initialization code to include the execution of SessionStart hooks from ~/.claude/settings.json and installed plugins.
  • Verify that the stdout of the SessionStart hooks is properly injected into the context before processing the user's first message.
  • Review related issue #27398 for potential insights into plugin hook issues in Cowork on Windows, as it may be relevant to the broader implementation of SessionStart hooks.

Example

No code snippet is provided as the issue does not contain sufficient technical details for a specific implementation.

Notes

The solution may require changes to the Cowork session initialization code and plugin architecture, which could have implications for the overall system design and user experience.

Recommendation

Apply a workaround by modifying the Cowork session initialization code to execute SessionStart hooks, as this is a high-priority feature with significant impact on productivity.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING