From d40add5e2aa428dfca9a97ad839962c2dc759849 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Tue, 16 Dec 2025 21:02:38 +0900 Subject: [PATCH] docs: fix outdated librarian model and add empty-message-sanitizer hook documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Updated AGENTS.md with correct librarian model (anthropic/claude-sonnet-4-5) - Added empty-message-sanitizer hook documentation to README files (English, Korean, Japanese) - Ensures documentation accuracy for developers ๐Ÿค– GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- AGENTS.md | 2 +- README.ja.md | 3 ++- README.ko.md | 3 ++- README.md | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 6d52b54..b6d9ece 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -80,7 +80,7 @@ oh-my-opencode/ |-------|-------|---------| | OmO | anthropic/claude-opus-4-5 | Primary orchestrator, team leader | | oracle | openai/gpt-5.2 | Strategic advisor, code review, architecture | -| librarian | opencode/big-pickle | Multi-repo analysis, docs lookup, GitHub examples | +| librarian | anthropic/claude-sonnet-4-5 | Multi-repo analysis, docs lookup, GitHub examples | | explore | opencode/grok-code | Fast codebase exploration, file patterns | | frontend-ui-ux-engineer | google/gemini-3-pro-preview | UI generation, design-focused | | document-writer | google/gemini-3-pro-preview | Technical documentation | diff --git a/README.ja.md b/README.ja.md index 1abe463..99a3c04 100644 --- a/README.ja.md +++ b/README.ja.md @@ -474,6 +474,7 @@ Oh My OpenCode ใฏไปฅไธ‹ใฎๅ ดๆ‰€ใ‹ใ‚‰ใƒ•ใƒƒใ‚ฏใ‚’่ชญใฟ่พผใ‚“ใงๅฎŸ่กŒใ—ใพ - **Background Notification**: ใƒใƒƒใ‚ฏใ‚ฐใƒฉใ‚ฆใƒณใƒ‰ใ‚จใƒผใ‚ธใ‚งใƒณใƒˆใฎใ‚ฟใ‚นใ‚ฏใŒๅฎŒไบ†ใ™ใ‚‹ใจ้€š็Ÿฅใ‚’ๅ—ใ‘ๅ–ใ‚Šใพใ™ใ€‚ - **Session Notification**: ใ‚จใƒผใ‚ธใ‚งใƒณใƒˆใŒใ‚ขใ‚คใƒ‰ใƒซ็Šถๆ…‹ใซใชใ‚‹ใจ OS ้€š็Ÿฅใ‚’้€ใ‚Šใพใ™ใ€‚macOSใ€Linuxใ€Windows ใงๅ‹•ไฝœใ—ใพใ™โ€”ใ‚จใƒผใ‚ธใ‚งใƒณใƒˆใŒๅ…ฅๅŠ›ใ‚’ๅพ…ใฃใฆใ„ใ‚‹ๆ™‚ใ‚’่ฆ‹้€ƒใ—ใพใ›ใ‚“ใ€‚ - **Empty Task Response Detector**: Task ใƒ„ใƒผใƒซใŒ็ฉบใฎๅฟœ็ญ”ใ‚’่ฟ”ใ™ใจๆคœ็Ÿฅใ—ใพใ™ใ€‚ๆ—ขใซ็ฉบใฎๅฟœ็ญ”ใŒ่ฟ”ใฃใฆใใฆใ„ใ‚‹ใฎใซใ€ใ„ใคใพใงใ‚‚ๅพ…ใก็ถšใ‘ใ‚‹็Šถๆณใ‚’้˜ฒใŽใพใ™ใ€‚ +- **Empty Message Sanitizer**: ็ฉบใฎใƒใƒฃใƒƒใƒˆใƒกใƒƒใ‚ปใƒผใ‚ธใซใ‚ˆใ‚‹APIใ‚จใƒฉใƒผใ‚’้˜ฒๆญขใ—ใพใ™ใ€‚้€ไฟกๅ‰ใซใƒกใƒƒใ‚ปใƒผใ‚ธๅ†…ๅฎนใ‚’่‡ชๅ‹•็š„ใซใ‚ตใƒ‹ใ‚ฟใ‚คใ‚บใ—ใพใ™ใ€‚ - **Grep Output Truncator**: grep ใฏๅฑฑใฎใ‚ˆใ†ใชใƒ†ใ‚ญใ‚นใƒˆใ‚’่ฟ”ใ™ใ“ใจใŒใ‚ใ‚Šใพใ™ใ€‚ๆฎ‹ใ‚Šใฎใ‚ณใƒณใƒ†ใ‚ญใ‚นใƒˆใ‚ฆใ‚ฃใƒณใƒ‰ใ‚ฆใซๅฟœใ˜ใฆๅ‹•็š„ใซๅ‡บๅŠ›ใ‚’ๅˆ‡ใ‚Š่ฉฐใ‚ใพใ™โ€”50% ใฎไฝ™่ฃ•ใ‚’็ถญๆŒใ—ใ€ๆœ€ๅคง 50k ใƒˆใƒผใ‚ฏใƒณใซๅˆถ้™ใ—ใพใ™ใ€‚ - **Tool Output Truncator**: ๅŒใ˜่€ƒใˆๆ–นใ‚’ใ‚ˆใ‚Šๅบƒ็ฏ„ๅ›ฒใซ้ฉ็”จใ—ใพใ™ใ€‚Grepใ€Globใ€LSP ใƒ„ใƒผใƒซใ€AST-grep ใฎๅ‡บๅŠ›ใ‚’ๅˆ‡ใ‚Š่ฉฐใ‚ใพใ™ใ€‚ไธ€ๅบฆใฎๅ†—้•ทใชๆคœ็ดขใŒใ‚ณใƒณใƒ†ใ‚ญใ‚นใƒˆๅ…จไฝ“ใ‚’้ฃŸใ„ใคใถใ™ใฎใ‚’้˜ฒใŽใพใ™ใ€‚ @@ -612,7 +613,7 @@ OmO ใ‚’็„กๅŠนๅŒ–ใ—ใฆๅ…ƒใฎ build/plan ใ‚จใƒผใ‚ธใ‚งใƒณใƒˆใ‚’ๅพฉๅ…ƒใ™ใ‚‹ใซใฏ } ``` -ๅˆฉ็”จๅฏ่ƒฝใชใƒ•ใƒƒใ‚ฏ๏ผš`todo-continuation-enforcer`, `context-window-monitor`, `session-recovery`, `session-notification`, `comment-checker`, `grep-output-truncator`, `tool-output-truncator`, `directory-agents-injector`, `directory-readme-injector`, `empty-task-response-detector`, `think-mode`, `anthropic-auto-compact`, `rules-injector`, `background-notification`, `auto-update-checker`, `startup-toast`, `keyword-detector`, `agent-usage-reminder`, `non-interactive-env`, `interactive-bash-session` +ๅˆฉ็”จๅฏ่ƒฝใชใƒ•ใƒƒใ‚ฏ๏ผš`todo-continuation-enforcer`, `context-window-monitor`, `session-recovery`, `session-notification`, `comment-checker`, `grep-output-truncator`, `tool-output-truncator`, `directory-agents-injector`, `directory-readme-injector`, `empty-task-response-detector`, `think-mode`, `anthropic-auto-compact`, `rules-injector`, `background-notification`, `auto-update-checker`, `startup-toast`, `keyword-detector`, `agent-usage-reminder`, `non-interactive-env`, `interactive-bash-session`, `empty-message-sanitizer` ### MCPs diff --git a/README.ko.md b/README.ko.md index de30d43..b0e211a 100644 --- a/README.ko.md +++ b/README.ko.md @@ -470,6 +470,7 @@ Oh My OpenCode๋Š” ๋‹ค์Œ ์œ„์น˜์˜ ํ›…์„ ์ฝ๊ณ  ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค: - **Background Notification**: ๋ฐฑ๊ทธ๋ผ์šด๋“œ ์—์ด์ „ํŠธ ์ž‘์—…์ด ์™„๋ฃŒ๋˜๋ฉด ์•Œ๋ฆผ์„ ๋ฐ›์Šต๋‹ˆ๋‹ค. - **Session Notification**: ์—์ด์ „ํŠธ๊ฐ€ ๋Œ€๊ธฐ ์ƒํƒœ๊ฐ€ ๋˜๋ฉด OS ์•Œ๋ฆผ์„ ๋ณด๋ƒ…๋‹ˆ๋‹ค. macOS, Linux, Windows์—์„œ ์ž‘๋™โ€”์—์ด์ „ํŠธ๊ฐ€ ์ž…๋ ฅ์„ ๊ธฐ๋‹ค๋ฆด ๋•Œ ๋†“์น˜์ง€ ๋งˆ์„ธ์š”. - **Empty Task Response Detector**: Task ๋„๊ตฌ๊ฐ€ ๋นˆ ์‘๋‹ต์„ ๋ฐ˜ํ™˜ํ•˜๋ฉด ๊ฐ์ง€ํ•ฉ๋‹ˆ๋‹ค. ์ด๋ฏธ ๋นˆ ์‘๋‹ต์ด ์™”๋Š”๋ฐ ๋ฌดํ•œ์ • ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ƒํ™ฉ์„ ๋ฐฉ์ง€ํ•ฉ๋‹ˆ๋‹ค. +- **Empty Message Sanitizer**: ๋นˆ ์ฑ„ํŒ… ๋ฉ”์‹œ์ง€๋กœ ์ธํ•œ API ์˜ค๋ฅ˜๋ฅผ ๋ฐฉ์ง€ํ•ฉ๋‹ˆ๋‹ค. ์ „์†ก ์ „ ๋ฉ”์‹œ์ง€ ๋‚ด์šฉ์„ ์ž๋™์œผ๋กœ ์ •๋ฆฌํ•ฉ๋‹ˆ๋‹ค. - **Grep Output Truncator**: grep์€ ์‚ฐ๋”๋ฏธ ๊ฐ™์€ ํ…์ŠคํŠธ๋ฅผ ๋ฐ˜ํ™˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‚จ์€ ์ปจํ…์ŠคํŠธ ์œˆ๋„์šฐ์— ๋”ฐ๋ผ ๋™์ ์œผ๋กœ ์ถœ๋ ฅ์„ ์ถ•์†Œํ•ฉ๋‹ˆ๋‹คโ€”50% ์—ฌ์œ  ๊ณต๊ฐ„ ์œ ์ง€, ์ตœ๋Œ€ 50k ํ† ํฐ. - **Tool Output Truncator**: ๊ฐ™์€ ์•„์ด๋””์–ด, ๋” ๋„“์€ ๋ฒ”์œ„. Grep, Glob, LSP ๋„๊ตฌ, AST-grep์˜ ์ถœ๋ ฅ์„ ์ถ•์†Œํ•ฉ๋‹ˆ๋‹ค. ํ•œ ๋ฒˆ์˜ ์žฅํ™ฉํ•œ ๊ฒ€์ƒ‰์ด ์ „์ฒด ์ปจํ…์ŠคํŠธ๋ฅผ ์žก์•„๋จน๋Š” ๊ฒƒ์„ ๋ฐฉ์ง€ํ•ฉ๋‹ˆ๋‹ค. @@ -608,7 +609,7 @@ OmO๋ฅผ ๋น„ํ™œ์„ฑํ™”ํ•˜๊ณ  ์›๋ž˜ build/plan ์—์ด์ „ํŠธ๋ฅผ ๋ณต์›ํ•˜๋ ค๋ฉด: } ``` -์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ํ›…: `todo-continuation-enforcer`, `context-window-monitor`, `session-recovery`, `session-notification`, `comment-checker`, `grep-output-truncator`, `tool-output-truncator`, `directory-agents-injector`, `directory-readme-injector`, `empty-task-response-detector`, `think-mode`, `anthropic-auto-compact`, `rules-injector`, `background-notification`, `auto-update-checker`, `startup-toast`, `keyword-detector`, `agent-usage-reminder`, `non-interactive-env`, `interactive-bash-session` +์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ํ›…: `todo-continuation-enforcer`, `context-window-monitor`, `session-recovery`, `session-notification`, `comment-checker`, `grep-output-truncator`, `tool-output-truncator`, `directory-agents-injector`, `directory-readme-injector`, `empty-task-response-detector`, `think-mode`, `anthropic-auto-compact`, `rules-injector`, `background-notification`, `auto-update-checker`, `startup-toast`, `keyword-detector`, `agent-usage-reminder`, `non-interactive-env`, `interactive-bash-session`, `empty-message-sanitizer` ### MCPs diff --git a/README.md b/README.md index 84c6794..1b1dcc0 100644 --- a/README.md +++ b/README.md @@ -471,6 +471,7 @@ When agents thrive, you thrive. But I want to help you directly too. - **Background Notification**: Get notified when background agent tasks complete. - **Session Notification**: Sends OS notifications when agents go idle. Works on macOS, Linux, and Windowsโ€”never miss when your agent needs input. - **Empty Task Response Detector**: Catches when Task tool returns nothing. Warns you about potential agent failures so you don't wait forever for a response that already came back empty. +- **Empty Message Sanitizer**: Prevents API errors from empty chat messages by automatically sanitizing message content before sending. - **Grep Output Truncator**: Grep can return mountains of text. This dynamically truncates output based on your remaining context windowโ€”keeps 50% headroom, caps at 50k tokens. - **Tool Output Truncator**: Same idea, broader scope. Truncates output from Grep, Glob, LSP tools, and AST-grep. Prevents one verbose search from eating your entire context. @@ -609,7 +610,7 @@ Disable specific built-in hooks via `disabled_hooks` in `~/.config/opencode/oh-m } ``` -Available hooks: `todo-continuation-enforcer`, `context-window-monitor`, `session-recovery`, `session-notification`, `comment-checker`, `grep-output-truncator`, `tool-output-truncator`, `directory-agents-injector`, `directory-readme-injector`, `empty-task-response-detector`, `think-mode`, `anthropic-auto-compact`, `rules-injector`, `background-notification`, `auto-update-checker`, `startup-toast`, `keyword-detector`, `agent-usage-reminder`, `non-interactive-env`, `interactive-bash-session` +Available hooks: `todo-continuation-enforcer`, `context-window-monitor`, `session-recovery`, `session-notification`, `comment-checker`, `grep-output-truncator`, `tool-output-truncator`, `directory-agents-injector`, `directory-readme-injector`, `empty-task-response-detector`, `think-mode`, `anthropic-auto-compact`, `rules-injector`, `background-notification`, `auto-update-checker`, `startup-toast`, `keyword-detector`, `agent-usage-reminder`, `non-interactive-env`, `interactive-bash-session`, `empty-message-sanitizer` ### MCPs