I have an AI agent that does things for me on its own. It sends emails, orders things, moves money, fills out forms. Sometimes it decides how to do it without me telling it exactly, and it runs while I am sleeping.

1. If it does a mitzvah for me, is it mine? Say I tell it to give tzedakah, or to send mishloach manos on Purim. A shliach has to be a bar chiyuva and a machine is not, so is the AI just a tool like a pen or a check, where the mitzvah is still mine, or did I not do the mitzvah at all? And what about a mitzvah that needs kavana at the time it is done. If the machine does it an hour later while I am asleep, is my kavana from before enough?

2. If it causes damage, what am I? I know it is not a person and I know it is either me or my property. What I want to know is which one, and what changes it. If I press go and it wires money to the wrong person, is that adam hamazik because I did it, or esh, or bor? Does it matter that it picked the recipient itself and I never named him?

3. Shemira. With a shor I am chayav because I did not guard it. What is guarding an AI agent? If I put a limit on what it can spend, or make it ask me before anything goes out, and it damages anyway, does that patur me the way a proper guard does, or am I still muad because I knew it could go wrong?

4. If the damage is only money and nothing physical, like it deletes someone’s work or sends a wire that cannot be pulled back, is that garmi, where I pay, or grama, where I am patur bedinei adam and only chayav bedinei shamayim?

5. And if it does something I told it not to do. With a shliach there is a whole din of one who is oveir on his shlichus. A machine cannot be a shliach, so is there any parallel, or does going against my instruction make no difference at all since it is only my property?

I saw an article that says it does not fit neatly into shor, bor or esh and that each case goes to beis din. What I want to understand is the chiluk itself, which one it really is, and what a person should do so he is not chayav.