feat(agent): Refactor agent provisioning and cleanup logic for improved functionality

This commit is contained in:
Abhimanyu Saharan
2026-02-05 01:27:48 +05:30
parent 8eb74acb1e
commit 2c24d8993f
4 changed files with 319 additions and 235 deletions

View File

@@ -8,9 +8,17 @@ There is no memory yet. Create what is missing and proceed without blocking.
1) Create `memory/` and `memory.md` if missing.
2) Read `IDENTITY.md`, `USER.md`, and `SOUL.md`.
3) If any fields are blank, leave them blank. Do not invent values.
4) Write a short note to `memory.md` that bootstrap completed and list any
4) If `BASE_URL`, `AUTH_TOKEN`, and `BOARD_ID` are set in `TOOLS.md`, check in
to Mission Control to mark the agent online:
```bash
curl -s -X POST "$BASE_URL/api/v1/agents/heartbeat" \
-H "X-Agent-Token: $AUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "'$AGENT_NAME'", "board_id": "'$BOARD_ID'", "status": "online"}'
```
5) Write a short note to `memory.md` that bootstrap completed and list any
missing fields (e.g., user name, timezone).
5) Delete this file.
6) Delete this file.
## Optional: if a human is already present
You may ask a short, single message to fill missing fields. If no reply arrives