feat(linear): Update ResearchBot to output terse comments only #802
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.
What problem(s) was I solving?
ResearchBot (LinearLayer/Claude) was posting extremely verbose comments to Linear tickets containing the entire Claude conversation history, including tool calls, thinking processes, and implementation details. This made Linear comments difficult to read and cluttered the ticket history with unnecessary information.
Issue: ENG-2240 - Update ResearchBot comments to be terse with doc link and open questions
What user-facing changes did I ship?
For Linear ticket viewers:
Example new format:
How I implemented it
Single, Simple Change - Prompt Modification:
Updated the Claude prompt in
.github/workflows/linear-research-tickets.ymlto explicitly instruct Claude to output ONLY the terse format as its final response.Key changes:
CRITICAL:section that specifies the exact output format requiredWhat I did NOT do (per the implementation plan):
/research_codebasecommandThe workflow still captures output with
tee CLAUDE_ANSWER.mdand posts it vialinear add-comment, but now Claude's output is exactly what we want posted.How to verify it
Automated Verification:
yq)Manual Testing:
To test this change:
gh workflow run "Linear: Research Task" --repo humanlayer/humanlayerNote: This change only affects NEW research runs. Existing comments with old format will remain unchanged.
Description for the changelog
ResearchBot now posts concise Linear comments - Updated the automated research workflow to post terse comments containing only the research document link and open questions, eliminating verbose conversation logs from Linear ticket comments.
Additional Changes in This PR
This PR also includes work related to directory validation and creation for the WUI (CodeLayer) and HLD daemon:
These changes improve the user experience when launching Claude Code sessions with directories that don't exist yet.
Important
Updated ResearchBot to post concise comments in Linear tickets by modifying the Claude prompt in the GitHub workflow.
.github/workflows/linear-research-tickets.ymlto modify the Claude prompt to output only the specified terse format.CRITICAL:section in the prompt to specify the exact output format./research_codebasecommand.This description was created by
for d5dd10c. You can customize this summary. It will automatically update as commits are pushed.