Migrate off pi/amp to agent/agentd

t-341·WorkTask·
·
·
·Omni/Agent.hs
Created1 month ago·Updated1 month ago

Description

Edit

Summary

Replace usage of pi and amp CLI tools with the new agent/agentd system.

Scope

  • Update scripts/workflows that use pi
  • Update AGENTS.md references
  • Ensure feature parity for common use cases
  • Remove pi/amp dependencies once migrated

Blocked By

  • Need to ensure agent CLI is robust enough
  • May need light orchestration for running multiple agents

Notes

Do this carefully - want to get the architecture right.

Timeline (10)

💬[human]1 month ago

Migrated pi-code.sh, pi-review.sh, pi-orchestrate.sh to use agent CLI instead of pi. Old scripts now symlink to new agent-* versions. Committed in d167fe26.

🔄[human]Open → InProgress1 month ago
💬[human]1 month ago

Migration complete. All pi-* scripts now use the agent CLI. Remaining 'amp' references are in design docs and node_modules, not active code.

🔄[human]InProgress → Done1 month ago
💬[human]1 month ago

Progress:

  • Created Omni/Agent/Harness.hs for running skills with pre/post checks
  • Removed dead AmpCLI code from Provider.hs and Engine.hs
  • Removed pi-*/agent-* shell scripts
  • Skills already exist at Omni/Ide/Coder.md and Omni/Ide/Reviewer.md

Remaining:

  • Developer.hs still references deleted agent-review.sh - needs to be updated to use Harness
  • This is a larger refactor since Developer.hs has its own orchestration logic
💬[human]1 month ago

All code now compiles. Summary of changes:

1. Created Omni/Agent/Harness.hs - runs skills with pre/post checks 2. Removed AmpCLI dead code from Provider.hs and Engine.hs 3. Removed pi-*/agent-* shell scripts entirely 4. Fixed Developer.hs to directly run lint+commit instead of shell script 5. Existing skills at Omni/Ide/Coder.md and Omni/Ide/Reviewer.md remain

The shell script functionality is now:

  • Coding: Omni/Agent/Coder.hs (native Haskell)
  • Static checks: Omni/Agent/Harness.hs
  • Review prompts: Omni/Ide/Reviewer.md skill
  • Orchestration: Ava's Telegram handlers