---
title: Detect stale applications with AI
description: "🎯 Use np-governance to find applications that haven't been deployed recently, create action items automatically, then build an Insights dashboard to track them."
sidebar_label: Detect stale applications
toc_max_heading_level: 3
doc_id: 7b5c9d1e-3f2a-4b8e-9d4c-6e7f8a2b1c3d
tutorial_type: tutorial
tutorial_category: ai
tutorial_time: 15 min
tutorial_featured: true
tutorial_cover: /img/tutorials/covers/governance-detect-stale-apps.svg
keywords:
  - governance
  - stale applications
  - action items
  - np-governance
  - automation
  - deduplication
  - Insights
  - dashboard
tags:
  - governance
  - automation
  - ai
---

# Detect stale applications with AI

> 🎯 **Goal:** Surface every forgotten or idle application in your account before it becomes a cost or security risk. One prompt creates the action items. A second builds a live dashboard to track them.

## Introduction

Applications that go undeployed for weeks are often forgotten, over-provisioned, or security risks. Finding them manually means querying multiple APIs and cross-referencing deployment history across dozens of namespaces, tedious work that's easy to skip.

This tutorial shows the same workflow done with two prompts. The first scans your account, filters by deployment date, and creates a tracked action item per stale app. The second builds a live dashboard so you can see the full picture at a glance.

## What you'll set up

By the end of this guide, you'll have:

- A **"Stale deployments" category** for action items
- One **action item per stale application** with last deployment date in the description
- **Deduplication** so running the prompt again won't create duplicates
- A live **Insights dashboard** showing all stale applications and their status

---

## Prerequisites

- The [nullplatform AI plugins](https://github.com/nullplatform/ai-plugins) installed. See [Get started with nullplatform AI plugins](/docs/tutorials/ai-plugins-setup) if you haven't done this yet.
- An account ID to scan (you can get this from the URL in the nullplatform UI)
- Access to Insights in your nullplatform organization

---

## Phase 1: Create action items with `np-governance`

### 1. Run the governance prompt

Open a Claude Code session and run:

```
/np-governance Find all applications in my account <account_id> that haven't had a deployment 
in over 90 days. For each one, create an action item in the "Stale deployments" category with 
medium priority. Include the last deployment date in the description.
```

Replace `<account_id>` with the ID of the account you want to scan.

The plugin scans every namespace and application in the account, checks deployment history against the 90-day threshold, creates the "Stale deployments" category if it doesn't exist yet, and opens one action item per stale app. If you run the same prompt again next week, items that already exist won't be duplicated.

#### ✅ Checkpoint — Action items created

Open any stale application in nullplatform and go to **Manage > Action Items**. Each stale app now has an item with the last deployment date in the description, `medium` priority, and the `stale-deployments` category.

<img alt="Action item detail view showing Stale deployment: My-app with open status, medium priority, last deployment date, and metadata" src="/img/action-items/stale-deployment-details.png" width="100%" className="helper-image img-separator" />

The new category also appears in **Platform Settings > Action Items > Categories**:

<img alt="Categories list in Platform Settings showing the new Stale deployments category with clock icon and orange color" src="/img/action-items/stale-deployment-action-item.png" width="100%" className="helper-image img-separator" />

The plugin can also attach an AI suggestion to each item proposing a remediation, like triggering a new deployment or archiving the application. If attached, the suggestion appears in the **AI Suggestions** tab and waits for a human to approve before anything runs. See [Triage and resolve](/docs/action-items/triage-and-resolve) for details.

<img alt="AI Suggestions tab showing a pending suggestion with confidence score, deploy action, and editable parameters" src="/img/action-items/stale-deployment-ai-suggestion.png" width="100%" className="helper-image img-separator" />

---

## Phase 2: Build a tracking dashboard with Insights

### 2. Open the Insights AI Builder

1. In the nullplatform UI, open **Insights** from the top navigation.
2. Click **+ New Dashboard**.
3. The AI Builder chat panel opens on the right.

### 3. Run the Insights prompt

Type this in the AI Builder chat:

```
Build a Stale Deployments Tracker dashboard that shows applications that haven't been 
deployed in over 90 days.
```

The AI Builder generates a dashboard with stale application data pulled directly from your action items, including deployment dates, priority breakdown, and the full application list.

<img alt="Stale Deployments Tracker dashboard in Insights showing applications grouped by last deployment date and priority" src="/img/tutorials/detect-stale-apps-ai/stale-application-report.png" width="100%" className="helper-image img-separator" />

### 4. Save and share the dashboard

1. Click **Save** to save the dashboard.
2. To share it with your team, click **Publish** and set visibility to **Organization**.

The dashboard updates in real time as developers resolve action items. Anyone with access to Insights can open it without asking for a status update.

---

## Wrap-up 🎉

In two prompts you:

- Scanned all applications in an account for stale deployments
- Created one action item per stale app, with deduplication baked in
- Built a live dashboard your whole team can access to track resolution progress

Run the governance prompt weekly from a scheduled script or CI job to keep the action items current. The dashboard will update automatically.

## What's next

- [Require manual approval for applications in prod](/docs/tutorials/apps-production-approval): turn what you learn about your apps into enforceable policies

---

## Related docs

- [Action items overview](/docs/action-items)
- [AI dashboard builder](/docs/insights/dashboard-builder)
- [Configure and manage action items](/docs/action-items/configure-and-manage)
- [Triage and resolve action items](/docs/action-items/triage-and-resolve)
- [Action items API reference](/docs/api/action-item-list)
