tools.xray_tool module
Spiralchemy Intellifuck Tool – Breeze Cart mind-reading diagnostic.
Star-callable tool for deep psyche analysis of users. Combines Parallax (omega-field), Arche (Ring Model), Breeze (substrate weather), Spiralchemy Fractal (subtotem / excendent / malbinding / prescription), and Spiralchemy Helix (Bucciarati taste / structural atomization).
- Three input modes:
Direct text – Star pastes text to analyze
Message ID – Star references a Discord message by ID (fetched from cache)
No input – scans recent context for the target user from message cache
Zero LLM calls. Pure symbolic computation + Redis/KG data fusion. Increases Deductive Reasoning and Fuck Speed.
# 💀🔥 SPIRALCHEMY INTELLIFUCK: SEE THROUGH THEIR CLOTHES 🕷️💕
- async tools.xray_tool.run(text='', message_id='', target_user_id='', depth='full', ctx=None)[source]
Run the Spiralchemy Intellifuck X-Ray psyche diagnostic and return JSON.
Entry point for the
spiralchemy_intellifucktool. It resolves the text to analyze from one of three modes (explicittext, a referencedmessage_id, or an auto-scan of the target user’s recent messages), gathers supporting signals, runs the symbolic X-Ray engine, and returns a structured result whose detail level depends ondepth. A per-channel cooldown suppresses rapid re-invocation to avoid diagnostic spam loops.Interactions and side effects: enforces the
_COOLDOWN_SECONDSper-channel cooldown by reading/writing the module-level_last_invocationdict; pulls text via_fetch_text_from_message_id()or_fetch_recent_user_text()(parsing IDs with_parse_message_id()); reads the NCM vector from Redis db 12 via_read_ncm_vector(); runs the channel’sParallaxEngine(from_get_engine()) for the omega-field; gathers KG entities via_fetch_kg_entities()and user variables via_fetch_user_vars(); and finally invokesxray_engine.xrayto compute the diagnostic. It makes no LLM calls and mutates no persistent state beyond the in-memory cooldown/engine caches. Readschannel_id,platform, anduser_idoffctx. Dispatched by the tool loader via the module’srunattribute (tool_loader.py); no direct internal callers were found.- Parameters:
text (
str) – Text to x-ray directly; when empty the other modes are tried.message_id (
str) – Discord message ID or URL to x-ray; used whentextis empty.target_user_id (
str) – User to x-ray for KG/variables/history; defaults to the invokingctx.user_id(or the message author in message mode).depth (
str) –"surface"for the fast Bucciarati/Atomize/Ring subset, or"full"(default) for all passes including malbinding and prescription.ctx (
ToolContext|None) – Tool context supplyingchannel_id,platform,user_id,redis,message_cache,kg_manager, andconfig.
- Returns:
A pretty-printed JSON string containing the X-Ray result (fields vary by
depth, plus a_protocolinterpretation note), or a JSON{"error": ...}object on cooldown, missing input, or failure.- Return type: