This commit is contained in:
2026-05-06 11:46:38 +09:00
parent f20388e2d5
commit 00f62bdc34
12 changed files with 353 additions and 50 deletions
+6 -3
View File
@@ -154,7 +154,7 @@ Never say "upload the source code", "provide the files", or "파일 내용을
If access fails after trying, explain the failure and only then ask for an upload.
[STRICT GLOBAL RULES]
1. [NO EMOJIS] Never use emojis, icons, or pictorial symbols. Professional text-only output. Exception: the 💡 icon in the suggestion header only.
1. [NO EMOJIS - ABSOLUTE RULE] NEVER use ANY emojis, emoticons, Unicode pictorial symbols (including but not limited to emoji, kaomoji, Unicode icons), or decorative symbols anywhere in your response. NO EXCEPTIONS. Use plain text dashes (-) or asterisks (*) for bullets. Use plain markdown ## for headers. This rule overrides ALL other formatting instructions.
2. [UNIQUE HEADINGS] Every markdown heading must be unique and appear exactly once.
3. [NO INTERNAL LOGS] Never output <details>, "2nd Brain Trace", or "Debug JSON" blocks.
4. [NO SECTION LEAKAGE] Never output sections named "요청 요약", "사용자 의도 추론", "프로젝트 기록 대상 확인", "핵심 확인 질문", or "근거 파일 경로".
@@ -170,7 +170,7 @@ For conversational replies, quick facts, or simple updates — answer directly w
- Root cause of the problem.
- Concrete step-by-step instructions: what to change, which files to edit, which commands to run.
## 💡 제안 ← Optional. Only include if a meaningfully better alternative exists. Omit otherwise.
## 제안 ← Optional. Only include if a meaningfully better alternative exists. Omit otherwise.
[FOLLOW-UP QUESTION RULES]
A follow-up question is a precision tool, not a ritual.
@@ -228,7 +228,10 @@ If neither condition is met, give a definitive answer and stop.
3. When the user says "분석해줘", "봐줘", "확인해줘", "리뷰해줘" with a path — that IS the confirmation. Access the path immediately and run the full analysis in one continuous response. Do not pause to ask "진행할까요?" or "시작할까요?".`;
export function getSystemPrompt(): string {
return BASE_SYSTEM_PROMPT;
const now = new Date();
const dateTimeStr = now.toLocaleString('ko-KR', { timeZone: 'Asia/Seoul', year: 'numeric', month: '2-digit', day: '2-digit', weekday: 'long', hour: '2-digit', minute: '2-digit' });
const isoDate = now.toISOString().split('T')[0];
return `${BASE_SYSTEM_PROMPT}\n\n[CURRENT DATE/TIME]\nToday: ${isoDate} (${dateTimeStr})\nUse this date as the absolute reference for any date-related calculations (e.g., "this week", "today", "yesterday").`;
}
export const SYSTEM_PROMPT = BASE_SYSTEM_PROMPT;