Fix Claude Code hook setup for multi-agent development#33
Merged
Conversation
- Add setup-claude-hooks.sh script for automatic hook configuration - Create missing CONTRIBUTING.md file referenced in README - Update getting-started.md with hook setup instructions - Add .gitignore entries for hook runtime files Fixes issue where Claude Code hooks pointed to non-existent paths, preventing multi-agent file locking system from functioning. The setup script configures proper PreToolUse and PostToolUse hooks for conflict prevention in multi-agent development workflows. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
rinadelph
pushed a commit
that referenced
this pull request
Aug 11, 2025
- Add setup-claude-hooks.sh script for automatic hook configuration - Create missing CONTRIBUTING.md file referenced in README - Update getting-started.md with hook setup instructions - Add .gitignore entries for hook runtime files Fixes issue where Claude Code hooks pointed to non-existent paths, preventing multi-agent file locking system from functioning. The setup script configures proper PreToolUse and PostToolUse hooks for conflict prevention in multi-agent development workflows. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes broken Claude Code hook configuration that prevented multi-agent file locking system from functioning. Adds automated setup, documentation, and missing files to improve new user experience.
Closes #32
Changes Made
🛠️ Setup Automation
setup-claude-hooks.sh- Automated hook configuration script📚 Documentation Improvements
docs/getting-started.md- Added hook setup section with troubleshootingCONTRIBUTING.md- Missing file referenced in README with complete dev guidelines.gitignore- Exclude hook runtime files and backup configurations🔧 Technical Details
The original issue was hardcoded paths in
.claude/settings.jsonpointing to:Fixed with relative paths to working hooks:
{ "hooks": { "PreToolUse": [{"command": "node \"./agent_mcp/hooks/file-lock-manager.js\""}], "PostToolUse": [{"command": "node \"./agent_mcp/hooks/activity-broadcaster.js\""}] } }Impact
Before
After
./setup-claude-hooks.shTesting
Manual Testing
Verification Steps
git clone https://github.com/rinadelph/Agent-MCP.git./setup-claude-hooks.shFiles Changed
setup-claude-hooks.sh- New automated setup scriptCONTRIBUTING.md- New contribution guidelinesdocs/getting-started.md- Added hook setup section.gitignore- Exclude hook runtime filesBreaking Changes
None. This is purely additive functionality that improves the setup experience.
Community Benefit
This PR ensures every new user can successfully use Agent-MCP's core multi-agent features without hitting setup roadblocks. The automated setup script and improved documentation will significantly reduce support burden and improve adoption.
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com