25 karma · joined October 21, 2024
Recently Ive been experimenting more with coding from my phone using Claude Code for the Web. Its basically turned Github Actions into my development environment. Its enabled me to fire off a quick prompt in planning mode, go play with my kids, review and approve the plan while Im cooking dinner, then let it go 10 rounds with the AI code reviewer while I put the kids to bed. As a busy parent I feel way more productive than if I had to carve out sit down focus time for a side project.
Since my agent works over email, the core agent loop only processes one message then hits the send_reply tool to craft a response. Then the next incoming email starts the loop again from scratch, only injecting the actual replies sent between user and agent. This naturally prunes the context preventing the long context window problem.
I also had a challenge deciding what context needs injecting into the initial prompt vs what to put into tools. Its a tradeoff between context bloat and cost of tool lookups which can get expensive paying per token. Theres also caching to consider here.
Full writeup is here if anyone is interested: https://www.healthsharetech.com/blog/building-alice-an-empow...