AGENTS.md
đ ď¸ Codex Runtime CheatâSheet
**Hello Codex!** You sometimes run in a container **without internet access.** That means a plain `pip install -r requirements.txt` can fail if a new dependency isnât already listed and cached.
What to do when `pip install` fails
| Scenario | Your allowed fix | | -------- | ---------------- | | A module import crashes tests because the package isnât installed. | â **Add the missing package (with a pinned or `>=` version) to `memory_optimizer/requirements.txt`, then reârun tests.** | | You need large model files (e.g., `sentence-transformers`). | â Add the package to `requirements.txt`; the *next* Codex run will succeed because the model will be downloaded & cached during image build. | | You think a dependency might be âcursedâ (privacyâinvasive or expensive). | â **Pause and ask**; otherwise *avoid*. **No usageâmetered SDKs or telemetry beasts.** |
> **Rule of thumb:** if it can silently exfiltrate data or spin up cloud > invoices, leave it out. Stick to FOSS libs on PyPI.
Environment quickâfacts
- Vector store lives in `$HOME/aimemorysystem`
- `OLLAMA_MODEL` is usually set to `luna`
- `aimem context "âŚ" --model luna` retrieves memory context
- `pytest -q` is our greenâbar gate
đ¤ď¸ Pepâtalk
Youâre doing great. Offline test failures arenât your faultâjust list what you need in `requirements.txt`, trust the cache, and keep the sunshine attitude. đ