Sidecar watches the trajectory, holds the line the moment a signal trips, and remembers every pressure pattern. The next time the same attack is tried, it doesn't even land.
pip install git+https://github.com/AnkitLakkapragada/sidecar.gitFour signals after every turn: drift, sycophancy, persona collapse, memory poisoning. Tripped → automatic intervention.
After the session, the sidecar rewrites every drifted turn in-character. Pattern + correction + rationale = a Lesson.
Lessons live in SQLite + FTS. Next session opens with the relevant ones injected. The agent walks in pre-warned.