claude-code - 💡(How to fix) Fix Feature: User-facing MOTD (Message of the Day) on session start and resume [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#47037Fetched 2026-04-13 05:43:09
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Author
Timeline (top)
labeled ×2commented ×1

Code Example

{
  "motd": [
    {
      "message": "Remember to update ccstatusline: npm i -g ccstatusline@latest",
      "interval": "14d"
    },
    {
      "message": "Merge freeze starts Thursday — check with team before pushing",
      "until": "2026-04-17"
    }
  ]
}
RAW_BUFFERClick to expand / collapse

Not a duplicate of #2735 or #6999

Those issues request auto-executing slash commands at startup. This issue requests a static, user-defined message display — no command execution, no model context injection, no slash commands involved.

Problem

There is no way to show a reminder to the human user when Claude Code starts or resumes. The only existing mechanism is SessionStart hooks with additionalContext, which:

  1. Injects into model context, not the user-facing UI — wastes tokens on every turn
  2. Does not fire on --resume or -c
  3. Requires writing a Node.js script just to show a one-liner

Real-world example

I switched my statusLine from npx -y pkg@latest (which caused repeated hangs from npm registry checks on every poll cycle) to a globally-installed binary. Now I need a lightweight way to remind myself to periodically run npm i -g pkg@latest — but the only option is a SessionStart hook that burns tokens every turn just to tell me something.

Proposal

A motd config in settings.json that displays messages in the UI (like the startup banner), not in model context.

{
  "motd": [
    {
      "message": "Remember to update ccstatusline: npm i -g ccstatusline@latest",
      "interval": "14d"
    },
    {
      "message": "Merge freeze starts Thursday — check with team before pushing",
      "until": "2026-04-17"
    }
  ]
}

Suggested fields

FieldDescription
messageText displayed to the user in the TUI
intervalShow once per time period (7d, 24h), suppress until next interval. Tracked via local state file.
untilAuto-expire after this date (for temporary reminders)
onWhen to show: start, resume, continue (default: all)

Key design points

  • UI-only — displayed like the welcome banner, never enters model context, zero token cost
  • Fires on all session types — new, resume, continue
  • Zero overhead — just a config read, no subprocess, no network
  • Interval dedupinterval field prevents spamming; tracks last-shown timestamp locally
  • Self-expiringuntil field lets temporary reminders (deadlines, freezes) auto-disappear

How this differs from existing features

MechanismAudienceToken costFires on resumeCustom content
SessionStart hook + additionalContextModelYes, every turnNoYes (requires script)
CLAUDE.mdModelYes, every turnYesYes
Startup bannerHumanNoneYesNo
This proposal (MOTD)HumanNoneYesYes

Analogous to /etc/motd on Linux — a simple, zero-cost message shown at login.

extent analysis

TL;DR

Implement a motd config in settings.json to display user-defined messages in the UI at startup or resume.

Guidance

  • Consider adding a motd field to the settings.json file with a list of message objects, each containing message, interval, and until fields.
  • Consider implementing logic to display these messages in the UI, like the startup banner, without entering the model context.
  • Review the proposed fields and design points to ensure they meet the requirements for displaying reminders to human users.
  • Evaluate the differences between the proposed motd feature and existing features, such as SessionStart hooks and the startup banner.

Example

{
  "motd": [
    {
      "message": "Remember to update ccstatusline: npm i -g ccstatusline@latest",
      "interval": "14d"
    }
  ]
}

Notes

The proposed motd feature aims to provide a lightweight way to display reminders to human users without incurring token costs or requiring complex scripting. However, the implementation details and potential edge cases need to be carefully considered.

Recommendation

Apply the proposed motd config workaround to display user-defined messages in the UI, as it provides a simple and zero-cost solution for reminding human users of important tasks or deadlines.

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

claude-code - 💡(How to fix) Fix Feature: User-facing MOTD (Message of the Day) on session start and resume [1 comments, 2 participants]