strands-agents/harness-sdk
Build an agent harness and control it end-to-end. Open-source SDK for production AI agents in Python & TypeScript - any model, any cloud.
Python★ 7,943+115 that day#7 on trendingD 54.5 health7.13% duplicated
D54.5/100
Duplication57
7% in python, typescript, astro, tsx, javascript, bash, perlDead code66
4.6%Complexity44
60.3%Most complex files
- strands-cli/src/tui/view/setup-wizard/index.tsx931 cx
- strands-cli/src/tui/chat/controller.ts536 cx
- strands-cli/src/tui/view/app.tsx449 cx
- strands-ts/src/models/__tests__/bedrock.test.ts438 cx
- strands-py/src/strands/tools/mcp/mcp_client.py413 cx
- strands-py/tests/strands/models/test_bedrock.py397 cx
- strands-py/src/strands/models/bedrock.py346 cx
- strands-ts/src/models/bedrock.ts339 cx
- strands-ts/src/agent/agent.ts323 cx
- strands-cli/test/tui-chat.test.ts303 cx
Dead code 4.59% unused · 314 findings
- strands-cli/src/tui/view/app.tsxunused-file
- strands-cli/src/tui/view/chat-view.tsxunused-file
- site/src/content/docs/user-guide/sdk/agents/hooks.tsunused-file
- strands-cli/src/tui/view/custom-theme-editor.tsxunused-file
- site/src/content/docs/user-guide/sdk/tools/tools.tsunused-file
- strands-cli/src/tui/view/panels.tsxunused-file
- site/src/components/community/CoursesSection.astrounused-file
- strands-cli/src/tui/view/settings-panel.tsxunused-file
- site/src/content/docs/user-guide/sdk/multi-agent/graph.tsunused-file
- strands-cli/src/tui/view/transcript-turn.tsxunused-file
2,448files
546,538lines
3,256,092tokens
3,117clones
38,980duplicated lines (7.13%)
230,677duplicated tokens (7.08%)
By format
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| typescript | 965 | 233,030 | 1,610 | 17,891 | 7.68% |
| python | 754 | 233,866 | 1,224 | 16,185 | 6.92% |
| yaml | 210 | 11,062 | 172 | 2,974 | 26.88% |
| markdown | 118 | 22,418 | 53 | 858 | 3.83% |
| json | 53 | 4,106 | 21 | 656 | 15.98% |
| css | 49 | 6,433 | 17 | 156 | 2.42% |
| html | 48 | 2,117 | 7 | 69 | 3.26% |
| javascript | 55 | 5,551 | 5 | 100 | 1.8% |
| tsx | 33 | 10,557 | 3 | 26 | 0.25% |
| markup | 41 | 1,528 | 3 | 40 | 2.62% |
Largest clones
- 170 lines · 739 tokens typescriptstrands-ts/src/models/__tests__/bedrock.test.ts:3295–3464⇆strands-ts/src/models/__tests__/bedrock.test.ts:3731–3900
- 114 lines · 597 tokens pythonsite/docs/examples/cdk/deploy_to_fargate/docker/app/app.py:1–114⇆site/docs/examples/deploy_to_eks/docker/app/app.py:1–114
- 111 lines · 583 tokens pythonsite/docs/examples/cdk/deploy_to_ec2/app/app.py:2–112⇆site/docs/examples/cdk/deploy_to_fargate/docker/app/app.py:4–114
- 108 lines · 571 tokens pythonsite/docs/examples/cdk/deploy_to_apprunner/docker/app/app.py:1–108⇆site/docs/examples/cdk/deploy_to_ec2/app/app.py:5–112
- 108 lines · 521 tokens typescriptstrands-ts/src/models/__tests__/bedrock.test.ts:3514–3621⇆strands-ts/src/models/__tests__/bedrock.test.ts:3898–4005
- 37 lines · 462 tokens pythonstrands-py/src/strands/agent/agent.py:921–957⇆strands-py/src/strands/agent/agent.py:1264–1300
- 70 lines · 460 tokens pythonstrands-py/tests/strands/agent/test_agent_hooks.py:167–236⇆strands-py/tests/strands/agent/test_agent_hooks.py:254–323
- 36 lines · 439 tokens pythonstrands-py/src/strands/agent/agent.py:831–866⇆strands-py/src/strands/agent/agent.py:925–960
- 76 lines · 384 tokens yaml.github/workflows/release-mcp.yml:367–442⇆.github/workflows/release-python.yml:412–487
- 79 lines · 384 tokens yaml.github/workflows/release-python.yml:398–476⇆.github/workflows/release-typescript.yml:382–460
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | Duplication | Health | Commit |
|---|---|---|---|---|---|---|---|---|
| Sep 24, 2026 | #7 | 7,943 (+115) | 2,448 | 546,538 | 3,117 | 7.13% | D 54.5 | 43b15b7 |
Want this for your own project? Install jscpd and run jscpd .