Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…oPath
- Replace existsSync+readFileSync with try/catch readFileSync in loadTemplate
- resolveRepoPath now returns { repoName, repoPath } to eliminate
duplicated fallback logic in handler call sites
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Restore thread context prefix/separator in fetchThreadContext - Restrict tilde expansion to ~/ only (not ~user) - Add config validation: fail-fast on missing template files, require path in object repo config - trimEnd() rendered templates to handle trailing newlines in files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Combine buildPrompt template system with session continuity (--resume). When resuming a session, threadContext is passed as empty to buildPrompt so the template still wraps the prompt but skips thread history. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
{{변수}}치환 방식의 프롬프트 템플릿 기능 추가{{global}}로 삽입 또는 생략하여 완전 오버라이드)reposconfig에서string | { path, promptTemplate? }형태 지원 (하위 호환)templates/default.txt)으로 미설정 시 기존 동작 유지Changes
templates/default.txt— 내장 기본 템플릿 ({{thread}}{{prompt}})src/prompt/template.ts— 템플릿 로딩, 변수 치환,buildPrompt()파이프라인src/config.ts—promptTemplate필드,reposobject 형태 지원src/slack/handler.ts—buildPrompt()연동,resolveRepoPath가{ repoName, repoPath }반환Variables
{{prompt}}{{thread}}{{repo}}{{global}}Test plan
{{global}}삽입 동작 확인🤖 Generated with Claude Code