Thank you for considering contributing to claude-session-logger! This project aims to make Claude Code sessions more manageable through real-time logging and session organization.
Please be respectful and constructive in all interactions. We're all here to make Claude Code better.
Before creating a bug report, please:
- Check the existing issues to avoid duplicates
- Collect relevant information:
- Your OS and Python version
- Claude Code version
- Relevant log output from
~/.claude/logs/hook-debug.log - Steps to reproduce the issue
We welcome ideas for:
- New log channels or data to capture
- Improvements to auto-naming logic
- Better cross-platform support
- Integration with other tools
Open a feature request with your idea.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR-USERNAME/claude-session-logger.git cd claude-session-logger - Create a branch:
git checkout -b feature/my-improvement
The main hook code is in claude/hooks/log-command.py. Key areas:
| Area | Functions |
|---|---|
| Auto-naming | derive_session_name_from_cwd(), GENERIC_FOLDER_NAMES |
| Logging | log_tool_call(), log_task_operation() |
| Session state | get_session_state(), save_session_state() |
| Symlinks | ensure_transcript_symlink() |
- Copy your modified hook to
~/.claude/hooks/:cp claude/hooks/log-command.py ~/.claude/hooks/ - Start a new Claude Code session
- Check debug output:
tail -f ~/.claude/logs/hook-debug.log - Verify sesslogs are created correctly
- Follow PEP 8 guidelines
- Keep line length under 127 characters
- Add docstrings to new functions
- Use type hints where practical
- Ensure your code passes lint checks:
flake8 claude/hooks/*.py --max-line-length=127 - Verify Python syntax on multiple versions:
python -m py_compile claude/hooks/log-command.py
- Update CHANGELOG.md if adding features
- Push your branch and open a pull request
Looking for something to work on? Consider:
- Windows improvements: Better symlink handling, path edge cases
- macOS testing: Verify full functionality on macOS
- Documentation: Usage examples, troubleshooting guides
- Performance: Optimize for very long sessions
- New features: Additional log channels, filtering options
Open a discussion or reach out via issues.
Thank you for helping make Claude Code sessions easier to manage!