Files
claude-mem/docs/context/CLAUDE.md
T
Alex Newman 2659ec3231 fix: Claude Code 2.1.1 compatibility + log-level audit + path validation fixes (#614)
* Refactor CLAUDE.md and related files for December 2025 updates

- Updated CLAUDE.md in src/services/worker with new entries for December 2025, including changes to Search.ts, GeminiAgent.ts, SDKAgent.ts, and SessionManager.ts.
- Revised CLAUDE.md in src/shared to reflect updates and new entries for December 2025, including paths.ts and worker-utils.ts.
- Modified hook-constants.ts to clarify exit codes and their behaviors.
- Added comprehensive hooks reference documentation for Claude Code, detailing usage, events, and examples.
- Created initial CLAUDE.md files in various directories to track recent activity.

* fix: Merge user-message-hook output into context-hook hookSpecificOutput

- Add footer message to additionalContext in context-hook.ts
- Remove user-message-hook from SessionStart hooks array
- Fixes issue where stderr+exit(1) approach was silently discarded

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Update logs and documentation for recent plugin and worker service changes

- Added detailed logs for worker service activities from Dec 10, 2025 to Jan 7, 2026, including initialization patterns, cleanup confirmations, and diagnostic logging.
- Updated plugin documentation with recent activities, including plugin synchronization and configuration changes from Dec 3, 2025 to Jan 7, 2026.
- Enhanced the context hook and worker service logs to reflect improvements and fixes in the plugin architecture.
- Documented the migration and verification processes for the Claude memory system and its integration with the marketplace.

* Refactor hooks architecture and remove deprecated user-message-hook

- Updated hook configurations in CLAUDE.md and hooks.json to reflect changes in session start behavior.
- Removed user-message-hook functionality as it is no longer utilized in Claude Code 2.1.0; context is now injected silently.
- Enhanced context-hook to handle session context injection without user-visible messages.
- Cleaned up documentation across multiple files to align with the new hook structure and removed references to obsolete hooks.
- Adjusted timing and command execution for hooks to improve performance and reliability.

* fix: Address PR #610 review issues

- Replace USER_MESSAGE_ONLY test with BLOCKING_ERROR test in hook-constants.test.ts
- Standardize Claude Code 2.1.0 note wording across all three documentation files
- Exclude deprecated user-message-hook.ts from logger-usage-standards test

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: Remove hardcoded fake token counts from context injection

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Address PR #610 review issues by fixing test files, standardizing documentation notes, and verifying code quality improvements.

* fix: Add path validation to CLAUDE.md distribution to prevent invalid directory creation

- Add isValidPathForClaudeMd() function to reject invalid paths:
  - Tilde paths (~) that Node.js doesn't expand
  - URLs (http://, https://)
  - Paths with spaces (likely command text or PR references)
  - Paths with # (GitHub issue/PR references)
  - Relative paths that escape project boundary

- Integrate validation in updateFolderClaudeMdFiles loop
- Add 6 unit tests for path validation
- Update .gitignore to prevent accidental commit of malformed directories
- Clean up existing invalid directories (~/, PR #610..., git diff..., https:)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* fix: Implement path validation in CLAUDE.md generation to prevent invalid directory creation

- Added `isValidPathForClaudeMd()` function to validate file paths in `src/utils/claude-md-utils.ts`.
- Integrated path validation in `updateFolderClaudeMdFiles` to skip invalid paths.
- Added 6 new unit tests in `tests/utils/claude-md-utils.test.ts` to cover various rejection cases.
- Updated `.gitignore` to prevent tracking of invalid directories.
- Cleaned up existing invalid directories in the repository.

* feat: Promote critical WARN logs to ERROR level across codebase

Comprehensive log-level audit promoting 38+ WARN messages to ERROR for
improved debugging and incident response:

- Parser: observation type errors, data contamination
- SDK/Agents: empty init responses (Gemini, OpenRouter)
- Worker/Queue: session recovery, auto-recovery failures
- Chroma: sync failures, search failures (now treated as critical)
- SQLite: search failures (primary data store)
- Session/Generator: failures, missing context
- Infrastructure: shutdown, process management failures
- File Operations: CLAUDE.md updates, config reads
- Branch Management: recovery checkout failures

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* fix: Address PR #614 review issues

- Remove incorrectly tracked tilde-prefixed files from git
- Fix absolute path validation to check projectRoot boundaries
- Add test coverage for absolute path validation edge cases

Closes review issues:
- Issue 1: ~/ prefixed files removed from tracking
- Issue 3: Absolute paths now validated against projectRoot
- Issue 4: Added 3 new test cases for absolute path scenarios

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* build assets and context

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 23:34:20 -05:00

3.8 KiB

# Recent Activity

Nov 13, 2025

ID Time T Title Read
#7806 4:54 PM 🔵 PR #101 Enhancement: Continuation Prompt Token Reduction ~634

Nov 16, 2025

ID Time T Title Read
#9976 11:35 PM 🔵 Endless Mode Architecture Plan Documented ~661
#9967 11:18 PM ⚖️ Endless Mode Architecture: Immutable Storage with Ephemeral Transform ~217

Nov 17, 2025

ID Time T Title Read
#10131 1:22 AM 🔵 Endless Mode Token Economics Analysis Output: Complete Infrastructure Impact ~542
#10130 " Integration of Actual Compute Savings Analysis into Main Execution Flow ~258
#10129 " 🔵 Prompt Caching Economics: User Cost vs. Anthropic Compute Cost Divergence ~451
#10126 1:19 AM 🔴 Fix Return Statement Variable Names in playTheTapeThrough Function ~313
#10125 " Redesign Timeline Display to Show Fresh/Cached Token Breakdown and Real Dollar Costs ~501
#10124 " Replace Estimated Cost Model with Actual Caching-Based Costs in Anthropic Scale Analysis ~516
#10123 " Pivot Session Length Comparison Table from Token to Cost Metrics ~413
#10122 " Add Dual Reporting: Token Count vs Actual Cost in Comparison Output ~410
#10121 1:18 AM Apply Prompt Caching Cost Model to Endless Mode Calculation Function ~501
#10120 " Integrate Prompt Caching Cost Calculations into Without-Endless-Mode Function ~426
#10119 " Display Prompt Caching Pricing in Initial Calculator Output ~297
#10118 " Add Prompt Caching Pricing Model to Token Economics Calculator ~316
#10115 1:15 AM 🟣 Token Economics Calculator for Endless Mode Sessions ~465
#10013 12:13 AM 🔵 Duplicate Agent SDK TypeScript Reference Documentation ~340
#10012 " 🔵 Agent SDK TypeScript API Reference Complete ~349

Nov 18, 2025

ID Time T Title Read
#11738 11:51 PM ⚖️ Comprehensive Architecture Document Created for Phase 1 ~868
#11711 11:44 PM 🔵 Language Model Tool Documentation Index ~282
#11710 " 🔵 Language Model Tool API Implementation Guide ~718
#11709 11:43 PM 🔵 Comprehensive Copilot Extension Implementation Plan ~624
#11708 " 🔵 VS Code Chat Sample Documentation Unavailable ~327
#11707 " 🔵 VS Code Language Model API Structure and Capabilities ~515
#11705 " ⚖️ VS Code Extension Development Planning Phase Initiated ~327
#11206 3:01 PM 🔵 mem-search skill architecture and migration details retrieved in full format ~538

Nov 25, 2025

ID Time T Title Read
#15538 8:36 PM 🔵 Context Document for Landing Page Refinements ~381
#15314 5:04 PM 🔵 Endless Mode Documentation Post Retrieved with 156 Lines ~671

Dec 20, 2025

ID Time T Title Read
#31257 8:58 PM ⚖️ Eight Conflict Detection Hypotheses Evaluated with Simulation Results ~525
#31256 " 🔵 Supersession vs Conflict Detection Feature Analysis ~515

Dec 30, 2025

ID Time T Title Read
#34520 2:34 PM 🔵 V2 Example Code Demonstrates All Key Patterns ~537

Jan 7, 2026

ID Time T Title Read
#38209 7:39 PM 🔵 Claude Code Hooks System Architecture and Usage ~491