Skip to content

An autonomous Agentic AI system that detects stale internal documentation using reasoning agents. Features a Scanner, Evaluator, and Notifier loop to automate knowledge maintenance.

Notifications You must be signed in to change notification settings

LAHI-RU/knowledge-decay-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Internal Knowledge Decay Detection Agent πŸ•΅οΈβ€β™‚οΈπŸ“š

An autonomous Agentic AI system that monitors internal documentation, evaluates its relevance using LLMs, and flags "stale" or outdated knowledge.

πŸš€ Overview

Engineering teams often suffer from "Knowledge Decay"β€”documentation that becomes misleading over time. This tool automates the maintenance process by:

  1. Scanning repositories (Local or GitHub) for Markdown files.
  2. Evaluating content using OpenAI (GPT-4) to detect signs of staleness.
  3. Notifying the team via console alerts (extensible to Slack/Email).

πŸ— Architecture

The system follows a modular Agentic workflow:

  • Scanner Agent (src/scanner.py): Handles file I/O and GitHub API traversal.
  • Evaluator Agent (src/evaluator.py): Uses Prompt Engineering to judge document freshness.
  • Notifier Agent (src/notifier.py): Aggregates results and generates alerts.
  • Orchestrator (main.py): Manages the data flow between agents.

πŸ›  Tech Stack

  • Language: Python 3.10+
  • AI: OpenAI API (GPT-4o / GPT-3.5)
  • Integration: PyGithub (GitHub API)
  • Environment: python-dotenv for security

βš™οΈ Setup

  1. Clone the repository

    git clone [https://github.com/YOUR_USERNAME/knowledge-decay-agent.git](https://github.com/YOUR_USERNAME/knowledge-decay-agent.git)
    cd knowledge-decay-agent
  2. Create Virtual Environment

    python -m venv venv
    source venv/bin/activate  # Windows: venv\Scripts\activate
  3. Install Dependencies

    pip install -r requirements.txt
  4. Configure Credentials Create a .env file in the root directory:

    OPENAI_API_KEY=sk-...
    GITHUB_TOKEN=ghp-...

πŸƒ Usage

Scan a Local Directory:

python main.py --target "docs/"

About

An autonomous Agentic AI system that detects stale internal documentation using reasoning agents. Features a Scanner, Evaluator, and Notifier loop to automate knowledge maintenance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages