retentioneering/retentioneering-tools

Python toolkit, MCP server, and agent skills for reproducible, auditable clickstream and event log analytics. Helps AI agents, data scientists and analysts build, validate, and cross-check product analytics, quantitative UX, customer journeys, graph-based user flows, behavioral segmentation, A/B tests, process mining models, Markov chain simulation

What it solves

Retentioneering helps you understand sequences of actions, such as user journeys, agent runs, or support conversations. It identifies where processes stall, loop, or branch, allowing you to compare different groups of paths to see why metrics change or why certain outcomes occur.

How it works

You provide event-level data (a user/session ID, an event name, and a timestamp) in a standard format like a CSV or database export. The library processes these into "eventstreams," which you can then filter, segment, or cluster. You can visualize these sequences using interactive widgets like transition graphs, funnels, and Sankey diagrams, or extract the raw data for custom reporting.

Who it’s for

It is designed for data analysts and developers working in Jupyter environments (like JupyterLab, VS Code, or Google Colab) who need to investigate behavioral patterns or process flows using Python.

Highlights

  • Interactive widgets for visualizing paths, including transition graphs, funnels, and step matrices.
  • Built-in support for "diff mode" to compare two groups of users or processes side-by-side.
  • Flexible clustering tools to group similar behaviors and save them as segments for deeper analysis.
  • Headless mode for every widget, allowing you to export the underlying data for custom charts and reports.
  • Works with any sequential data, including agent tool calls, support ticket lifecycles, or website clickstreams.

Related

  • Project
  • Project
  • Project
  • Project
  • Project