Feature Request: Auto-load slash commands on startup

Resolved 💬 5 comments Opened Jun 29, 2025 by BTC-Bob Closed Jan 9, 2026

It would be great if Claude Code could automatically load a slash command on startup, either through:

  • A command line flag like --slash-command /alex
  • Or by reading persona instructions from CLAUDE.md
  • Or a config option to set a default slash command

Use case: I have a custom persona (/alex) that I want to use every time I start Claude Code.

I've already tried several approaches that didn't work:

  • Created an alias claude --slash-command /alex but the flag doesn't exist
  • Put my persona content in CLAUDE.md, which is read (I get the "large file" warning) but only serves as reference, not activation
  • Tried piping commands (echo '/alex' | claude) but this causes terminal/raw mode errors
  • Attempted various bash workarounds but Claude Code requires interactive terminal mode

Currently I have to manually type /alex every time I start Claude Code. An auto-load feature would significantly improve the workflow for users with custom personas or commands they use consistently.

Thank you for considering this feature!

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗