Skip to content

AkhileshSM/clm-system

Repository files navigation

Cognitive Load Management (CLM) System

Overview

The CLM system is an enterprise-grade observability platform for monitoring engineering cognitive load. It transforms raw workload data into a "saturation score," allowing leadership to detect burnout risks and optimize resource distribution.

Core Philosophy

Organizations monitor infrastructure CPU and memory utilization with precision, but rarely monitor human cognitive utilization — despite it being equally critical to delivery quality, operational stability, and employee retention.

Quick Start

1. Clone and Navigate

cd clm-system

2. Environment Setup

Copy the example .env file and configure your provider:

DATA_PROVIDER=mock

# For local LLM (requires Ollama)
LLM_PROVIDER=ollama
OLLAMA_MODEL=llama3

# For Cloud LLM
LLM_PROVIDER=openai
OPENAI_API_KEY=sk-...

To read real sprint data from a Jira MCP server, switch the data provider:

DATA_PROVIDER=jira_mcp
JIRA_MCP_URL=http://localhost:3001/mcp
JIRA_MCP_SPRINT_TOOL=jira_get_current_sprint
JIRA_MCP_ENGINEER_TOOL=jira_get_engineer_workload

See docs/jira-mcp-integration.md for the expected MCP tool contract.

3. Launch

To start the system with only the backend and frontend:

docker-compose up

To start with the local AI (Ollama) container:

docker-compose --profile ai up

Tests

Run backend tests:

python3 -m pytest

Run backend tests with coverage:

python3 -m pytest --cov=app --cov-report=term-missing --cov-fail-under=70

Build the frontend:

cd frontend
npm run build

Key Features

  • Real-time Saturation Scoring: Weighted metrics for tickets, incidents, and ownership.
  • AI-Powered Redistribution: Automatic suggestions to balance load across the team.
  • Human Observability Dashboard: High-contrast "DevOps" style UI for rapid risk detection.
  • Incident Simulation: Trigger fake spikes to see the system react in real-time.

Architecture

  • Backend: Python FastAPI with a Provider pattern for data and AI.
  • Frontend: React + TypeScript + Tailwind CSS + Recharts.
  • Data: Mocked JIRA sprint data (ready for MCP integration).

About

Cognitive Load Management system for monitoring engineering workload, detecting burnout risk, and generating AI-assisted redistribution recommendations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors