Documentation and developer resources for anthropics/claude-agent-sdk-python
# Workflow
```bash
# Lint and style
# Check for issues and fix automatically
python -m ruff check src/ tests/ scripts/ --fix
python -m ruff format src/ tests/ scripts/
# Typecheck
python -m mypy src/ scripts/
# Run all tests
python -m pytest tests/
# Run specific test file
python -m pytest tests/test_client.py
```
# Codebase Structure
- `src/claude_agent_sdk/` - Main package
- `client.py` - ClaudeSDKClient for interactive sessions
- `query.py` - One-shot query function
- `types.py` - Type definitions
- `_internal/` - Internal implementation details
- `transport/subprocess_cli.py` - CLI subprocess management
- `message_parser.py` - Message parsing logic