Skip to content

feat(systemd): add agy-daemon.service unit file with security hardening#375

Merged
sheepdestroyer merged 1 commit into
masterfrom
feat/add-agy-daemon.service
Jul 24, 2026
Merged

feat(systemd): add agy-daemon.service unit file with security hardening#375
sheepdestroyer merged 1 commit into
masterfrom
feat/add-agy-daemon.service

Conversation

@sheepdestroyer

@sheepdestroyer sheepdestroyer commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Adds host AGY daemon systemd unit template (scripts/agy-daemon.service) with security hardening directives.

Summary by Sourcery

New Features:

  • Introduce a systemd service unit file template for running the AGY daemon on host systems.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@sourcery-ai

sourcery-ai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adds a new systemd unit template for the host AGY daemon with security-hardening options configured in the service definition.

File-Level Changes

Change Details Files
Introduce systemd unit template for AGY daemon with hardened security settings.
  • Create a new agy-daemon.service unit file template under the scripts directory
  • Configure the service to run the AGY daemon process with systemd-managed lifecycle
  • Apply security-hardening directives (e.g., restricted capabilities, filesystem/IPC isolation, resource limits, and strict restart/timeout policies) to the unit definition
scripts/agy-daemon.service

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@sheepdestroyer, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 26 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 6b00c73f-55ca-409d-99a4-b37b251fcf34

📥 Commits

Reviewing files that changed from the base of the PR and between 028a6f4 and d256264.

📒 Files selected for processing (1)
  • scripts/agy-daemon.service
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/add-agy-daemon.service

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@sheepdestroyer sheepdestroyer left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

PR Global Review — #375

  • Scope: scripts/agy-daemon.service (26 lines, 1 new file)
  • Functions & Directives Analyzed: Systemd unit header, ExecStart path using %h/dev/LLM-Routing/scripts/host_agy_daemon.py, security isolation (NoNewPrivileges=yes, ProtectSystem=strict, ProtectHome=read-only, ReadWritePaths=%h/.gemini /tmp).
  • Test Verification: 363 passed, 0 failures.
  • Verdict: READY TO MERGE

@sheepdestroyer
sheepdestroyer merged commit 0fb3bf0 into master Jul 24, 2026
7 of 8 checks passed
@sheepdestroyer
sheepdestroyer deleted the feat/add-agy-daemon.service branch July 24, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant