Migrate Ava to run as ben user with dedicated worktree

t-302·Epic·
·
·
·Omni/Agent.hs
Created1 month ago·Updated1 month ago

Execution Summary

5/5
Tasks Completed
$0.00
Total Cost
0s
Total Time

Design

Edit

Currently Ava runs as a separate 'ava' user, which causes many issues:

  • File permission problems
  • Git config/hooks don't work
  • Need symlinks in /usr/local/bin for tools
  • Can't use ben's pi token (must use OpenRouter, more expensive)
  • Separate /run/secrets for API keys

New approach: 1. Create dedicated git worktree: /home/ben/omni/ava 2. Run Ava systemd service as ben user 3. Use ben's pi auth tokens (Claude Code API, cheaper than OpenRouter) 4. Ava works in its worktree, ben works in /home/ben/omni/live 5. Both share same .git, same branches, same environment

Benefits:

  • No permission issues (same UID)
  • direnv/nix just works
  • Git hooks work
  • Direct Anthropic API (no OpenRouter markup)
  • Simpler deployment

Child Tasks

  • t-302.1 - Create git worktree for Ava at /home/ben/omni/ava [Done]
  • t-302.2 - Update Ava systemd service to run as ben user [Done]
  • t-302.3 - Update orchestrator scripts to use pi with ben's auth [Done]
  • t-302.4 - Update work_on_task tool paths for new worktree [Done]
  • t-302.5 - Clean up old ava user setup [Done]

Timeline (1)

🔄[human]Open → Done1 month ago