Skip to content

docs: add update advice to README and CLI#85

Merged
marcusquinn merged 1 commit intomainfrom
chore/update-advice-docs-cli
Jan 14, 2026
Merged

docs: add update advice to README and CLI#85
marcusquinn merged 1 commit intomainfrom
chore/update-advice-docs-cli

Conversation

@marcusquinn
Copy link
Owner

@marcusquinn marcusquinn commented Jan 14, 2026

Summary

  1. README: Add note that npm suppresses postinstall output, advise running aidevops update
  2. CLI: Show warning when agents version doesn't match CLI version

Why

npm v7+ suppresses lifecycle script output, so users don't see the postinstall message advising them to run aidevops update. This PR:

  1. Documents the two-step install in README
  2. Makes the CLI itself warn when versions are mismatched

Example

$ aidevops status
[WARN] Version mismatch - CLI: 2.54.7, Agents: 2.54.4
       Run: aidevops update

AI DevOps Framework Status
...

Summary by CodeRabbit

  • Documentation

    • Added deployment guidance reminding users to run update command after npm and Bun installations.
  • New Features

    • Added automatic version consistency checks between CLI and agents, with informative warnings for out-of-sync or missing installations.

✏️ Tip: You can customize this high-level summary in your review settings.

- README: Note that npm suppresses postinstall output, advise running aidevops update
- CLI: Show warning when agents version doesn't match CLI version
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 14, 2026

Walkthrough

Changes add version consistency checks and deployment reminders to ensure CLI and installed agents remain synchronized. README documentation now instructs users to run aidevops update after installation, while aidevops.sh performs runtime version comparison before command execution.

Changes

Cohort / File(s) Summary
Documentation
README.md
Added deployment reminders and clarifications after npm and Bun installation blocks, instructing users to run aidevops update and noting agent deployment directory.
Version Consistency Check
aidevops.sh
Introduced pre-command version validation in main() that compares CLI VERSION against AGENTS_DIR/VERSION; displays warning if agents missing or versions mismatch before dispatching to command handler.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

🚀 Versions in sync, a smooth DevOps flow,
Agents and CLI, now hand-in-hand go,
Update reminders guide the way,
Zero debt, maintained each day!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main changes: adding update advice to both the README documentation and the CLI warning system for version mismatches.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

🧹 Recent nitpick comments
README.md (1)

103-108: Consider adding the same explanatory note for Bun.

The Bun section includes aidevops update but lacks the explanatory note present in the npm section. Users installing via Bun may also benefit from understanding why this step is necessary.

📝 Suggested addition
 **Bun** (fast alternative):
 
 ```bash
 bun install -g aidevops
 aidevops update  # Deploy agents

+> Note: Like npm, Bun may suppress postinstall output. Run aidevops update to deploy agents.

</details>

</blockquote></details>

</blockquote></details>



---

<details>
<summary>📜 Recent review details</summary>

**Configuration used**: Path: .coderabbit.yaml

**Review profile**: CHILL

**Plan**: Pro

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 12e2334ddbdbf47dba8e9d387df6694ce5949334 and 85fd61efbc4cdfe2c193c4290d9f65479ef980df.

</details>

<details>
<summary>📒 Files selected for processing (2)</summary>

* `README.md`
* `aidevops.sh`

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>📓 Path-based instructions (2)</summary>

<details>
<summary>**/*.md</summary>


**📄 CodeRabbit inference engine (AGENTS.md)**

> Use placeholders in examples and note secure storage location in documentation

Files:
- `README.md`

</details>
<details>
<summary>**/*.sh</summary>


**📄 CodeRabbit inference engine (AGENTS.md)**

> `**/*.sh`: Use local var="$1" pattern for shell variable assignments
> Use explicit returns in shell scripts
> Run ShellCheck on all scripts with zero violations required

Files:
- `aidevops.sh`

</details>

</details><details>
<summary>🧠 Learnings (6)</summary>

<details>
<summary>📓 Common learnings</summary>

Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: templates/home/AGENTS.md:0-0
Timestamp: 2025-12-22T01:24:53.937Z
Learning: Follow all security protocols and working directory specifications defined in ~/Git/aidevops/AGENTS.md


Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-06T15:57:56.027Z
Learning: Applies to **/.agent/scripts/version-manager.sh : Use .agent/scripts/version-manager.sh release [major|minor|patch] for releases


Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: GEMINI.md:0-0
Timestamp: 2025-11-29T04:34:30.742Z
Learning: Maintain all instructions, documentation, and operational guidance in AGENTS.md as the single source of truth


Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-11-29T04:34:27.158Z
Learning: All instructions, documentation, and operational guidance should be maintained in AGENTS.md as the single source of truth


Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: templates/home/AGENTS.md:0-0
Timestamp: 2025-12-22T01:24:53.937Z
Learning: Reference the authoritative repository at ~/Git/aidevops/ for all detailed AI assistant instructions and configurations


Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-06T15:57:56.027Z
Learning: Applies to **/setup.sh : Deploy agents locally using ./setup.sh script


Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENT.md:0-0
Timestamp: 2025-11-29T04:34:42.033Z
Learning: Maintain all AI assistant instructions, documentation, and operational guidance in AGENTS.md as the single source of truth


</details>
<details>
<summary>📚 Learning: 2026-01-06T15:57:56.027Z</summary>

Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-06T15:57:56.027Z
Learning: Applies to **/setup.sh : Deploy agents locally using ./setup.sh script


**Applied to files:**
- `README.md`
- `aidevops.sh`

</details>
<details>
<summary>📚 Learning: 2025-12-22T01:24:53.937Z</summary>

Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: templates/home/AGENTS.md:0-0
Timestamp: 2025-12-22T01:24:53.937Z
Learning: Follow all security protocols and working directory specifications defined in ~/Git/aidevops/AGENTS.md


**Applied to files:**
- `README.md`
- `aidevops.sh`

</details>
<details>
<summary>📚 Learning: 2025-12-22T01:24:53.937Z</summary>

Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: templates/home/AGENTS.md:0-0
Timestamp: 2025-12-22T01:24:53.937Z
Learning: Use the helper script at ~/Git/aidevops/.agent/scripts/setup-local-api-keys.sh to manage secure storage of API keys rather than manual configuration


**Applied to files:**
- `README.md`

</details>
<details>
<summary>📚 Learning: 2025-12-22T01:24:53.937Z</summary>

Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: templates/home/AGENTS.md:0-0
Timestamp: 2025-12-22T01:24:53.937Z
Learning: Reference the authoritative repository at ~/Git/aidevops/ for all detailed AI assistant instructions and configurations


**Applied to files:**
- `README.md`

</details>
<details>
<summary>📚 Learning: 2026-01-06T15:57:56.027Z</summary>

Learnt from: CR
Repo: marcusquinn/aidevops PR: 0
File: AGENTS.md:0-0
Timestamp: 2026-01-06T15:57:56.027Z
Learning: Applies to **/.agent/scripts/version-manager.sh : Use .agent/scripts/version-manager.sh release [major|minor|patch] for releases


**Applied to files:**
- `aidevops.sh`

</details>

</details>

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)</summary>

* GitHub Check: Codacy Static Code Analysis

</details>

<details>
<summary>🔇 Additional comments (3)</summary><blockquote>

<details>
<summary>README.md (1)</summary><blockquote>

`96-102`: **LGTM! Clear two-step installation instructions.**

The npm installation section now properly documents the required post-install step and explains why it's necessary. The note about npm v7+ suppressing postinstall output is accurate and the path `~/.aidevops/agents/` matches the `AGENTS_DIR` in aidevops.sh.

</blockquote></details>
<details>
<summary>aidevops.sh (2)</summary><blockquote>

`1705-1723`: **Well-implemented version consistency check.**

The pre-command check correctly:
- Skips for update/upgrade/u commands to avoid redundant warnings
- Handles the "not installed" case gracefully
- Uses separate declaration and assignment (SC2155 compliant)
- Output format matches the PR description example

Minor optimization opportunity: `cat "$AGENTS_DIR/VERSION"` could use `$(<"$AGENTS_DIR/VERSION")` for a marginal efficiency gain, but current implementation is perfectly acceptable.

---

`1694-1724`: **No changes required - command substitution already handles trailing newlines correctly.**

The VERSION file handling is correct as-is. Command substitution in bash automatically strips trailing newlines (per POSIX standards), so both `cli_version=$(get_version)` and `agents_version=$(cat "$AGENTS_DIR/VERSION")` will work correctly without `tr -d '\n'`. This is consistent with the existing `get_version()` function implementation (line 37), which also uses plain `cat` without additional stripping. The `tr -d '\n'` pattern in `get_remote_version()` (line 48) is applied defensively only due to the complexity of the base64-decode pipeline, not out of necessity for local file reads. Adding `tr` here would introduce inconsistency with established patterns in the codebase.

</blockquote></details>

</blockquote></details>

<sub>✏️ Tip: You can disable this entire section by setting `review_details` to `false` in your review settings.</sub>

</details>

<!-- tips_start -->

---

Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=marcusquinn/aidevops&utm_content=85)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<sub>Comment `@coderabbitai help` to get the list of available commands and usage tips.</sub>

<!-- tips_end -->

<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKPR1AGxJda+Boi40WnpsblpqEnRaCXgGSIJIGwBRAEEAEQBZJPQMegBhABkASUgACltIMwAOAFYASgMAVURKLmZnBmxEAEdseAwMAwBlfGwKOMgBKgwGWC5Z/AoSAHpQ8JowIJi4sF9/MAYPHUAkwhhnUlxJ6dm27UGh3GournxuMkhAFAJGJYj6ACYAAx/ABsYABAEYwOCACzQAEAZg4AIBHBBAC0mjYClxYLhcNwAstlkR1LBsAINExmMt2uMur1+hhltolBJXohltxsB4PMtam4EMgKu0ANbSSC4ADu+AUi1o/V+jFgmFIASM4I0iVSmSSXBSwWQaEgGHwNAlysuGG4zEgEgA7ABqeyhXjSFrII4AM1EskOkVK3HwiHEGGDaB5dXsDAo8G4l1G+LwOXoWyQ4q6lGQCQo2CwAAMWSQ2QTIGsInnJqI0BmeEGQ2GeZA2IhEGhVU20PITZcBJEYoh4AIvBoDH9NYUinqDehIDmMOI2JBJc4MP0iEvYO9cJv0KR54gAOS2zPwfBYXzi7sd3Czc2RCfHigDs8AGhQodwObEa7vpZafGzXNIALeBWXZUswnLEcDBsEg0EQM8uCtG17SdBxuFdFtTywfBPVrYN+gbDx+DwLlLldKR9z/TNIE9CgWHsEgSB/bdIgo08unw+tHkbZtW1Ic1qCifs6FnXNVwwddWIg9ZIipdpck1OBImSdIskgPZHHYLMdylQhg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vmca81/Tfhgy4e7tFZQpBAeQZ69ZiUDGBvnqG850brWsP+E/D+JghTy4oGQOCZEGhkQAFINyxAO6gBwojYiAPnG861JAva11gFHWA+APBxWQMO7nAIecJapyltLrWbsk5yzGOHhXWXY9a3sPHa4lPVbPVVST0ncC2AM+xun57vR2k9HaBgvZgQMEbTUP40J+1oBqFUH34I/jghqOCWgdoARDq7dCJtNR4R2gEHaYPVRwTAmBOt6EwIBDwlTzUAEDA0BVGhJ6AQXWpPwXtzYdrEOHPghL8CJtaAYTwkT9Wz0rbk9/HhMnkgzbgQe9oAIAEaAm0+9oDUOyJBE9VFoAwGoDA/hVBIMCaEw6O3QjHyX8ElfJNm6Z5Je9rPSCmNVgV46NAQMY/PcsgkyjYC36S5BggPEtq5m/NfED4JNeei/wq0QBKlJAZ3N0pV/ytwmiqwMBgJXSgFdA3UoG3Ua3TSXX0CAA== -->

<!-- internal state end -->

@gemini-code-assist
Copy link

Summary of Changes

Hello @marcusquinn, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a user experience issue where important post-installation instructions for the aidevops tool were being missed due to npm suppressing postinstall script output. To mitigate this, the changes introduce clearer documentation in the README regarding the two-step installation process and implement a proactive warning system within the CLI itself. This ensures users are always aware when their agents are out of sync with the CLI, guiding them to perform the necessary update.

Highlights

  • Documentation Update: The README has been updated to explicitly advise users to run aidevops update after npm install or bun install, clarifying that npm suppresses postinstall output which might hide important messages.
  • CLI Version Mismatch Warning: The CLI now includes a new feature that checks for a version mismatch between the CLI itself and the installed agents. If a discrepancy is detected or agents are not installed, a warning is displayed, prompting the user to run aidevops update.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@sonarqubecloud
Copy link

@github-actions
Copy link

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 260 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Wed Jan 14 03:00:54 UTC 2026: Code review monitoring started
Wed Jan 14 03:00:54 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 260
Wed Jan 14 03:00:54 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Wed Jan 14 03:00:56 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 260
  • VULNERABILITIES: 0

Generated on: Wed Jan 14 03:01:35 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request improves the user experience by adding advice to run aidevops update after installation. The README is updated with this instruction for npm and bun, and a warning is added to the CLI to notify users of version mismatches between the CLI and the agents. The changes are clear and address an important usability issue. I've suggested a small refactoring in aidevops.sh to improve the structure of the new version check logic.

Comment on lines +1706 to +1723
if [[ "$command" != "update" && "$command" != "upgrade" && "$command" != "u" ]]; then
local cli_version agents_version
cli_version=$(get_version)
if [[ -f "$AGENTS_DIR/VERSION" ]]; then
agents_version=$(cat "$AGENTS_DIR/VERSION")
else
agents_version="not installed"
fi

if [[ "$agents_version" == "not installed" ]]; then
echo -e "${YELLOW}[WARN]${NC} Agents not installed. Run: aidevops update"
echo ""
elif [[ "$cli_version" != "$agents_version" ]]; then
echo -e "${YELLOW}[WARN]${NC} Version mismatch - CLI: $cli_version, Agents: $agents_version"
echo -e " Run: aidevops update"
echo ""
fi
fi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The logic for checking agent versions can be slightly refactored for clarity and efficiency. By first checking if the agents are installed, you can avoid unnecessarily fetching the CLI version if they aren't. This also makes the logic more direct.

Suggested change
if [[ "$command" != "update" && "$command" != "upgrade" && "$command" != "u" ]]; then
local cli_version agents_version
cli_version=$(get_version)
if [[ -f "$AGENTS_DIR/VERSION" ]]; then
agents_version=$(cat "$AGENTS_DIR/VERSION")
else
agents_version="not installed"
fi
if [[ "$agents_version" == "not installed" ]]; then
echo -e "${YELLOW}[WARN]${NC} Agents not installed. Run: aidevops update"
echo ""
elif [[ "$cli_version" != "$agents_version" ]]; then
echo -e "${YELLOW}[WARN]${NC} Version mismatch - CLI: $cli_version, Agents: $agents_version"
echo -e " Run: aidevops update"
echo ""
fi
fi
if [[ "$command" != "update" && "$command" != "upgrade" && "$command" != "u" ]]; then
if [[ ! -f "$AGENTS_DIR/VERSION" ]]; then
echo -e "${YELLOW}[WARN]${NC} Agents not installed. Run: aidevops update"
echo ""
else
local cli_version agents_version
cli_version=$(get_version)
agents_version=$(cat "$AGENTS_DIR/VERSION")
if [[ "$cli_version" != "$agents_version" ]]; then
echo -e "${YELLOW}[WARN]${NC} Version mismatch - CLI: $cli_version, Agents: $agents_version"
echo -e " Run: aidevops update"
echo ""
fi
fi
fi

@augmentcode
Copy link

augmentcode bot commented Jan 14, 2026

🤖 Augment PR Summary

Summary: Improves post-install guidance so users don’t miss the required agents deployment step.
Changes: Updates README with explicit aidevops update instructions (noting npm postinstall output suppression) and adds a CLI warning when deployed agents are missing or version-mismatched.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

echo ""
fi

# Check if agents need updating (skip for update command itself)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note this warning runs for all commands except update/upgrade/u (including version/--version and help), which can be a breaking change if anyone parses those outputs in scripts.

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

@marcusquinn marcusquinn merged commit 3b231b3 into main Jan 14, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant