You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]Model-specific repo instructions: only load CLAUDE.md/GEMINI.md for matching model; consider per-directory AGENTS.md[/-][+]Model-specific repo instructions[/+]on Nov 29, 2025
Here’s a concise summary of what I implemented and shipped for issue #1282 (Model-specific repo instructions):
What I changed
AgentContext
get_system_message_suffix now optionally accepts llm_model and llm_model_canonical.
When model info is provided, repo skills are filtered so:
CLAUDE.md (skill name "claude") is only included for Anthropic/Claude models.
GEMINI.md (skill name "gemini") is only included for Gemini models.
If model info is not provided, behavior is unchanged (backward-compatible).
AgentBase
Passes self.llm.model and self.llm.model_canonical_name to AgentContext.get_system_message_suffix(), enabling model-specific filtering automatically at system prompt construction time.
Tests
Added tests/sdk/context/test_agent_context_model_specific.py to verify correct inclusion/exclusion for Claude, Gemini, other providers, and canonical-name routing.
Activity
[-]Model-specific repo instructions: only load CLAUDE.md/GEMINI.md for matching model; consider per-directory AGENTS.md[/-][+]Model-specific repo instructions[/+]enyst commentedon Dec 4, 2025
@OpenHands Fix this issue. Read it carefully and investigate the code, so that the solution you propose is inline with codebase patterns. Send a PR.
openhands-ai commentedon Dec 4, 2025
I'm on it! enyst can track my progress at all-hands.dev
openhands-ai commentedon Dec 4, 2025
Here’s a concise summary of what I implemented and shipped for issue #1282 (Model-specific repo instructions):
What I changed
Quality checks
Why this matches the request
PR details
Checklist
If you’d like me to extend vendor detection to additional families or adjust logic for other third-party files, I can follow the same pattern.
View full conversation