Repository navigation
Load model-specific repo instructions (CLAUDE.md for Claude only, GEMINI.md for Gemini only) - #1328
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
Coverage Report •
|
||||||||||||||||||||||||||||||||||||||||
…/Anthropic, GEMINI.md only for Gemini. Add Skill.should_include_for_model; plumb through load/load_skills_from_dir; update tests to assert gating at loader. This aligns filtering with the loader that discovers third-party files. Co-authored-by: openhands <openhands@all-hands.dev>
…e loader signature; gate vendor files in loader; run format. Co-authored-by: openhands <openhands@all-hands.dev>
|
[Automatic Post]: It has been a while since there was any activity on this PR. @enyst, are you still working on it? If so, please go ahead, if not then please request review, close it, or request that someone else follow up. |
|
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |
|
@OpenHands Look at the SDK codebase, find how we load system prompt pieces per LLM. That problem is similar to this: loading Skills per (some) LLMs. Verify how we can do this, so that the code is clean and inline with the existing implementation. Could we do something similar to that, rather than adding a different way to implement a similar thing? |
|
I'm on it! enyst can track my progress at all-hands.dev |
|
Summary of findings and recommendation What you asked What the code does today (system prompt)
What the current branch does for Skills
Recommendation: mirror the system-prompt pattern
Testing implications
Bottom line |
- Gate CLAUDE.md/GEMINI.md at render-time in AgentContext using get_model_prompt_spec - Pass llm model identifiers from AgentBase into AgentContext.get_system_message_suffix - Remove loader-level gating and llm params from load_skills_from_dir - Update/replace tests to validate gating at AgentContext/system-message level Co-authored-by: openhands <openhands@all-hands.dev>
… models) Co-authored-by: openhands <openhands@all-hands.dev>
|
[Automatic Post]: It has been a while since there was any activity on this PR. @enyst, are you still working on it? If so, please go ahead, if not then please request review, close it, or request that someone else follow up. |
|
@neubig On a side note, this was ready for review last week, I think the workflow was supposed to try to assign a reviewer 🤔
But I think maybe we can think this over a bit. |
…INI.md for Gemini only) (OpenHands#1328) Co-authored-by: openhands <openhands@all-hands.dev>

Summary
Motivation
This change addresses issue #1282 by ensuring provider-specific instruction files are applied only for the relevant model family. This avoids cross-provider bleed of rules and aligns behavior with prior discussions and PR #1280.
Design notes
Testing
Closes #1282
Co-authored-by: openhands openhands@all-hands.dev
@enyst can click here to continue refining the PR
Agent Server images for this PR
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdknikolaik/python-nodejs:python3.12-nodejs22golang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:a1c1879-pythonRun
All tags pushed for this build
About Multi-Architecture Support
a1c1879-python) is a multi-arch manifest supporting both amd64 and arm64a1c1879-python-amd64) are also available if needed