codex: installer can update AGENTS.md (markers; --no-agents)#411
codex: installer can update AGENTS.md (markers; --no-agents)#411
Conversation
…ate INSTALL docs to use flags
…d --no-agents flag; update docs
📝 WalkthroughWalkthroughIntroduces a new installer core module providing install, upgrade, and health-check functionality for Superpowers tooling. The core module handles repository cloning, Git operations, symlink creation, and IDE-specific configuration. Two CLI tools integrate this core module by exposing install, upgrade, and doctor subcommands to manage installations across different IDE environments. Changes
Sequence Diagram(s)sequenceDiagram
participant User as User CLI
participant CLI as Superpowers CLI
participant Installer as Installer Core
participant Git as Git/Repository
participant IDE as IDE Paths
participant FS as Filesystem
User->>CLI: install/upgrade [flags]
CLI->>CLI: parseArgs & resolveConfig
CLI->>Installer: runInstall/runUpgrade(ide, args)
Installer->>Git: gitEnsureCloned(repoUrl, dir)
Git->>FS: Clone repository
FS-->>Git: Success
Git-->>Installer: Cloned/Updated
Installer->>Git: gitCheckoutRef(ref)
Git->>FS: Checkout ref
FS-->>Git: Success
Git-->>Installer: Checked out
Installer->>IDE: getIdePaths(ide)
IDE-->>Installer: IDE paths config
Installer->>FS: ensureSymlink(repo, target)
FS-->>Installer: Symlinks created
Installer->>FS: ensureCodexAgentsMd (optional)
FS-->>Installer: Agents metadata updated
Installer-->>CLI: Success
CLI-->>User: Installation complete
sequenceDiagram
participant User as User CLI
participant CLI as Superpowers CLI
participant Doctor as Doctor Check
participant Git as Repository
participant IDE as IDE Paths
participant FS as Filesystem
User->>CLI: doctor [flags]
CLI->>Doctor: runDoctor(ide, args)
Doctor->>Git: Check central repo status
Git->>FS: Verify repo exists & clean
FS-->>Git: Status result
Git-->>Doctor: Repo health
Doctor->>IDE: getIdePaths(ide)
IDE-->>Doctor: IDE config
Doctor->>FS: Verify IDE symlinks & dirs
FS-->>Doctor: Path status
Doctor->>Doctor: Compile results
Doctor-->>CLI: Print status & exit
CLI-->>User: Health check complete
Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Adds an optional, idempotent update of
~/.codex/AGENTS.mdduring installerinstall/upgradeto ensure the Superpowers system block is present.--no-agentsto opt outI split this from the core installer PR since it edits a user config file and may warrant separate review.