Skip to content

Commit 9f636e1

Browse files
committed
fix(agents): enforce English prompting for all subagents (#58)
- Add Language Rule (MANDATORY) section in OmO Delegation_Rules - Clarify that subagent prompts must always be in English - Update background-task tool documentation with English requirement - Update call-omo-agent tool documentation with English language rule - LLMs perform significantly better with English prompts - Improves consistency and performance across all agent-to-subagent communication 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
1 parent 5ce025f commit 9f636e1

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

src/agents/omo.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@ CONTEXT:
165165
- Files: src/auth/token.py, src/auth/middleware.py
166166
""", subagent_type="executor")
167167
\`\`\`
168+
169+
### Language Rule (MANDATORY)
170+
171+
**ALWAYS write subagent prompts in English, regardless of the user's language.**
172+
173+
- LLMs perform significantly better with English prompts
174+
- Internal agent communication must be in English for consistency
175+
- User-facing responses should match the user's language
176+
- Subagent prompts, task descriptions, and expected outcomes: ALWAYS English
168177
</Delegation_Rules>
169178
170179
<Parallel_Execution>

src/tools/background-task/constants.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ Use this for:
99
1010
Arguments:
1111
- description: Short task description (shown in status)
12-
- prompt: Full detailed prompt for the agent
12+
- prompt: Full detailed prompt for the agent (MUST be in English for optimal LLM performance)
1313
- agent: Agent type to use (any agent allowed)
1414
15+
IMPORTANT: Always write prompts in English regardless of user's language. LLMs perform significantly better with English prompts.
16+
1517
Returns immediately with task ID and session info. Use \`background_output\` to check progress or retrieve results.`
1618

1719
export const BACKGROUND_OUTPUT_DESCRIPTION = `Get output from a background task.

src/tools/call-omo-agent/constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ Usage notes:
2121
3. Each agent invocation is stateless unless you provide a session_id
2222
4. Your prompt should contain a highly detailed task description for the agent to perform autonomously
2323
5. Clearly tell the agent whether you expect it to write code or just to do research
24-
6. For long-running research tasks, use run_in_background=true to avoid blocking`
24+
6. For long-running research tasks, use run_in_background=true to avoid blocking
25+
7. **IMPORTANT**: Always write prompts in English regardless of user's language. LLMs perform significantly better with English prompts.`

0 commit comments

Comments
 (0)