> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# reload • AI Agent SDK

> reload: Re-scan skill sources and refresh the in-memory index.

# reload

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**SkillManager**](../classes/SkillManager) class in the [**manager**](../modules/manager) module.

Re-scan skill sources and refresh the in-memory index.

Re-runs discovery over the same directories the manager was last
discovered with, diffs the result against the current registry, and
swaps the index atomically. This lets a live session pick up newly
installed/edited/removed skills without a restart.

Behaviour:

* **added** — a new SKILL.md appeared: loaded fresh (metadata only).
* **changed** — an existing skill's SKILL.md content changed on disk:
  reloaded fresh so cached instructions are dropped.
* **removed** — the skill directory disappeared: dropped from the
  index and deactivated (its cached instructions are cleared).
* unchanged skills keep their existing `LoadedSkill` (and thus any
  activated instructions / usage telemetry).

The prompt-cache concern is respected: this method only mutates the
in-memory index. Callers build the skills prompt from the index on the
*next* turn (:meth:`to_prompt`), so an index change never takes effect
mid-turn.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def reload() -> Dict[str, List[str]]
```

### Returns

<ResponseField name="Returns" type="Dict[str, List[str]]">
  Dict with `added`, `changed` and `removed` lists of skill
  names (sorted), suitable for a `+added/~changed/-removed` report.
</ResponseField>

## Uses

* `discover_skills`
* `new_props.setdefault`
* `LoadedSkill`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/skills/manager.py#L133">
  `praisonaiagents/skills/manager.py` at line 133
</Card>
