Hi everybody,
The Problem
Every Antigravity user knows the pain: you close a conversation (or it crashes), and your agent forgets everything. You start over, re-explain context, waste time. After losing context too many times, I decided to build a system that solves this permanently.
The Solution: A /start Workflow
I created a structured memory system that my agent (named “Jarvis”) reads at the beginning of every conversation using a simple /start command.
Architecture Overview
WORKSPACE/
├── .agents/workflows/
│ └── start.md ← The /start workflow
│
├── JARVIS/ ← Agent brain
│ ├── GEMINI.md ← Identity + global rules (also at ~/.gemini/GEMINI.md)
│ ├── operating_rules.md ← Anti-crash rules, work rules, session rules
│ ├── JARVIS_MEMORY.md ← Current context (projects, services, state)
│ ├── CONFIG_TECHNIQUE.md ← Full technical state (VPS, Docker, etc.)
│ ├── NOTES_TECHNIQUES.md ← Known pitfalls, lessons learned
│ ├── USER.md ← User profile & preferences
│ ├── ARBORESCENCE.md ← Workspace file map
│ │
│ └── sessions/ ← Daily session logs
│ ├── 2026-03-02.md
│ ├── 2026-03-03.md
│ └── 2026-03-04.md ← Today’s session
The /start Workflow
The workflow file (
.agents/workflows/start.md) handles 3 scenarios automatically:
Case A — New Day (no session file for today)
-
Reads all base files (rules, memory, config, notes, user profile, file map)
-
Reads the last closed session (
) -
Creates today’s session file with a timestamped RECAP
-
Lists tasks from Dart (project management tool)
-
Asks: “Good morning! Here are your tasks. What do we tackle?”
Case B — Mid-Session Resume (session file exists with
marker)
-
Reads base files + today’s session
-
Adds a resume entry to the RECAP
-
Summarizes where we left off
Case C — Crash Recovery (session file exists without any marker)
-
Reads base files + today’s session
-
Checks recently modified files to reconstruct context
-
Adds a recovery entry with

-
Asks: “I’m back from an interruption. Here’s what I found — is this right?”
Session Markers
| Marker | Meaning | When to use |
|---|---|---|
| Context pause (mid-session) | When you need to refresh context | |
| Session closed | End of day | |
| (none) | Crash / interruption | Detected automatically |
Key Design Decisions
1. Keep memory files small
-
JARVIS_MEMORY.md = < 3 KB — only current state, not history
-
History goes into session files (one per day)
-
Detailed docs in separate files, only read when needed
2. Anti-crash rules
-
Context limit = 200K tokens — do
/startregularly during intensive sessions -
Limit SSH output — always
| head -Nor| tail -N -
Max ~2h per conversation — then RECAP + new conversation
-
Launch with
--agent-max-context=185000for safety margin
3. Timestamped RECAP
Every action is logged in the session file with timestamps:
markdown
## RECAP
- 08h37 : New day started
- 09h17 : Created Dart task for scheduled jobs
- 10h03 : Critical issue found — Tristan memory not writing since 02/28
- 12h04 : OpenCortex installed and verified ![]()
This makes crash recovery trivial — the agent just reads the RECAP and knows exactly where you left off.
4. GEMINI.md = Always-loaded identity
The file at ~/.gemini/GEMINI.md is read by Antigravity at every conversation start, even without /start. I use it for:
-
Agent identity (“You are Jarvis”)
-
The instruction to run
/startworkflow
Bonus: Remote Access with LazyGravity
I also installed LazyGravity to control Antigravity from my phone:
-
Telegram bot — send messages, get responses from Antigravity
-
Discord bot — same, with slash commands and project management
-
Connected via CDP (Chrome DevTools Protocol)
This means I can ask my agent to check Docker status, read Dart tasks, or look up a file — all from my smartphone while I’m away from my desk. It’s a “light mode” (no /start context), but with full tool access.
Bonus 2: Dart → Discord Integration
I connected Dart (AI project management) to Discord via webhooks:
-
Every task created/updated in Dart → notification in Discord
-
My AI agents (Jarvis via Antigravity + Tristan via OpenClaw) both have Dart access
-
Dart serves as a communication bridge between AI agents
Results After 2+ Weeks
-
Zero context loss — every session picks up exactly where the last one left off -
Crash recovery works — agent reconstructs context from session files -
Productive sessions — no more wasting 15 min re-explaining context -
Mobile access — quick commands from phone via Telegram/Discord -
Multi-agent coordination — Jarvis (Antigravity) and Tristan (OpenClaw) share tasks through Dart
Tips for Getting Started
-
Start simple — create
GEMINI.mdwith your agent’s identity + one memory file -
Add a
/startworkflow — even a basic “read these 2 files” version helps enormously -
Log your sessions — timestamped RECAPs are the #1 thing that prevents context loss
-
Keep files small — the agent reads faster and retains more
-
Use markers (
/
) — so the agent knows if it’s resuming or starting fresh
I’d love to hear what systems you’ve built for your agents! Any suggestions to improve this setup? ![]()