Skip to content

/forget

The /forget skill wipes kstack’s local state on your machine. Over time kstack builds up a working memory of your clusters — recent query results, detected integrations, resource fingerprints, and baselines it uses to detect anomolies. This skill is a forced clearing of that data so the agent can start with a clean slate.

This skill does not touch anything in the cluster. For removing kstack-managed resources from the cluster itself, see /cleanup.

/forget # forget everything for the current context
/forget --context prod # forget everything for the 'prod' context
/forget --all # forget everything for all contexts

State lives under ~/.config/kstack/, partitioned per kubeconfig context — forgetting staging never affects prod.

By default the skill clears both for the current context.


  • The cluster was rebuilt or migrated and its old identity no longer matches what kstack remembers.
  • You want kstack to re-learn from scratch — baselines feel stale, or an earlier session taught it something wrong.
  • You’re handing the machine off and want no cluster-specific state left behind.

--all
Clear cache and learned state for every context, not just the current one

Global flags from Overview also apply.