find-CNetworkSystem_RemoveNetChannel-14197
Skill67 starsChanged 58 days agoMITView on GitHub
Recover CNetworkSystem_RemoveNetChannel in CS2 networksystem.dll / libnetworksystem.so when the deterministic channel-removal pair proof fails. Identify the close helper, channel removal body, and address-based sibling from current call and receiver data flow. Trigger: CNetworkSystem_RemoveNetChannel
In this repository91 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- cleanup-workspaceSkill
- convert-finder-skill-to-preprocessor-scriptsSkill
- create-agent-skill-fallbackSkill
- create-cpp-testsSkill
- create-preprocessor-scriptsSkill
- create-prSkill
- dump-vtablesSkill
- find-CBaseEntity_GetChangeAccessorPathInfo_1Skill
- find-CCSBotManager_AddBot_BotNavIgnoreSkill
- find-CCSGameRules__sm_mapGcBanInformationSkill
- find-CCSPlayer_MovementServices_CheckJumpButton_WaterPatchSkill
- find-CCSPlayer_MovementServices_FullWalkMove_SpeedClampSkill
- find-CEngineClient_DumpNetStatsSkill
- find-CEngineClient_FindOrCreateWorldSessionSkill
- find-CEngineClient_GetStatsAppIDSkill
- find-CEngineClient_IsPlayingDemoSkill
- find-CEngineServer_GetAchievementMgrSkill
- find-CEngineServer_GetFrameTimeAmnesty-inlinedSkill
- find-CEngineServer_IsDedicatedServerSkill
- find-CEngineServer_IsLogEnabledSkill
- find-CEngineServer_KickClientSkill
- find-CEngineServer_ServerCommandSkill
- find-CEngineServer_SynchronizeAndBlockUntilLoadedSkill
- find-CEngineServiceMgr_GetAddonCountSkill
- find-CEngineServiceMgr_GetEngineWindowSkill
- find-CEngineServiceMgr_GetEventDispatcherSkill
- find-CEngineServiceMgr_RegisterPrerequisiteSkill
- find-CEntitySystem_Init-decompilesSkill
- find-CEntitySystem_m_EntityList-AND-CEntityIdentity_m_pInstance-AND-CEntityIdentity_m_EHandleSkill
- find-CEntitySystem_m_entityNamesSkill
- find-CGlobalVarsBase_realtime-AND-CGlobalVarsBase_curtimeSkill
- find-CLoopTypeClientServer_RefreshNetworkGameState_AcquireSkill
- find-CLoopTypeClientServer_RefreshNetworkGameState-decompilesSkill
- find-CLoopTypeClientServer_RefreshNetworkGameStateSkill
- find-CNetChan_CanPacketSkill
- find-CNetChan_ProcessMessagesSkill
- find-CNetChan_SendMessages-inlinedSkill
- find-CNetChan_UpdateMessageStatsSkill
- find-CNetworkClientService_m_pGameClientSkill
- find-CNetworkGameServerBase_CheckTimeouts-decompilesSkill
- find-CNetworkGameServerBase_CreateFakeClientSkill
- find-CNetworkGameServerBase_GetChallengeTypeSkill
- find-CNetworkGameServerBase_ReplyChallenge-decompilesSkill
- find-CNetworkGameServerBase_ServiceQueueSkill
- find-CNetworkGameServer_GetFreeClientSkill
- find-CNetworkMessages_dtorSkill
- find-CNetworkMessages_FindOrCreateNetMessage-14197Skill
- find-CNetworkMessages_GetIsForServerSkill
- find-CNetworkMessages_LookupNetworkSerializationContextDataIdSkill
- find-CNetworkMessages_UnserializeMessageInternalSkill
- find-CNetworkMessages_vtable-decompilesSkill
- find-CNetworkStringTableContainer_RemoveAllTablesSkill
- find-CNetworkSystem_RemoveNetChannelByAddress-14197Skill
- find-CServerSideClientBase_GetUserIDStringSkill
- find-CSource2Server_Shutdown-decompilesSkill
- find-CSteam3ServerS1_InitGameServer-decompilesSkill
- find-GetCSWeaponDataFromKey-inlinedSkill
- find-INetworkGameServer_GetGameServerSteamIDSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Read the platform-relevant source-owned artifacts for reference identities and signature styles:
- Very specific: line 44
Use the analyzer-provided artifact module directory (CS2VIBE_ARTIFACT_DIR).
- Very specific: line 63
Do not confuse the public CloseSocket virtual entry with the shared helper or select a function solely because it references the literal.
- Very specific: line 83
If decompiler argument counts, inferred local types, casts, or PLT names obscure the proof, inspect the disassembly, register assignments, …
- Very specific: line 93
Use /generate-signature-for-function with addr=<proven removal body> to generate and validate a unique current func_sig.
- Very specific: line 104
Write only CNetworkSystem_RemoveNetChannel.windows.yaml or CNetworkSystem_RemoveNetChannel.linux.yaml in the active artifact module …
- Distinctive: line 111
If dependencies are missing, the pair cannot be proven, or a unique signature cannot be generated, stop and report the exact unresolved …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Find CNetworkSystem_RemoveNetChannel
Recover the concrete virtual function on the active platform using IDA Pro MCP.
The preprocessor is ida_preprocessor_scripts/find-CNetworkSystem_RemoveNetChannel-14197.py;
this fallback must independently inspect the binary when its ctree proof fails.
Realworld Function References
Read the platform-relevant source-owned artifacts for reference identities and signature styles:
bin_artifacts/14197/networksystem/CNetworkSystem_RemoveNetChannel.windows.yamlbin_artifacts/14197/networksystem/CNetworkSystem_RemoveNetChannel.linux.yamlbin_artifacts/14197/networksystem/CNetworkSystem_RemoveNetChannelByAddress.windows.yamlbin_artifacts/14197/networksystem/CNetworkSystem_RemoveNetChannelByAddress.linux.yaml
These contain reference-build addresses and slots, not current discovery results. Verify the
current vtable and function semantics before using any candidate. The old Linux shutdown
literal is absent in build 14197 and cannot identify the target.
Output inventory
| Output | Kind | Windows 14197 reference | Linux 14197 reference |
CNetworkSystem_RemoveNetChannel | Concrete vtable function | 0x1800fda80, index 23 | 0x2edc90, index 23 |
This output is required on both platforms. Its reference offset is 0xb8; derive the actual
index and offset from the current CNetworkSystem table. Only write this skill's one output.
Required YAML fields: func_name, func_va, func_rva, func_size, func_sig,
vtable_name, vfunc_offset, vfunc_index.
Step 0. Check the active artifact directory and session
Use the analyzer-provided artifact module directory (CS2VIBE_ARTIFACT_DIR). Do not infer it
from the binary path. If CNetworkSystem_RemoveNetChannel.<platform>.yaml already exists
there and parses to a non-empty mapping, skip it. Do not copy the tracked reference artifact
to satisfy an output.
Resolve the current networksystem.dll / libnetworksystem.so session with idb_list /
idb_open. Verify the input path and platform before querying it; pass its database/session
identifier to subsequent tools. Use /get-vtable-from-yaml with class_name=CNetworkSystem
to load CNetworkSystem_vtable.<platform>.yaml from the active artifact directory. If the
required table is missing or invalid, stop and report the dependency.
Step 1. Identify the shared close helper
Find the exact string CloseSocket and enumerate its code references. Decompile its owning
functions and inspect direct calls carrying that literal as the fourth of five arguments.
The first argument must be the caller's this. Follow thunks if necessary, and deduplicate
repeated calls to the same callee. In build 14197 the shared helper was 0x1800fd040 on
Windows and 0x2e9140 on Linux; these are starting references only.
Do not confuse the public CloseSocket virtual entry with the shared helper or select a
function solely because it references the literal. If several helpers remain semantically
plausible, report the ambiguity instead of choosing one by address order.
Step 2. Prove channel removal and its address-based caller
Intersect the close helper's current code callers with the current vtable entries. Inspect each candidate and its immediately following entry. Prove all of the following:
- The removal body receives
(this, channel, flag), checks the channel, synchronizes its state, closes its underlying connection via the shared helper when needed, and removes that channel from a collection onthis. It may notify listeners and destroy the channel. - The next vtable entry implements address-based removal. It receives
(this, socket, address), locates a channel for that socket/address, and invokes the candidate with the samethis, the located channel, and a constant false flag. - Trace the channel value through local aliases. Linux may use a separate
(this, socket, address*)lookup with a local address buffer; Windows may inline a search through a collection field also used by the removal body. Follow callees when a search or close operation moves across an inline boundary.
If decompiler argument counts, inferred local types, casts, or PLT names obscure the proof,
inspect the disassembly, register assignments, stack addresses, and direct call targets.
Generic sub_* names are not evidence that a function is absent. Do not simply invoke the
same failing _probe_channel_calls again and treat that as independent verification.
Reject a different receiver, a channel unrelated to the lookup, a nonzero flag, or ambiguous function pairs. The adjacency is corroborating evidence and is insufficient on its own.
Step 3. Generate the signature and write YAML
Use /generate-signature-for-function with addr=<proven removal body> to generate and
validate a unique current func_sig. Then use /write-vfunc-as-yaml with:
artifact_nameandfunc_name:CNetworkSystem_RemoveNetChannelfunc_addr: the proven removal function entryfunc_sig: the validated current signaturevtable_name:CNetworkSystemvfunc_index: the proven current table indexvfunc_offset:vfunc_index * 8vfunc_sig:None
Write only CNetworkSystem_RemoveNetChannel.windows.yaml or
CNetworkSystem_RemoveNetChannel.linux.yaml in the active artifact module directory. Verify
that it parses as a non-empty mapping and its address matches the selected vtable entry.
The analyzer owns canonical field ordering and finalization.
Failure handling
If dependencies are missing, the pair cannot be proven, or a unique signature cannot be generated, stop and report the exact unresolved condition and inspected candidates. Never substitute a fixed reference slot, old signature, or a guessed address to make the task pass.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

