MonitoringanalysisskillShippedVerified by us

Agent Context Hygiene Audit

Slowdown → source of excessive context and verification point

A robot through a transparent window measures sessions, memory, autostart, and schedules, sorting evidence, while archive boxes remain behind a closed gate

In short

Sessions, memory, autostart, integrations, and background tasks grow over time, but deleting them based solely on size is dangerous.

Outcome

A strictly read-only audit collects sizes, ages, last-run evidence, and duplicates, explains risk by set thresholds, and forms a queue of manual actions without applying changes.

How the automation runs

Trigger

Owner initiated an audit or a scheduled check window arrived

Automation steps

  1. Inventories authorized areas without reading secret content and private messages
  2. Collects size, age, freshness, and actual usage
  3. Applies explicit thresholds and flags missing data
  4. Finds candidates for archive, duplicates, and orphaned background tasks
  5. Creates an evidence report and a preview of safe manual actions

Human check

The audit does not delete, move, or edit anything; each action affecting a file, session, memory, or schedule requires separate review and confirmation by the owner.

Outcome

A strictly read-only audit collects sizes, ages, last-run evidence, and duplicates, explains risk by set thresholds, and forms a queue of manual actions without applying changes.

Automation diagram

The overall logic is public
Input
TriggerOwner initiated an audit or a scheduled check window arrived
System
Step 1Inventories authorized areas without reading secret content and private messages
System
Step 2Collects size, age, freshness, and actual usage
System
Step 3Applies explicit thresholds and flags missing data
System
Step 4Finds candidates for archive, duplicates, and orphaned background tasks
System
Step 5Creates an evidence report and a preview of safe manual actions
Human
Human controlThe audit does not delete, move, or edit anything; each action affecting a file, session, memory, or schedule requires separate review and confirmation by the owner.
Outcome
Observable outcomeA strictly read-only audit collects sizes, ages, last-run evidence, and duplicates, explains risk by set thresholds, and forms a queue of manual actions without applying changes.

Using it

When to use it

Context has become expensive or unstable, compactions have increased, and a documented revision of sessions, memory, and background tasks hasn't been performed in a long time.

How to verify

The report covers all authorized areas with measured evidence and an unknown state if data is insufficient, and control hashes confirm no file changes.

Tools

pythonfilesystem metadatacron inventorymarkdown

Recipe details

Timehalf a dayDifficulty3 of 5Steps6Prerequisites3
Access to the whole library

Open every recipe through @venturehunter

We ask for no phone number, no password and no Telegram login on the site. @penioza_bot checks your subscription inside Telegram and brings you back here with access to every kit, not just this one recipe.

No emailNo site loginOne check for the whole libraryBuildable starter

Need help putting this in place?

We will walk through your process and build this loop around your data, your limits and your people.

Message me — I will help