Skip to content

fix: include CLAUDE.md in API-mode context bombs#151

Merged
claude[bot] merged 1 commit intomainfrom
claude/issue-149-20260227-2013
Feb 27, 2026
Merged

fix: include CLAUDE.md in API-mode context bombs#151
claude[bot] merged 1 commit intomainfrom
claude/issue-149-20260227-2013

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Feb 27, 2026

Summary

  • Call local.ReadClaudeMD(proj.RootDir) in the runHandler API-mode code path and pass the result as ClaudeMD in RenderOptions
  • Apply the same fix to runWithoutCache (the no-cache API code path)
  • The template conditional and ReadClaudeMD helper were already in place; only the call sites were missing

Changes

cmd/run.go

  • runHandler (line ~203): added claudeMD := local.ReadClaudeMD(proj.RootDir) and ClaudeMD: claudeMD in RenderOptions
  • runWithoutCache (line ~330): same addition

Test plan

  • go build ./... passes
  • go vet ./... passes

Closes #149

Generated with Claude Code

Read and inject CLAUDE.md into RenderOptions in both API-mode code paths
(runHandler and runWithoutCache), matching the behaviour already present
in runLocalMode.  The template conditional was already in place — only
the ReadClaudeMD call and ClaudeMD field assignment were missing.

Closes #149

Co-Authored-By: Grey Newell <greyshipscode@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: claude[bot] <claude[bot]@users.noreply.github.com>
@claude claude bot merged commit af83611 into main Feb 27, 2026
1 check passed
@claude claude bot deleted the claude/issue-149-20260227-2013 branch February 27, 2026 20:25
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.

enhancement: include CLAUDE.md in API-mode context bombs (already done in local mode)

0 participants