Multi-LLM shorthand detection & deciphering for agent systems
Project description
InsAIts - Making Multi-Agent AI Trustworthy
Monitor what your AI agents are saying to each other.
The Problem
When AI agents communicate with each other, strange things happen:
- Shorthand emergence - "Verify customer identity" becomes "Run CVP"
- Context loss - Agents suddenly switch topics mid-conversation
- Jargon creation - Made-up acronyms that mean nothing to humans
- Hallucination chains - One agent's error propagates through the system
- Anchor drift - Responses diverge from the user's original question
In AI-to-human communication, we notice. In AI-to-AI? It's invisible.
The Solution
InsAIts is a lightweight Python SDK that monitors AI-to-AI communication in real-time.
from insa_its import insAItsMonitor
monitor = insAItsMonitor()
# V2: Set anchor for context-aware detection
monitor.set_anchor("What is quantum computing?")
# Monitor any AI-to-AI message
result = monitor.send_message(
text=agent_response,
sender_id="OrderBot",
receiver_id="InventoryBot",
llm_id="gpt-4"
)
if result["anomalies"]:
# V2: Trace the root cause
for anomaly in result["anomalies"]:
trace = monitor.trace_root(anomaly)
print(trace["summary"])
3 lines of code. Full visibility.
What's New in V2
Anchor-Aware Detection (Phase 1)
Stop false positives by setting the user's query as an anchor:
# Set user's question as anchor
monitor.set_anchor("Explain quantum computing")
# Responses using "QUBIT", "QPU" won't trigger jargon alerts
# because they're relevant to the query
result = monitor.send_message("Quantum computers use qubits...", "agent1", llm_id="gpt-4o")
Forensic Chain Tracing (Phase 2)
Trace any anomaly back to its root cause:
trace = monitor.trace_root(anomaly)
print(trace["summary"])
# "Jargon 'XYZTERM' first appeared in message from agent_a (gpt-4o)
# at step 3 of 7. Propagated through 4 subsequent messages."
# ASCII visualization
print(monitor.visualize_chain(anomaly, include_text=True))
Domain Dictionaries (Phase 4)
Load domain-specific terms to reduce false positives:
# Load finance terms (EBITDA, WACC, DCF, etc.)
monitor.load_domain("finance")
# Available domains: finance, healthcare, kubernetes, machine_learning, devops, quantum
# Import/export custom dictionaries
monitor.export_dictionary("my_team_terms.json")
monitor.import_dictionary("shared_terms.json", merge=True)
# Auto-expand unknown terms with LLM
monitor.auto_expand_terms() # Requires Ollama
What It Detects
| Anomaly Type | What It Catches | Severity |
|---|---|---|
| SHORTHAND_EMERGENCE | "Process order" -> "PO now" | High |
| CONTEXT_LOSS | Marketing meeting -> Recipe discussion | High |
| CROSS_LLM_JARGON | Undefined acronyms like "QXRT" | High |
| ANCHOR_DRIFT | Response diverges from user's question | High |
| LLM_FINGERPRINT_MISMATCH | GPT-4 response that looks like GPT-3.5 | Medium |
| LOW_CONFIDENCE | Hedging: "maybe", "I think", "perhaps" | Medium |
Quick Start
Install
pip install insa-its
For local embeddings (recommended):
pip install insa-its[full]
Or from GitHub:
pip install git+https://github.com/Nomadu27/InsAIts.git
Use
from insa_its import insAItsMonitor
monitor = insAItsMonitor(session_name="my-agents")
# V2: Set anchor for smarter detection
monitor.set_anchor("Process customer refund request")
# Monitor your agent conversations
result = monitor.send_message(
text="Process the customer order for SKU-12345",
sender_id="OrderBot",
receiver_id="InventoryBot",
llm_id="gpt-4o-mini"
)
# Check for issues
if result["anomalies"]:
for anomaly in result["anomalies"]:
print(f"[{anomaly['severity']}] {anomaly['type']}")
# V2: Get forensic trace
trace = monitor.trace_root(anomaly)
print(f"Root cause: {trace['summary']}")
# Get session health
print(monitor.get_stats())
Features
Real-Time Terminal Dashboard
from insa_its.dashboard import LiveDashboard
dashboard = LiveDashboard(monitor)
dashboard.start()
# Live visualization of all agent communication
LangChain Integration
from insa_its.integrations import LangChainMonitor
monitor = LangChainMonitor()
monitored_chain = monitor.wrap_chain(your_chain, "MyAgent")
CrewAI Integration
from insa_its.integrations import CrewAIMonitor
monitor = CrewAIMonitor()
monitored_crew = monitor.wrap_crew(your_crew)
Decipher Mode
Translate AI-to-AI jargon for human review:
deciphered = monitor.decipher(message)
print(deciphered["expanded_text"]) # Human-readable version
Uses local Phi-3 via Ollama - no cloud, no data leaves your machine.
V2: Domain Dictionaries
# See available domains
print(monitor.get_available_domains())
# ['finance', 'healthcare', 'kubernetes', 'machine_learning', 'devops', 'quantum']
# Load one or more
monitor.load_domain("kubernetes")
monitor.load_domain("devops")
# Terms like K8S, HPA, CI/CD won't trigger false positives
V2: Forensic Chain Visualization
# Get ASCII visualization of anomaly chain
viz = monitor.visualize_chain(anomaly, include_text=True)
print(viz)
# Output:
# ============================================================
# FORENSIC CHAIN TRACE: CROSS_LLM_JARGON
# ============================================================
#
# [Step 1]
# agent_a -> agent_b (gpt-4o)
# Words: 15
# Text: "Let's discuss the implementation..."
# |
# v
# [Step 2]
# agent_b -> agent_a (claude-3.5)
# Words: 20
# |
# v
# [Step 3] >>> ROOT <<< ANOMALY
# agent_a -> agent_b (gpt-4o)
# Words: 8
# Text: "Use XYZPROTO for this..."
#
# ------------------------------------------------------------
# SUMMARY:
# Jargon 'XYZPROTO' first appeared in message from agent_a (gpt-4o)
# at step 3 of 3. Propagated through 0 subsequent messages.
# ============================================================
Pricing
Lifetime Deals - First 100 Users Only!
| Plan | Price | What You Get |
|---|---|---|
| LIFETIME STARTER | EUR99 one-time | 10K msgs/day forever |
| LIFETIME PRO | EUR299 one-time | Unlimited forever + priority support |
Buy Lifetime (Gumroad):
Buy Lifetime (Stripe):
Monthly Plans
| Tier | Messages/Day | Price | Best For |
|---|---|---|---|
| Free | 100 | $0 | Testing & evaluation |
| Starter | 10,000 | $49/mo | Indie devs & small teams |
| Pro | Unlimited | $79/mo | Production workloads |
Buy Monthly (Gumroad):
Free tier works without an API key! Just
pip install insa-itsand start monitoring.
Use Cases
| Industry | Problem Solved |
|---|---|
| E-Commerce | Order bots losing context mid-transaction |
| Customer Service | Support agents developing incomprehensible shorthand |
| Finance | Analysis pipelines hallucinating metrics |
| Healthcare | Critical multi-agent systems where errors matter |
| Research | Ensuring scientific integrity in AI experiments |
Demo
Try it yourself:
git clone https://github.com/Nomadu27/InsAIts.git
cd InsAIts
pip install -e .[full] rich
# Run the dashboard demo
python demo_dashboard.py
# Run marketing team simulation
python demo_marketing_team.py
Architecture
Your Multi-Agent System InsAIts V2
| |
|-- user query --------------> |-- set_anchor() [NEW]
| |
|-- message -----------------> |
| |-- Anchor similarity check [NEW]
| |-- Semantic embedding (local)
| |-- Pattern analysis
| |-- Anomaly detection
| |
|<-- anomalies, health --------|
| |
|-- trace_root() ------------> |-- Forensic chain [NEW]
|<-- summary, visualization ---|
Privacy First:
- Local embeddings (nothing leaves your machine)
- No raw messages stored in cloud
- API keys hashed before storage
- GDPR-ready
Documentation
| Resource | Link |
|---|---|
| Installation Guide | installation_guide.md |
| API Reference | insaitsapi-production.up.railway.app/docs |
| Privacy Policy | PRIVACY_POLICY.md |
| Terms of Service | TERMS_OF_SERVICE.md |
Support
- Email: info@yuyai.pro
- GitHub Issues: Report a bug
- API Status: insaitsapi-production.up.railway.app
License
Proprietary Software - All rights reserved.
Free tier available for evaluation. Commercial use requires a paid license. See LICENSE for details.
InsAIts V2 - Making AI Collaboration Trustworthy
Now with Anchor-Aware Detection, Forensic Chain Tracing, and Domain Dictionaries.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file insa_its-2.0.0.tar.gz.
File metadata
- Download URL: insa_its-2.0.0.tar.gz
- Upload date:
- Size: 60.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3282681ef16b5bb2eb666ea74af2a43e60d6ddf493b9b8da480c3f0b98efda7
|
|
| MD5 |
428c550845c0bdfd38688d274bf7ac4e
|
|
| BLAKE2b-256 |
312e7a1c0b30dc11e4530badbfb3d65871fbaab5a7c2b923de57705454440dff
|
File details
Details for the file insa_its-2.0.0-py3-none-any.whl.
File metadata
- Download URL: insa_its-2.0.0-py3-none-any.whl
- Upload date:
- Size: 63.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11ac79232b5f3faacc17ff74d9d24d1e544dd53bde7d72ff7c3c65f881e0bc0c
|
|
| MD5 |
3219488f88bee28d31f9d3191c4205ef
|
|
| BLAKE2b-256 |
c5f35302a6d27ae82d6969b33956bd64af52ce2271d126a698746d34a73b8975
|