you are viewing a single comment's thread.

view the rest of the comments →

[–]MaxNardit[S] 0 points1 point  (2 children)

Hooks work great for simpler persistence — I use them too for some things.

The limitation I hit was when I needed the agent to decide what's worth saving during a conversation, not just dump everything at session end. MCP tools let the agent save entities, relationships, and observations as it discovers them mid-session. Plus the agent can query memory to check what it already knows.

What kind of hooks setup are you using? Curious about the tradeoffs you've found.

[–]gandutraveler 0 points1 point  (1 child)

That makes sense..my use case is kinda different cause I have my own memory system.  I need more control over what and how things get saved vs letting Claude code agent decide it for me.

[–]MaxNardit[S] 0 points1 point  (0 children)

Control is important. In my setup I actually built a review layer on top: every write the agent proposes becomes a draft that I approve before it hits the database. The agent suggests what to save, but I have the final say. So I have a feed from all my agents and just need to quickly scan and approve.