Skip to content

Conversation

@ashwin-ant
Copy link
Collaborator

Summary

  • Add e2e test test_filesystem_agent_loading that verifies agents from .claude/agents/*.md are loaded and produce full responses (SystemMessage → AssistantMessage → ResultMessage)
  • Add example examples/filesystem_agents.py demonstrating filesystem agent usage via setting_sources=["project"]
  • Add test agent file .claude/agents/test-agent.md for the SDK repo

Context

This adds test coverage for issue #406 where filesystem-based agents loaded via setting_sources=["project"] silently fail in Docker environments. The test confirms this works correctly outside Docker, helping isolate #406 as a Docker/bundled-CLI specific issue.

Test plan

  • Run python examples/filesystem_agents.py to verify example works
  • Run python -m pytest e2e-tests/test_agents_and_settings.py::test_filesystem_agent_loading -v to verify e2e test passes

🤖 Generated with Claude Code

Add test coverage for issue #406 where filesystem-based agents loaded
via setting_sources=["project"] may silently fail in Docker environments.

Changes:
- Add e2e test `test_filesystem_agent_loading` that verifies agents from
  .claude/agents/*.md are loaded and produce full responses
- Add example `examples/filesystem_agents.py` demonstrating filesystem agent usage
- Add test agent file `.claude/agents/test-agent.md` for the SDK repo

The test confirms this works correctly outside Docker, helping isolate
#406 as a Docker/bundled-CLI specific issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@ashwin-ant ashwin-ant requested a review from a team December 16, 2025 17:49
@ashwin-ant ashwin-ant closed this Dec 16, 2025
@ashwin-ant ashwin-ant deleted the add-filesystem-agents-test branch December 16, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants