JetBrains / koog
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
Learn more...
Duplication Overall
system27% (26,317 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
kt27% (25,188 lines)
kts44% (1,035 lines)
java23% (56 lines)
py17% (38 lines)
Duplication per Component (primary)
agents32% (17,166 lines)
prompt24% (7,359 lines)
a2a15% (803 lines)
rag16% (568 lines)
http-client27% (155 lines)
koog-ktor8% (120 lines)
embeddings20% (46 lines)
convention-plugin-ai7% (36 lines)
koog-spring-boot-starter10% (36 lines)
utils7% (19 lines)
test-utils40% (9 lines)
ROOT0% (0 lines)
gradle0% (0 lines)
inspections0% (0 lines)
koog-agents0% (0 lines)

Duplication Between Components (50+ lines)

G agents agents prompt prompt agents--prompt 706 embeddings embeddings agents--embeddings 176 rag rag agents--rag 174 koog-ktor koog-ktor agents--koog-ktor 153 prompt--rag 201 a2a a2a a2a--agents 288 a2a--prompt 288 a2a--rag 76 a2a--embeddings 76 a2a--koog-ktor 67 embeddings--prompt 235 koog-ktor--prompt 180

Download: SVG DOT (open online Graphviz editor)

Open 2D force graph... Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 5,164 duplicates...
Size#FoldersFilesLinesCode
163 x 2 prompt/prompt-executor/p...lients/google/structure
prompt/prompt-executor/p...lients/openai/structure
121:290 (54%)
122:291 (47%)
view
128 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/a.../koog/agents/core/agent
1:150 (100%)
1:150 (100%)
view
128 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
1:150 (100%)
1:150 (100%)
view
128 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/w.../koog/agents/core/agent
1:150 (100%)
1:150 (100%)
view
128 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
1:150 (100%)
1:150 (100%)
view
128 x 2 agents/agents-core/src/j.../koog/agents/core/agent
agents/agents-core/src/w.../koog/agents/core/agent
1:150 (100%)
1:150 (100%)
view
128 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/w.../koog/agents/core/agent
1:150 (100%)
1:150 (100%)
view
121 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
20:148 (94%)
64:192 (85%)
view
121 x 2 agents/agents-core/src/j.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
20:148 (94%)
64:192 (85%)
view
121 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
20:148 (94%)
64:192 (85%)
view
121 x 2 agents/agents-core/src/j.../koog/agents/core/agent
agents/agents-core/src/w.../koog/agents/core/agent
64:192 (85%)
20:148 (94%)
view
110 x 2 agents/agents-core/src/j...ents/core/agent/session
agents/agents-core/src/j...ents/core/agent/session
48:316 (90%)
65:329 (70%)
view
107 x 2 agents/agents-features/a...shot/src/jvmTest/kotlin
agents/agents-features/a...shot/src/jvmTest/kotlin
575:706 (16%)
749:880 (16%)
view
87 x 2 agents/agents-core/src/a...ents/core/agent/context
agents/agents-core/src/a...ents/core/agent/context
1:106 (100%)
1:106 (100%)
view
87 x 2 agents/agents-core/src/j...ents/core/agent/context
agents/agents-core/src/w...ents/core/agent/context
1:106 (100%)
1:106 (100%)
view
87 x 2 agents/agents-core/src/a...ents/core/agent/context
agents/agents-core/src/w...ents/core/agent/context
1:106 (100%)
1:106 (100%)
view
87 x 2 agents/agents-core/src/a...ents/core/agent/context
agents/agents-core/src/j...ents/core/agent/context
1:106 (100%)
1:106 (100%)
view
87 x 2 agents/agents-core/src/a...ents/core/agent/context
agents/agents-core/src/w...ents/core/agent/context
1:106 (100%)
1:106 (100%)
view
87 x 2 agents/agents-core/src/a...ents/core/agent/context
agents/agents-core/src/j...ents/core/agent/context
1:106 (100%)
1:106 (100%)
view
81 x 2 prompt/prompt-executor/p...lients/google/structure
prompt/prompt-executor/p...lients/openai/structure
25:119 (27%)
26:120 (23%)
view
79 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/w.../koog/agents/core/agent
1:98 (100%)
1:98 (100%)
view
79 x 2 agents/agents-core/src/j.../koog/agents/core/agent
agents/agents-core/src/w.../koog/agents/core/agent
1:98 (100%)
1:98 (100%)
view
79 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/w.../koog/agents/core/agent
1:98 (100%)
1:98 (100%)
view
79 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/a.../koog/agents/core/agent
1:98 (100%)
1:98 (100%)
view
79 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
1:98 (100%)
1:98 (100%)
view
79 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
1:98 (100%)
1:98 (100%)
view
78 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/w.../koog/agents/core/agent
1:126 (100%)
1:126 (100%)
view
78 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/w.../koog/agents/core/agent
1:126 (100%)
1:126 (100%)
view
78 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/a.../koog/agents/core/agent
1:126 (100%)
1:126 (100%)
view
75 x 2 agents/agents-core/src/j.../koog/agents/core/agent
agents/agents-core/src/w.../koog/agents/core/agent
18:126 (96%)
18:126 (96%)
view
75 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
18:126 (96%)
18:126 (96%)
view
75 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
18:126 (96%)
18:126 (96%)
view
65 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
1:104 (83%)
1:108 (73%)
view
65 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
1:104 (83%)
1:108 (73%)
view
65 x 2 agents/agents-core/src/j.../koog/agents/core/agent
agents/agents-core/src/w.../koog/agents/core/agent
1:108 (73%)
1:104 (83%)
view
62 x 2 agents/agents-core/src/j.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
18:104 (79%)
22:108 (70%)
view
58 x 2 agents/agents-features/a...features/tracing/writer
agents/agents-features/a...features/tracing/writer
78:154 (13%)
407:483 (14%)
view
58 x 2 agents/agents-features/a...ry/integration/langfuse
agents/agents-features/a...metry/integration/weave
76:139 (24%)
72:133 (22%)
view
55 x 2 agents/agents-features/a...features/tracing/writer
agents/agents-features/a...features/tracing/writer
441:513 (13%)
67:139 (13%)
view
50 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
44:98 (63%)
230:284 (32%)
view
50 x 2 agents/agents-core/src/j.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
44:98 (63%)
230:284 (32%)
view
50 x 2 agents/agents-core/src/a.../koog/agents/core/agent
agents/agents-core/src/j.../koog/agents/core/agent
44:98 (63%)
230:284 (32%)
view
50 x 2 agents/agents-core/src/j.../koog/agents/core/agent
agents/agents-core/src/w.../koog/agents/core/agent
230:284 (32%)
44:98 (63%)
view
46 x 2 prompt/prompt-executor/p...lients/google/structure
prompt/prompt-executor/p...lients/openai/structure
22:75 (35%)
23:76 (34%)
view
45 x 2 agents/agents-core/src/a...ents/core/agent/session
agents/agents-core/src/j...ents/core/agent/session
1:70 (100%)
1:70 (100%)
view
45 x 2 agents/agents-core/src/a...ents/core/agent/session
agents/agents-core/src/w...ents/core/agent/session
1:70 (100%)
1:70 (100%)
view
45 x 2 agents/agents-core/src/a...ents/core/agent/session
agents/agents-core/src/j...ents/core/agent/session
1:70 (100%)
1:70 (100%)
view
45 x 2 agents/agents-core/src/a...ents/core/agent/session
agents/agents-core/src/w...ents/core/agent/session
1:70 (100%)
1:70 (100%)
view
45 x 2 agents/agents-core/src/j...ents/core/agent/session
agents/agents-core/src/w...ents/core/agent/session
1:70 (100%)
1:70 (100%)
view
45 x 2 agents/agents-core/src/a...ents/core/agent/session
agents/agents-core/src/a...ents/core/agent/session
1:70 (100%)
1:70 (100%)
view
Duplicated Units
The list of top 8 duplicated units.
See data for all 8 unit duplicates...
Size#FoldersFilesLinesCode
32 x 2 agents/agents-features/a.../features/sql/providers
agents/agents-features/a.../features/sql/providers
117:156 
118:157 
view
15 x 2 prompt/prompt-xml/src/co...tlin/ai/koog/prompt/xml
prompt/prompt-xml/src/co...tlin/ai/koog/prompt/xml
99:119 
37:57 
view
14 x 2 a2a/a2a-core/src/commonM...otlin/ai/koog/a2a/utils
agents/agents-core/src/c.../koog/agents/core/utils
23:39 
16:32 
view
12 x 2 agents/agents-features/a...ry/integration/langfuse
agents/agents-features/a...metry/integration/weave
95:109 
62:76 
view
7 x 3 prompt/prompt-executor/p...cutor/clients/dashscope
prompt/prompt-executor/p...executor/clients/openai
prompt/prompt-executor/p...ecutor/clients/deepseek
110:118 
243:251 
118:126 
view
6 x 2 prompt/prompt-xml/src/co...tlin/ai/koog/prompt/xml
prompt/prompt-xml/src/co...tlin/ai/koog/prompt/xml
10:17 
10:17 
view
6 x 2 agents/agents-core/src/j...ents/core/agent/session
agents/agents-core/src/j...ents/core/agent/session
72:79 
89:96 
view
6 x 2 agents/agents-core/src/j...ents/core/agent/session
agents/agents-core/src/j...ents/core/agent/session
276:283 
289:296 
view