p:: AI

npm install -g @anthropic-ai/claude-code
claude

Terminal bell notifications

Enable sound alerts when tasks complete:

claude config set --global preferredNotifChannel terminal_bell
iTerm 2 system notifications

For iTerm 2 alerts when tasks complete:

  1. Open iTerm 2 Preferences
  2. Navigate to Profiles → Terminal
  3. Enable “Silence bell” and Filter Alerts → “Send escape sequence-generated alerts”
  4. Set your preferred notification delay

Handling large inputs

When working with extensive code or long instructions:

  • Avoid direct pasting: Claude Code may struggle with very long pasted content
  • Use file-based workflows: Write content to a file and ask Claude to read it

Claude Code Best Practices

Use custom slash commands

vim .claude/commands/fix-github-issue.md
Please analyze and fix the GitHub issue: $ARGUMENTS.
 
Follow these steps:
 
1. Use `gh issue view` to get the issue details
2. Understand the problem described in the issue
3. Search the codebase for relevant files
4. Implement the necessary changes to fix the issue
5. Write and run tests to verify the fix
6. Ensure code passes linting and type checking
7. Create a descriptive commit message
8. Push and create a PR
 
Remember to use the GitHub CLI (`gh`) for all GitHub-related tasks.
/fix-github-issue 1234

Safe YOLO mode

claude --dangerously-skip-permissions

bypass all permission checks and let Claude work uninterrupted until completion