#07 Claude Code Team v4 (Same Prompt, 1M Context)

Quality

2026-03-20-claude-code-team · v2.1.80

Files Created

389

398 unique

Total Tool Calls

19880

across 48 agents

Active Agents

47

contributing code

Estimated Cost

$132.06

14679 API requests

Codebase Output

398 files

Files by Directory

resources/views
55
database/migrations
47
app/Models
46
database/factories
40
tests/Feature
39
app/Livewire
38
app/Enums
31
tests/Browser
19
database/seeders
18
app/Services
18
app/Policies
10
app/Exceptions
6
app/Jobs
6
app/Events
5
app/ValueObjects
4

Files per Agent (top 12)

agent-a052055d8cfb480b5
221w 59e
agent-a200d178956bac67e
221w 59e
agent-a137a15e2a17ef578
118w 34e
agent-ac1eeda3a0d1f2c50
118w 34e
agent-a2328182bce6057ee
59w 14e
agent-a31a4d95ba5fde691
59w 14e
agent-acompact-89eb3cb2263ec678
56w 9e
agent-acompact-ef8c76e9fdb11341
60w 5e
agent-a2254d1f11982de50
53w 10e
agent-acompact-b005de5b50389d12
46w 7e
agent-acompact-78632c1e6b97534e
19w 10e
agent-acompact-2eeb81f9b4ca7a17
9w 13e

Code Quality Assessment

PHPMetrics

Code Quality Assessment

PHPMetrics 2.9.1

Classes

153

Lines of Code

4.5K

Avg MI

72.9

Avg Complexity

4.2

Est. Bugs

12.2

Violations

0

0 errors

Complexity Distribution

Low (CCN <= 5)
123 (80.4%)
Medium (6-10)
14 (9.2%)
High (> 10)
16 (10.5%)

Maintainability Distribution

Excellent (>= 85)
29 (19%)
Good (70-84)
16 (10.5%)
Moderate (55-69)
73 (47.7%)
Low (< 55)
35 (22.9%)

Most Complex Classes

ClassCCNLOCMI
OrderService
App\Services
40123
52
DiscountService
App\Services
3295
44
ShippingCalculator
App\Services
3175
34
Checkout\Show
App\Livewire\Storefront\Checkout
30204
44
Dashboard
App\Livewire\Admin
27121
58

Least Maintainable Classes

ClassMICCNLOC
CartService
App\Services
30
23112
ShippingCalculator
App\Services
34
3175
ProductService
App\Services
35
2179
Orders\Show
App\Livewire\Admin\Orders
36
1379
Addresses\Index
App\Livewire\Storefront\Account\Addresses
39
18103

Most Coupled Classes

User
18
Store
17
Order
16
OrderService
15
Product
13

Coupling Metrics

Avg Afferent (incoming)1.01
Avg Efferent (outgoing)2.82
Avg Instability0.80
Avg LCOM1.85
Max LCOM5

Halstead Metrics

Avg Volume237.2
Avg Difficulty4.12
Avg Bugs/Class0.080
Total Est. Bugs12.2
Comment Ratio5.8%
Avg LOC/Class29.6

SonarCloud Analysis

PR #13 - Quality Gate Failed
FAIL

Quality Gate: Failed

PR #13 · 2026-03-20-claude-code-teammain

24.8h technical debt

137 issues total

View on SonarCloud

Bugs

0

A

Reliability

Vulnerabilities

0

A

Security

Code Smells

137

A

Maintainability

Hotspots

20

To review

Lines of Code

16.4K

PHP

Duplication

5.9%

on new code

Coverage

0%

not configured

Issues by Severity

Critical
84
Major
29
Minor
24
Total137

Security Hotspots (20)

Weak Cryptography
MEDIUM12

Pseudorandom number generator usage in seeder and test files

Encrypt Data
LOW5

Data encryption review needed

Others
LOW3

Miscellaneous security considerations

Top Issue Rules

Duplicate String LiteralsS1192
55
CRITICAL
Unused Function ParametersS1172
12
MAJOR
Cognitive ComplexityS3776
8
CRITICAL
Unused Local VariablesS1481
7
MINOR
Generic ExceptionsS112
5
MAJOR
Excessive Return StatementsS1142
4
MAJOR
Field Naming ConventionS116
3
MINOR
Function Too LongS138
2
MAJOR

Highest complexity: OrderService, ShippingCalculator, and Checkout exceed the 15-point cognitive complexity threshold. 55 duplicate string literal issues are the largest single rule category. 5.9% duplication density exceeds the 3% threshold.