Skip to main content

A five-level maturity model for AI-human collaboration with anticipatory empathy

Project description

Empathy

AI that predicts problems before they happen.

PyPI Tests Coverage License Python GitHub stars

Most AI tools are reactive - they wait for you to ask, then respond. Empathy is anticipatory - it predicts what you'll need and warns you before problems happen.

pip install empathy-framework

What It Does

  • 🔮 Predicts issues 30-90 days ahead - Security vulnerabilities, performance bottlenecks, compliance gaps
  • 🧠 Learns patterns across domains - Healthcare handoff protocols → deployment safety checks
  • 🔌 Works with any LLM - Claude, GPT-4, Gemini, local models via Ollama
  • 🏥 Enterprise-ready - PII scrubbing, audit logging, HIPAA/GDPR compliant
  • 📦 2,000+ downloads on PyPI, 2,040+ tests passing

Quick Example

from empathy_os import EmpathyOS

os = EmpathyOS()

# Analyze code for current AND future issues
result = await os.collaborate(
    "Review this deployment pipeline for problems",
    context={"code": pipeline_code, "team_size": 10}
)

# Get predictions, not just analysis
print(result.current_issues)      # What's wrong now
print(result.predicted_issues)    # What will break in 30-90 days
print(result.prevention_steps)    # How to prevent it

The 5 Levels of AI Empathy

Level Name Behavior Example
1 Reactive Responds when asked "Here's the data you requested"
2 Guided Asks clarifying questions "What format do you need?"
3 Proactive Notices patterns "I pre-fetched what you usually need"
4 Anticipatory Predicts future needs "This query will timeout at 10k users"
5 Transformative Builds preventing structures "Here's a framework for all future cases"

Empathy operates at Level 4 - predicting problems before they manifest.

Why Empathy?

Empathy SonarQube GitHub Copilot
Predicts future issues ✅ 30-90 days ahead
Cross-domain learning ✅ Healthcare → Software
Source available ✅ Fair Source 0.9
Free for small teams ✅ ≤5 employees
Local/air-gapped ✅ Ollama support

Get Involved

Star this repo if you find it useful

💬 Join Discussions - Questions, ideas, show what you built

📖 Read the Book - Deep dive into the philosophy and implementation

📚 Full Documentation - API reference, examples, guides

Install Options

# Basic
pip install empathy-framework

# With all features (recommended)
pip install empathy-framework[full]

# Development
git clone https://github.com/Smart-AI-Memory/empathy.git
cd empathy && pip install -e .[dev]

What's Included

  • 30+ Wizards - Security, performance, testing, accessibility, compliance
  • Healthcare Suite - SBAR, SOAP notes, clinical protocols (HIPAA compliant)
  • IDE Plugins - VS Code and JetBrains extensions (examples/)
  • Enterprise Security - PII scrubbing, secrets detection, audit logging
  • Memory Control Panel - CLI and API for managing Redis + pattern storage

Memory Control Panel

Manage AI memory with a simple CLI:

# Start everything (Redis + API server)
empathy-memory serve

# Check system status
empathy-memory status

# View statistics
empathy-memory stats

# Run health check
empathy-memory health

# List stored patterns
empathy-memory patterns

The API server runs at http://localhost:8765 with endpoints for status, stats, patterns, and Redis control.

VS Code Extension: A visual panel for monitoring memory is available in vscode-memory-panel/.

License

Fair Source License 0.9 - Free for students, educators, and teams ≤5 employees. Commercial license ($99/dev/year) for larger organizations. Details →


Built by Smart AI Memory · Documentation · Examples · Issues

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

empathy_framework-2.1.1.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

empathy_framework-2.1.1-py3-none-any.whl (247.5 kB view details)

Uploaded Python 3

File details

Details for the file empathy_framework-2.1.1.tar.gz.

File metadata

  • Download URL: empathy_framework-2.1.1.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for empathy_framework-2.1.1.tar.gz
Algorithm Hash digest
SHA256 238c86cedd89f3e5229b8e03152d9410d949a316cda9faae426adf849f6872a8
MD5 39d49e6a011e725f52faf271c590ec24
BLAKE2b-256 6958969e2128618700c1a7faa37b52a2a54f697334c9b1b3f00b94875e6acd4b

See more details on using hashes here.

File details

Details for the file empathy_framework-2.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for empathy_framework-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d1fa6bcbfbc91f472936ccfc73e864298ac5634311d42ddffdc268225134b4b
MD5 aa1be2cbcb97add56c6077773b03e4d0
BLAKE2b-256 80740667f21aa1d9f858e295f5a1553967e2265bcb137e8509d8959d0f48a8d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page