fix: prevent catch-up agent crashes with surgical git-based checks#3
Merged
fix: prevent catch-up agent crashes with surgical git-based checks#3
Conversation
Replace dangerous full-project scans with targeted git diff checks: - Remove automatic test suite and build execution - Replace filesystem scans with git diff --name-only HEAD~1 - Scope TODO/FIXME search to recently modified files only - Keep status document limit at 5 per user preference - Remove excessive safety comments for cleaner code This prevents Claude Code crashes caused by scanning massive codebases or triggering expensive build/test operations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
dean0x
pushed a commit
that referenced
this pull request
Mar 25, 2026
- Replace per-line subprocess spawning in extract_batch_messages with single-pass jq/node processing (issue #1) - Decompose process_observations into validate_observation, calculate_confidence, and check_temporal_spread helpers (issue #2) - Fix duplicate temporal spread calculation by computing epoch once in check_temporal_spread (issue #3) - Escape double quotes in ART_DESC for YAML frontmatter safety (issue #4) - Strengthen ART_NAME sanitization with strict kebab-case allowlist (issue #5) - Replace per-line subprocess in apply_temporal_decay with single-pass jq operation and node fallback (issue #6) - Replace per-line subprocess in create_artifacts status update with single-pass jq/node operation (issue #7) - Remove dead increment_daily_counter function (issue #8) - Extract write_command_artifact and write_skill_artifact helpers from create_artifacts (issue #9) - Change flat 30k char truncation to per-session 8k char cap for proportional session contribution (issue #10) - Add section comment markers to build_sonnet_prompt heredoc for navigability (issue #11)
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 catch-up agent that was causing Claude Code instance crashes by replacing dangerous operations with surgical git-based checks.
Problem
The catch-up agent was crashing Claude Code sessions due to:
Solution
Replaced dangerous operations with surgical, git-based checks:
git diff --name-only HEAD~1instead of full codebase scanChanges
src/claude/agents/devflow/catch-up.md: 9 insertions, 39 deletionsTesting
Impact
The agent retains its validation philosophy but now executes safely without risking Claude Code crashes.
🤖 Generated with Claude Code