andrewyng/openworker
Python★ 20,495+297 that day#2 on trending
D54.7/100
Duplication81
2.7% in python, rust, javascript, tsx, typescript, bash, docker, go, sql, powershell, astro, hcl, cDead code48
8%Complexity41
65.1% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
2.38%duplicated code · 7,951 of 333,396 lines
692clones in code
954code files of 2,607 scanned
7.94%duplicated over all files · 2,451 clones
Most complex files
- coworker/server/manager.py2550 cx
- harness/runtime/src/runtime.rs1399 cx
- surfaces/gui/src/App.tsx1069 cx
- coworker/engine.py991 cx
- coworker/server/app.py892 cx
- surfaces/gui/src/components/StepsPanel.tsx800 cx
- surfaces/gui/e2e/fixtures.ts727 cx
- coworker/connectors/integration_tools.py645 cx
- surfaces/gui/src/api.ts621 cx
- coworker/permissions.py509 cx
Dead code 8% unused · 149 findings
- harness/service-ui/public/app.jsunused-file
- deploy/recovery/local.mjsunused-file
- deploy/resilience/cluster.mjsunused-file
- deploy/aws/kubernetes.mjsunused-file
- harness/service-ui/mock/app.jsunused-file
- deploy/helm/local.mjsunused-file
- harness/service-ui/public/observability.jsunused-file
- deploy/reference/qualify-exports.mjsunused-file
- deploy/service/qualify-ui-kubernetes.mjsunused-file
- deploy/helm/version-drill.mjsunused-file
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 1 generated file: coworker/tools/todo.py.
Largest clones in the code
- 685 lines in 2 placesjavascript5,411 tokens
1import { 2 esc, 3 known, 4 count, 5 duration, 6 measurement, 7 average, 8 runKey, 9 purpose, 10 phases,First 10 of 685 lines.
- 596 lines in 2 placesjavascript5,208 tokens
1import { esc, duration, count } from "./observability-data.js"; 2const id = (s) => encodeURIComponent(s); 3const path = (q) => 4 `/v1/sessions/${id(q.sessionId)}/observability/${id(q.turnId)}`; 5/** Transport stays in the trusted application; the component never stores credentials. */ 6export function serviceTracingAdapter(request) { 7 const get = (p, signal) => request(p, signal); 8 return { 9 search: async (q, signal) => 10 get(First 10 of 596 lines.
- 151 lines in 2 placesjavascript1,173 tokensharness/service-ui/public/observability-data.js:3–153harness/trace-viewer/src/observability-data.js:3–153
3export const esc = (s) => 4 String(s ?? "").replace( 5 /[&<>"']/g, 6 (c) => 7 ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[ 8 c 9 ], 10 ); 11export const known = (n) => 12 typeof n === "number" &&First 10 of 151 lines.
7 more
- 6 lines in 12 placesrust62 tokensharness/store-postgres/src/service_team_imports.rs:252–257harness/store-postgres/src/service_team_imports.rs:278–283harness/store-postgres/src/service_team_imports.rs:297–302harness/store-postgres/src/service_team_integrations.rs:212–217harness/store-postgres/src/service_team_integrations.rs:237–240and 7 more
- 7 lines in 8 placespython55 tokens
- 6 lines in 6 placesrust71 tokensharness/store-postgres/src/service_team_imports.rs:190–195harness/store-postgres/src/service_team_integrations.rs:186–191harness/store-postgres/src/service_team_publications.rs:231–236harness/store-postgres/src/service_team_receptions.rs:117–122harness/store-postgres/src/service_team_sources.rs:466–471and 1 more
- 32 lines in 2 placesrust325 tokens
- 6 lines in 7 placespython54 tokens
- 8 lines in 7 placespython51 tokens
- 26 lines in 2 placestsx291 tokens
Largest clones over all files, tests and data included
- 1947 lines in 2 placescssstyles9,886 tokens
1:root { 2 --ink: #202328; 3 --muted: #777d87; 4 --soft: #a3a8b0; 5 --line: #e7e9ed; 6 --canvas: #fff; 7 --sidebar: #f7f8fa; 8 --wash: #f6f7f9; 9 --slate: #5c6b82; 10 --radius: 10px;First 10 of 1947 lines.
- 31 lines in 62 placesjsontests102 tokenstests/corpora/observability/golden-phase3/S3-13/recording.json:61–91tests/corpora/observability/golden-phase3/S3-40/input.json:10–40tests/corpora/observability/golden-phase3/S3-50/input.json:66–96tests/corpora/observability/golden-phase3/S3-50/input.json:122–152tests/corpora/observability/golden-phase3/S3-50/input.json:178–208and 57 more
61"started_at": 1793095740000, 62"duration_ms": 30000, 63"status": "completed", 64"incomplete": false, 65"approval_mode": "interactive", 66"attended": true, 67"reviewer": { 68 "active": false, 69 "shadow": false, 70 "kind": null,First 10 of 31 lines.
- 685 lines in 2 placesjavascript5,411 tokens
1import { 2 esc, 3 known, 4 count, 5 duration, 6 measurement, 7 average, 8 runKey, 9 purpose, 10 phases,First 10 of 685 lines.
- 596 lines in 2 placesjavascript5,208 tokens
- 20 lines in 65 placesjsontests73 tokenstests/corpora/observability/golden-phase3/S3-03/recording.json:65–84tests/corpora/observability/golden-phase3/S3-05/recording.json:65–84tests/corpora/observability/golden-phase3/S3-06/recording.json:101–120tests/corpora/observability/golden-phase3/S3-09/recording.json:65–84tests/corpora/observability/golden-phase3/S3-50/input.json:3529–3548and 60 more
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| rust | 303 | 128,124 | 404 | 3,651 | 2.85% |
| python | 284 | 113,117 | 187 | 1,895 | 1.68% |
| tsx | 116 | 42,735 | 58 | 575 | 1.35% |
| javascript | 142 | 32,168 | 32 | 1,740 | 5.41% |
| typescript | 86 | 15,702 | 8 | 70 | 0.45% |
| bash | 7 | 777 | 2 | 14 | 1.8% |
| sql | 5 | 235 | 1 | 6 | 2.55% |
| go | 1 | 180 | 0 | 0 | 0% |
| astro | 6 | 123 | 0 | 0 | 0% |
| html | 3 | 123 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| json | 289 | 74,948 | 1,049 | 30,721 | 40.99% |
| rust | 474 | 177,126 | 633 | 5,782 | 3.26% |
| python | 585 | 192,861 | 377 | 3,993 | 2.07% |
| javascript | 352 | 60,026 | 103 | 2,363 | 3.94% |
| typescript | 267 | 34,776 | 97 | 913 | 2.63% |
| tsx | 195 | 55,586 | 93 | 916 | 1.65% |
| yaml | 64 | 8,243 | 48 | 2,863 | 34.73% |
| markdown | 179 | 17,257 | 20 | 374 | 2.17% |
| markup | 28 | 3,227 | 16 | 165 | 5.11% |
| bash | 58 | 1,408 | 5 | 29 | 2.06% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Dec 5, 2026 | #2 | 20,495 (+297) | 2,607 | 645,891 | 2,451 | 7.94% | 2.38% | D 54.7 | 83dc779 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.