Skip to content

fix(claude-code): enable knowledge tools by default and force LF line endings#1769

Closed
benfrank241 wants to merge 1 commit into
mainfrom
fix/claude-code-mcp-crlf-and-knowledge-tools
Closed

fix(claude-code): enable knowledge tools by default and force LF line endings#1769
benfrank241 wants to merge 1 commit into
mainfrom
fix/claude-code-mcp-crlf-and-knowledge-tools

Conversation

@benfrank241
Copy link
Copy Markdown
Contributor

Summary

  • CRLF fix: The Claude Code marketplace distribution converts all files to CRLF on download. Python tolerates \r, so hooks (recall, retain, session_start) work fine — but run_mcp.sh is a bash script and fails to parse with \r characters, preventing the MCP server from ever starting. Added .gitattributes to force LF on checkout.
  • enableKnowledgeTools default: Flipped from false to true in both settings.json and the DEFAULTS dict in config.py. The previous default meant the MCP server exited immediately even when ~/.hindsight/claude-code.json had the override set to true.

Test plan

  • Install the plugin fresh via marketplace and verify run_mcp.sh has LF endings
  • Start Claude Code and confirm knowledge tools (agent_knowledge_*) appear in tool list
  • Verify recall/retain hooks still work (no regression)

🤖 Generated with Claude Code

… endings

The Claude Code marketplace distribution converts all files to CRLF.
Python tolerates this, so hooks (recall, retain) work — but run_mcp.sh
is a bash script and fails to parse with \r characters, preventing the
MCP server from ever starting. Adding .gitattributes forces LF on checkout.

Also flips enableKnowledgeTools to true in both settings.json and the
DEFAULTS dict. The previous default (false) meant the MCP server exited
immediately even when the user config had it set to true, if the config
merge didn't take effect in time.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant