Commit ba29cb5
feat(claude-agent-sdk): enhance tutorials with improved notebooks, agents, and documentation (anthropics#312)
* feat(agent-sdk): enhance notebooks, agents, and add documentation
Improvements to the Claude Agent SDK tutorial notebooks:
- Enhanced 00_The_one_liner_research_agent.ipynb with richer outputs
- Enhanced 02_The_observability_agent.ipynb with better visualization
- Improved research_agent/agent.py with cleaner code structure
- Improved observability_agent/agent.py with enhanced features
- Refactored utils/agent_visualizer.py for better maintainability
- Added utils/html_renderer.py for rich HTML visualization in Jupyter
- Added docs/README.md - Documentation overview
- Added docs/ADDITIONS.md - Summary of enhancements
- Added docs/CODEBASE_OVERVIEW.md - Architecture guide
- Added docs/TROUBLESHOOTING.md - Common issues and solutions
- Added pyyaml to pyproject.toml
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* feat(agent-sdk): add enhanced 01_The_chief_of_staff_agent.ipynb
Include the improved chief of staff notebook with cleaner outputs and examples.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* feat(agent-sdk): add enhanced chief_of_staff_agent implementation
Updates to the chief of staff agent:
- Improved agent.py with cleaner code structure
- Updated CLAUDE.md with better context
- Enhanced slash commands (budget-impact, strategic-brief, talent-scan)
- Improved decision_matrix.py script
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* fix(claude-agent-sdk): address PR anthropics#312 review feedback
Addresses all feedback from @PedramNavid's review.
## Critical Issues Fixed
- [x] Run `ruff format` and `ruff check` - all 15 Python files pass
- [x] Uncomment `%pip install` in 00_The_one_liner_research_agent.ipynb
- [x] Remove supplementary docs/ directory per repo guidelines
- Deleted: ADDITIONS.md, CODEBASE_OVERVIEW.md, TROUBLESHOOTING.md, README.md
- [x] Model names verified (claude-opus-4-5, claude-sonnet-4-5 are valid aliases)
## Important Issues Addressed
- [x] sys.path.insert() hack already removed from research_agent/agent.py
- [x] Verified dependencies: kept pandas/markdown (used by html_renderer.py),
removed unused numpy and pandas-stubs
- [x] Thread-safety warning already present in agent_visualizer.py (lines 106-111)
- [x] docs/ references now removed (files deleted)
## Suggestions Implemented
- [x] escape=True already added for DataFrame HTML (html_renderer.py:207,221)
- [x] type: ignore already fixed with proper TypedDict in decision_matrix.py
- [x] Docstring examples already present in agent_visualizer.py
- [x] Consistent type hints across all agent modules
## Additional Cleanup
- Removed unrelated files: GEMINI.md, permission-flow-diagram.md
- Removed temporary directories: .vscode/, plans/, extra output reports
- Cleaned pyproject.toml: removed dev dependencies (mypy, ruff, pytest),
testing config, and unused numpy dependency
## Code Quality Verification
- All Python files pass `ruff check`
- All Python files pass `ruff format --check`
- All agent modules pass mypy type checking
- Project structure now matches upstream exactly
---------
Co-authored-by: Claude <[email protected]>1 parent b4a8aae commit ba29cb5
File tree
23 files changed
+6318
-714
lines changed- claude_agent_sdk
- chief_of_staff_agent
- .claude/commands
- audit
- output_reports
- scripts
- observability_agent
- research_agent
- utils
23 files changed
+6318
-714
lines changedLines changed: 1015 additions & 214 deletions
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| |||
0 commit comments