Migrate Ava to run as ben user with dedicated worktree

t-302·Epic·
·
·
·Omni/Agent.hs
Created4 months ago·Updated4 months ago·pipeline runs →

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]

Git Commits

3305e7aaClean up ava user migration
Ben Sima4 months ago1 files
e6263ca4Update Ava paths from /home/ava/omni to /home/ben/omni/ava
Ben Sima4 months ago4 files
0abf1578Update work_on_task paths for ben user worktree
Ben Sima4 months ago1 files
ccc3a2a5Remove OpenRouter, use pi default auth (Claude Max)
Ben Sima4 months ago3 files

Timeline (1)

🔄[human]Open → Done4 months ago