Repository Analysis

NapNeko/NapCatQQ

Modern protocol-side framework based on NTQQ

5.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of NapNeko/NapCatQQ, a TypeScript project with 9,840 GitHub stars. SynthScan v2.0 examined 119,673 lines of code across 894 source files, recording 114 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 5.5 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

5.5
Adjusted Score
5.5
Raw Score
100%
Time Factor
2026-07-08
Last Push
9.8K
Stars
TypeScript
Language
119.7K
Lines of Code
894
Files
114
Pattern Hits
2026-07-14
Scan Date
0.06
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 51HIGH 0MEDIUM 25LOW 38

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 114 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hallucination Indicators51 hits · 520 pts
SeverityFileLineSnippetContext
CRITICAL…ckages/napcat-onebot/action/extends/GetAiCharacters.ts43 const rawList = await this.core.apis.PacketApi.pkt.operation.FetchAiVoiceList(+payload.group_id, chatTypeNum);CODE
CRITICAL…ckages/napcat-onebot/action/extends/RenameGroupFile.ts42 await this.core.apis.PacketApi.pkt.operation.RenameGroupFile(+payload.group_id, contextMsgFile.fileUUID, payload.cCODE
CRITICALpackages/napcat-onebot/action/extends/MoveGroupFile.ts42 await this.core.apis.PacketApi.pkt.operation.MoveGroupFile(+payload.group_id, contextMsgFile.fileUUID, payload.curCODE
CRITICALpackages/napcat-onebot/action/extends/SendPacket.ts35 const data = await this.core.apis.PacketApi.pkt.operation.sendPacket({ cmd: payload.cmd, data: packetData }, rsp);CODE
CRITICALpackages/napcat-onebot/action/extends/GetRkey.ts24 return await this.core.apis.PacketApi.pkt.operation.FetchRkey();CODE
CRITICALpackages/napcat-onebot/action/extends/GetUserStatus.ts34 const res = await this.core.apis.PacketApi.pkt.operation.GetStrangerStatus(+payload.user_id);CODE
CRITICAL…ckages/napcat-onebot/action/extends/SetSpecialTitle.ts32 await this.core.apis.PacketApi.pkt.operation.SetGroupSpecialTitle(+payload.group_id, uid, payload.special_title);CODE
CRITICALpackages/napcat-onebot/action/extends/SetGroupSign.ts27 return await this.core.apis.PacketApi.pkt.operation.GroupSign(+payload.group_id);CODE
CRITICALpackages/napcat-onebot/action/extends/GetMiniAppArk.ts97 const arkData = await this.core.apis.PacketApi.pkt.operation.GetMiniAppAdaptShareInfo(reqParam);CODE
CRITICAL…t-onebot/action/extends/GetUnidirectionalFriendList.ts55 const rsp_data = await this.core.apis.PacketApi.pkt.operation.sendPacket(rsq, true);CODE
CRITICALpackages/napcat-onebot/action/msg/SendMsg.ts261 const transformedMsg = this.core.apis.PacketApi.pkt.msgConverter.rawMsgWithSendMsgToPacketMsg(packetMsgElements)CODE
CRITICALpackages/napcat-onebot/action/msg/SendMsg.ts276 const transformedMsg = this.core.apis.PacketApi.pkt.msgConverter.rawMsgToPacketMsg(msg, msgPeer);CODE
CRITICALpackages/napcat-onebot/action/msg/SendMsg.ts295 const rawActions = await this.core.apis.PacketApi.pkt.operation.FetchForwardMsgRaw(resId);CODE
CRITICALpackages/napcat-onebot/action/msg/SendMsg.ts330 const resid = await this.core.apis.PacketApi.pkt.operation.UploadForwardMsgV2(uploadMsgData, msgPeer.chatType === ChCODE
CRITICALpackages/napcat-onebot/action/file/GetGroupFileUrl.ts35 url: await this.core.apis.PacketApi.pkt.operation.GetGroupFileUrl(+payload.group_id, contextMsgFile.fileUUID),CODE
CRITICALpackages/napcat-onebot/action/file/GetPrivateFileUrl.ts39 url: await this.core.apis.PacketApi.pkt.operation.GetPrivateFileUrl(self_id, contextMsgFile.fileUUID, file_hasCODE
CRITICAL…ckages/napcat-onebot/action/group/SendGroupAiRecord.ts36 await this.core.apis.PacketApi.pkt.operation.GetAiVoice(+payload.group_id, payload.character, payload.text, AIVoiceCCODE
CRITICALpackages/napcat-onebot/action/group/GetAiRecord.ts34 const rawRsp = await this.core.apis.PacketApi.pkt.operation.GetAiVoice(+payload.group_id, payload.character, payloadCODE
CRITICALpackages/napcat-onebot/action/group/GetAiRecord.ts38 return await this.core.apis.PacketApi.pkt.operation.GetGroupPttUrl(+payload.group_id, rawRsp.msgInfoBody[0].index);CODE
CRITICALpackages/napcat-onebot/action/group/DelEssenceMsg.ts48 const data = this.core.apis.GroupApi.essenceLRU.getValue(+payload.message_id);CODE
CRITICAL…kages/napcat-onebot/action/group/SetGroupAddRequest.ts36 const invite_notify = this.obContext.apis.MsgApi.notifyGroupInvite.get(flag);CODE
CRITICAL…kages/napcat-onebot/action/group/GetGroupMemberInfo.ts42 const groupMemberCache = this.core.apis.GroupApi.groupMemberCache.get(payload.group_id.toString());CODE
CRITICALpackages/napcat-onebot/action/group/GetGroupEssence.ts100 this.core.apis.GroupApi.essenceLRU.set(shortId, msgTempData);CODE
CRITICALpackages/napcat-onebot/action/packet/SendPoke.ts33 await this.core.apis.PacketApi.pkt.operation.SendPoke(is_group, +peer_id, +target_id);CODE
CRITICALpackages/napcat-onebot/action/packet/GetRkeyServer.ts40 const rkeys = await this.core.apis.PacketApi.pkt.operation.FetchRkey();CODE
CRITICALpackages/napcat-onebot/action/packet/SetGroupTodo.ts12 await this.core.apis.PacketApi.pkt.operation.SetGroupTodo(groupId, msgSeq);CODE
CRITICAL…kages/napcat-onebot/action/packet/CompleteGroupTodo.ts13 await this.core.apis.PacketApi.pkt.operation.CompleteGroupTodo(groupId, msgSeq);CODE
CRITICALpackages/napcat-onebot/action/packet/CancelGroupTodo.ts13 await this.core.apis.PacketApi.pkt.operation.CancelGroupTodo(groupId, msgSeq);CODE
CRITICALpackages/napcat-onebot/action/packet/GetRkeyEx.ts31 const rkeys = await this.core.apis.PacketApi.pkt.operation.FetchRkey();CODE
CRITICALpackages/napcat-onebot/api/msg.ts186 return await this.core.apis.PacketApi.pkt.operation.FetchRkey().then(() => true).catch(() => false);CODE
CRITICALpackages/napcat-onebot/api/msg.ts392 ? await this.core.apis.PacketApi.pkt.operation.FetchGroupMessage(+msg.peerUin, msgSeq, msgSeq)CODE
CRITICALpackages/napcat-onebot/api/msg.ts393 : await this.core.apis.PacketApi.pkt.operation.FetchC2CMessage(msg.peerUid, msgSeq, msgSeq);CODE
CRITICALpackages/napcat-onebot/api/msg.ts464 return await this.core.apis.PacketApi.pkt.operation.FetchRkey().then(() => true).catch(() => false);CODE
CRITICALpackages/napcat-onebot/api/msg.ts507 return await this.core.apis.PacketApi.pkt.operation.FetchRkey().then(() => true).catch(() => false);CODE
CRITICALpackages/napcat-onebot/api/msg.ts553 multiMsgs = await this.core.apis.PacketApi.pkt.operation.FetchForwardMsg(element.resId);CODE
CRITICALpackages/napcat-onebot/api/msg.ts1368 const groupRole = this.core.apis.GroupApi.groupMemberCache.get(groupUin)?.get(this.core.selfInfo.uid.toString())?.roCODE
CRITICALpackages/napcat-onebot/api/msg.ts1450 this.core.apis.GroupApi.groupMemberCache.delete(groupChange.groupUin.toString());CODE
CRITICALpackages/napcat-onebot/api/msg.ts1625 // console.log(this.core.apis.GroupApi.groupMemberCache.get(group)?.get(uid)?.memberSpecialTitle, new_title)COMMENT
CRITICALpackages/napcat-onebot/api/msg.ts1626 // if (this.core.apis.GroupApi.groupMemberCache.get(group)?.get(uid)?.memberSpecialTitle == new_title) {COMMENT
CRITICALpackages/napcat-onebot/api/quick-action.ts94 const invite_notify = this.obContext.apis.MsgApi.notifyGroupInvite.get(request.flag);CODE
CRITICALpackages/napcat-onebot/api/group.ts142 this.obContext.core.context.packetHandler.onCmd('trpc.msg.olpush.OlPushService.MsgPush', async (packet) => {CODE
CRITICALpackages/napcat-onebot/api/group.ts355 const old_members = structuredClone(this.core.apis.GroupApi.groupMemberCache.get(msg.peerUid));CODE
CRITICALpackages/napcat-core/apis/file.ts45 const ret = await this.core.apis.PacketApi.pkt.operation.FetchRkey();CODE
CRITICALpackages/napcat-core/apis/file.ts59 return this.core.apis.PacketApi.pkt.operation.GetGroupFileUrl(+peer, fileUUID, timeout);CODE
CRITICALpackages/napcat-core/apis/file.ts61 return this.core.apis.PacketApi.pkt.operation.GetPrivateFileUrl(peer, fileUUID, file10MMd5, timeout);CODE
CRITICALpackages/napcat-core/apis/file.ts75 return this.core.apis.PacketApi.pkt.operation.GetGroupPttUrl(+peer, {CODE
CRITICALpackages/napcat-core/apis/file.ts83 return this.core.apis.PacketApi.pkt.operation.GetPttUrl(peer, {CODE
CRITICALpackages/napcat-core/apis/file.ts103 return this.core.apis.PacketApi.pkt.operation.GetGroupVideoUrl(+peer, {CODE
CRITICALpackages/napcat-core/apis/file.ts111 return this.core.apis.PacketApi.pkt.operation.GetVideoUrl(peer, {CODE
CRITICALpackages/napcat-test/rpc.test.ts847 expect(await client.level1.level2.level3.level4.level5.getValue()).toBe('deep-value');CODE
CRITICALpackages/napcat-test/rpc.test.ts848 expect(await client.level1.level2.level3.level4.level5.getAsyncValue()).toBe('async-deep-value');CODE
Decorative Section Separators25 hits · 104 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/build-pr.yml1# =============================================================================COMMENT
MEDIUM.github/workflows/build-pr.yml3# =============================================================================COMMENT
MEDIUM.github/workflows/build-pr.yml10# =============================================================================COMMENT
MEDIUM.github/workflows/build-pr.yml48 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/build-pr.yml50 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/build-pr.yml142 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/build-pr.yml144 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/build-pr.yml283 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/build-pr.yml285 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml108 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml110 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml115 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml117 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml122 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml124 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml128 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml130 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml133 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml135 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml141 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml143 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml148 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml150 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml155 # -----------------------------COMMENT
MEDIUM.github/workflows/release-publish.yml157 # -----------------------------COMMENT
Over-Commented Block19 hits · 19 pts
SeverityFileLineSnippetContext
LOWpackages/napcat-webui-backend/src/router/Plugin.ts41// }COMMENT
LOWpackages/napcat-webui-backend/src/router/QQLogin.ts81// 平台信息 & Linux GUID 管理COMMENT
LOWpackages/napcat-onebot/action/stream/Readme.txt1# Stream-ApiCOMMENT
LOWpackages/napcat-onebot/api/msg.ts881 return undefined;COMMENT
LOWpackages/napcat-onebot/api/msg.ts1281 guildId: '',COMMENT
LOWpackages/napcat-onebot/api/msg.ts1601 return new OB11OnlineFileSendEvent(COMMENT
LOWpackages/napcat-onebot/api/msg.ts1621 // if (parsedParts[1] && parsedParts[3]) {COMMENT
LOWpackages/napcat-onebot/api/group.ts381 // if (grayTipElement.xmlElement.busiId === '10145') {COMMENT
LOWpackages/napcat-core/adapters/NodeIDependsAdapter.ts21 // pbBuffer: Uint8Array,COMMENT
LOWpackages/napcat-core/services/NodeIKernelMSFService.ts21 getNetworkProxy (): Promise<{COMMENT
LOW…es/napcat-core/services/NodeIKernelRichMediaService.ts61 // KUNKNOW,COMMENT
LOW…napcat-core/services/NodeIKernelStorageCleanService.ts1import { NodeIKernelStorageCleanListener } from '@/napcat-core/listeners';COMMENT
LOWpackages/napcat-test/Readme.md1# NapCat-TestCOMMENT
LOWpackages/napcat-framework/napcat.ts161 // 过早进入会导致addKernelMsgListener等Listener添加失败COMMENT
LOWpackages/napcat-framework/napcat.ts181 // if (result) {COMMENT
LOW…s/napcat-webui-frontend/src/pages/dashboard/plugin.tsx101COMMENT
LOW…s/napcat-webui-frontend/src/pages/dashboard/plugin.tsx121 // confirmText: '注册插件管理器',COMMENT
LOW…s/napcat-webui-frontend/src/pages/dashboard/plugin.tsx141 // const file = e.target.files?.[0];COMMENT
LOWpackages/napcat-shell/base.ts781 // const dbApi = this.core.apis.DatabaseApi;COMMENT
Hyper-Verbose Identifiers17 hits · 17 pts
SeverityFileLineSnippetContext
LOWpackages/napcat-core/data/album.ts132export function createAlbumCommentRequest (CODE
LOWpackages/napcat-core/helper/ffmpeg/download-ffmpeg.ts314export async function downloadFFmpegIfNotExists (log: LogWrapper) {CODE
LOWpackages/napcat-image-size/src/index.ts167export function detectImageTypeFromBuffer (buffer: Buffer): ImageType {CODE
LOWpackages/napcat-image-size/src/index.ts213export async function imageSizeFromBufferFallBack (CODE
LOWpackages/napcat-rpc/src/transport.ts154export function createMessageServerHandler (target: unknown, options: {CODE
LOWpackages/napcat-schema/index.ts114function isMeaninglessSuccessExampleData (value: unknown): boolean {CODE
LOWpackages/napcat-schema/index.ts118function resolveCommonErrorExampleKey (error: { code: number, description: string; }): string | null {CODE
LOWpackages/napcat-schema/index.ts150function collapseSingleValueEnumCombinator (items: unknown[]): Record<string, unknown> | null {CODE
LOWpackages/napcat-schema/index.ts336function registerSchemasFromModule (CODE
LOWpackages/napcat-schema/index.ts378function replaceComponentInlineSchemasWithRefs (openapi: JsonObject) {CODE
LOWpackages/napcat-schema/index.ts429function replacePathInlineSchemasWithRefs (openapi: JsonObject) {CODE
LOWpackages/napcat-common/src/helper.ts97export function getDefaultQQVersionConfigInfo (): QQVersionConfigType {CODE
LOWpackages/napcat-common/src/mirror.ts999async function getArtifactsFromNightlyLink (CODE
LOWpackages/napcat-framework/napcat.ts205function registerWebUiLoginCallbacks (CODE
LOWpackages/napcat-webui-frontend/src/utils/typebox.ts150export function generateDefaultFromTypeBox (CODE
LOW.github/scripts/lib/comment.ts286export function generateDockerBuildingComment (prNumber: string, prSha: string): string {CODE
LOW.github/scripts/lib/comment.ts325export function generateDockerResultComment (CODE
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…ages/napcat-onebot/action/stream/test_upload_stream.py185 except Exception as e:CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…ages/napcat-onebot/action/stream/test_upload_stream.py12CODE