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

# HOWTO: reanimate - AI Context Handshake

> OKF-compliant documentation for HOWTO-REANIMATE.md. Deep State of Mind framework. Deep State of Mind framework. Deep State of Mind framework.

# docs/tools/HOWTO-REANIMATE.md

> **Standard: DSOM For My AI Protocol v6.1 | Context Engineering**
> **Tools:** `reanimate.ps1`, `reanimate.sh`
> **Platforms:** Windows Native (T1), Linux/WSL2 (T2)

***

## 1. Purpose

`reanimate` is the **Context Assembler** of the DSOM framework. It solves the "Memory Decay" problem in AI sessions by aggregating all critical project artifacts—task lists, walkthroughs, identity protocols, and environment maps—into a single, dense manifest file.

**Use it to:**

* Generate a `sod_manifest_YYYY-MM-DD.txt` for starting a new AI session.
* Inject manual state (EOD summaries or Master Prompts) into the reanimation chain.
* Provide the AI with an immediate "High-Resolution" map of the project state.
* Ensure the AI adheres to the Sovereign Constitution from Minute 1.

**Location:**

* `tools/reanimate.ps1` (Windows)
* `tools/reanimate.sh` (Linux/WSL2)

***

## 2. Prerequisites

| Requirement     | Minimum                              | Notes                                            |
| :-------------- | :----------------------------------- | :----------------------------------------------- |
| Brain Artifacts | `task.md`, `walkthrough.md`          | Core state files must exist in `.agents/brain/`. |
| Identity Doc    | `docs/AI-COGNITIVE-TWIN-PROTOCOL.md` | Defines "Who" the AI is for this project.        |
| Topology        | `inventory/hosts.yml`                | Ingests the server/container map.                |

***

## 3. Usage

### 3.1 Standard Reanimation

```powershell theme={null}

# Windows (T1)

.\tools\reanimate.ps1

```

```bash theme={null}

# WSL2 / Linux (T2)

bash tools/reanimate.sh

```

### 3.2 Interactive Injection

Upon running, the tool will ask:
`Do you have a manual EOD Summary or Master Prompt addition? (y/N)`

* **If No (Default):** It builds the manifest from the static Git artifacts.
* **If Yes:** It opens a multi-line input buffer. Paste your "Hibernation Notes" or custom instructions here. Type `EOF` (Windows) or `Ctrl+D` (Linux) to save.

***

## 4. Reading the Output & Status Codes

| Label       | Meaning                 | Action                                |
| :---------- | :---------------------- | :------------------------------------ |
| `[WARNING]` | Missing brain artifact. | Run `init-brain` if first-time setup. |
| `[OK]`      | Manifest generated.     | Upload the file to your AI now.       |

***

## 5. The Cognitive Handshake

After generating the manifest, upload `sod_manifest_YYYY-MM-DD.txt` to your AI and use the following phrase:

> *"Initialise DSOM Protocol v6.1. Read the uploaded manifest. Summarise the Mental Anchor and confirm the 4-Tier environment map. State: 'Sovereign State Synchronised' when ready."*

***

## 6. Related Documents

| Document                                                                   | Purpose                                  |
| :------------------------------------------------------------------------- | :--------------------------------------- |
| [`docs/SOD-RITUAL.md`](../SOD-RITUAL)                                      | The Ritual utilizing this manifest.      |
| [`docs/REANIMATION-PROMPT-TEMPLATE.md`](../REANIMATION-PROMPT-TEMPLATE.md) | Backup prompt strategies.                |
| [`HOWTO-INIT-BRAIN.md`](HOWTO-INIT-BRAIN)                                  | Setup the files reanimate needs to read. |

***

*Standard: DSOM For My AI Protocol v6.1 | Harisfazillah Jamel | LinuxMalaysia*
*Document Version: v1.0 | Created: 2026-04-08*

***

*Deep State of Mind (DSOM) For My AI Protocol | Harisfazillah Jamel (LinuxMalaysia) | 2026-07-04*
*Standard: UK English | DBP-standard Bahasa Melayu Malaysia (Piawai) | GNU General Public License v3.0*


## Related topics

- [HOWTO: reanimate-claude - Anthropic Context Injection](/tools/howto-reanimate-claude.md)
- [DSOM Quick Start: From Clone to Cognitive Handshake](/quickstart.md)
- [🌅 SOD-RITUAL.md - Start-of-Day Ritual](/rituals/start-of-day.md)
- [[AGENT] DSOM Cognitive Digital Twin: Project Operational Protocol (v2.0)](/governance/ai-cognitive-twin-protocol.md)
- [🤝 HUMAN-HANDOVER-CONTEXT.md](/rituals/human-handover.md)
