Add Letta agent
Closes #649
I've been using this for a while now and it works fairly well, though there are more and more features added that I haven't been able to keep up with.
Main concept here is that there's a permanent ongoing conversation, and stand-alone conversations. Memory is available in all of them, but the flow of conversation is more streamlined in the main chat.
I'm working on schedules next, which can open up some nice use cases as memory comes along with it.
Requires a few different pieces to work:
- https://github.com/letta-ai/letta-code -> I have a PR open that adds ACP and makes the interaction smoother; https://github.com/letta-ai/letta-code/pull/2631 which I recommend until it gets merged
- https://tangled.org/codeluggage.tngl.sh/letta-code-acp which is on npm now
- Well, this PR, or something like it!
I don't mind maintaining agent-shell-letta.el in the other repo but it would rock to have it included in agent-shell!
The pitch, overall, would be completely offline, local memory. Can be done in a simple way with letta as a service in the cloud but they're making everything quite easy to use locally too. I have been using their service but I'm working on more fully fleshed out local version and there's some recent gaps that have been covered when it comes to scheduling things.
As far as documentation goes, it's a bit in flux right now. I suppose this PR serves as ok documentation right now and when the https://github.com/letta-ai/letta-code/pull/2631 PR lands the documentation gets cleaner. Also cleaner on docs if agent-shell-letta.el gets to hang out here with the big boys.
Checklist
- [x] I agree to communicate (PR description and comments) with the author myself (not AI-generated).
- [-] I've reviewed all code in PR myself and will vouch for its quality.
- [x] I've read and followed the Contributing guidelines.
- [x] I've filed a feature request/discussion for a new feature.
- [ ] I'm making visual changes, so I'm including screenshots so you can view and discuss.
- [x] I've added tests where applicable.
- [-] I've updated documentation where necessary.
- [x] I've run
M-x checkdocandM-x byte-compile-file.