Skip to content

docs(agents): Add Development Environment & Build section to AGENTS.md#73

Merged
kploch merged 6 commits into
mainfrom
cursor/development-environment-setup-5cec
May 21, 2026
Merged

docs(agents): Add Development Environment & Build section to AGENTS.md#73
kploch merged 6 commits into
mainfrom
cursor/development-environment-setup-5cec

Conversation

@kploch
Copy link
Copy Markdown
Contributor

@kploch kploch commented Mar 31, 2026

User description

Describe your changes

Adds a Development Environment & Build section to AGENTS.md documenting how any agent or contributor builds the repository — locally, in CI, or in a cloud sandbox.

  • Overview of the Ploch.Data library suite (net8.0 + net10.0; libraries + SampleApp demo, no server)
  • Required sibling repositories (mrploch-development, ploch-common) and the Nerdbank.GitVersioning shallow-clone constraint
  • Build / test / run commands using -p:UsePlochProjectReferences=true
  • Build gotchas (NBGV shallow clone, skipped SQL Server test, no global.json, GitHub Packages auth)
  • A short Cursor Cloud background agents subsection for the one genuinely Cursor-specific detail (the environment update script)

Design decisions

The section was originally titled "Cursor Cloud specific instructions", but its content is generic repo knowledge that applies to every agent and contributor — AGENTS.md is the agent-agnostic instructions file. It has been generalised to "Development Environment & Build", and the one truly Cursor-specific detail demoted to a subsection.

Three factual inaccuracies were found and corrected during review:

  • global.json — removed the claim that the repository contains a global.json file; it does not. The bullet now states the SDK is not pinned.
  • MSB4011 — removed the "duplicate import" gotcha; a verbose solution build (dotnet build -v:normal) emits zero MSB4011 warnings and Ploch.Packages.props is imported once.
  • UsePlochProjectReferences — clarified that this flag switches the SampleApp from PackageReference to ProjectReference; it is not a Debug-mode or repo-wide package-resolution switch.

Testing

dotnet restore + dotnet build ./Ploch.Data.slnx -p:UsePlochProjectReferences=true complete successfully (exit 0), verifying the documented commands. Docs-only change — no code paths affected.

Issue ticket number and link

N/A — development environment documentation.

Checklist before requesting a review

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics?
  • Will this be part of a product update? If yes, please write one phrase about this update.

Summary by Sourcery

Document development environment and build setup requirements for contributors and cloud agents working with the Ploch.Data repository.

Documentation:

  • Add development environment and build instructions for Ploch.Data, including required sibling repositories, build/test/run commands, and usage of project references.
  • Document common build and runtime gotchas such as shallow clone issues, skipped SQL Server tests, SDK requirements, and GitHub Packages authentication needs.
  • Describe Cursor Cloud background agent behavior in provisioning sibling repositories and installing required .NET SDKs.

Summary by CodeRabbit

  • Documentation
    • Added comprehensive Development Environment & Build guide covering framework requirements, repository setup, build/test/run commands, known build issues and troubleshooting, and workspace provisioning details.

Review Change Stack


CodeAnt-AI Description

Document how to build, test, and run the repository from a local, CI, or cloud workspace

What Changed

  • Adds a repo-wide guide for building Ploch.Data as a library suite, including the sample app
  • Lists the sibling repositories that must be present next to the workspace and explains the shallow-clone requirement for ploch-common
  • Shows the restore, build, test, and run commands needed to use source references instead of published packages
  • Calls out common setup issues, including missing .NET SDKs, the skipped SQL Server test, and when a GitHub Packages token is still required
  • Moves the Cursor Cloud note into its own subsection and explains the workspace setup script it uses

Impact

✅ Faster first-time setup
✅ Fewer build failures from missing repo dependencies
✅ Clearer local and cloud build instructions

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Co-authored-by: Krzysztof Ploch <kploch@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 31, 2026

📝 Walkthrough

Walkthrough

The PR adds a "Development Environment & Build" section to AGENTS.md that documents .NET library build setup, including target framework requirements, sibling repository dependencies with cloning constraints, recommended dotnet command sequences, common build issues and their solutions, and Cursor Cloud agent provisioning behavior.

Build and Development Environment Documentation

Layer / File(s) Summary
Build and development environment documentation
AGENTS.md
Documentation covering .NET library overview, sibling repository cloning with depth constraints, dotnet build/test/run commands using UsePlochProjectReferences, common build gotchas (Nerdbank.GitVersioning shallow clone failure, skipped SQL Server test, missing global.json, GitHub Packages tokens), and Cursor Cloud agent provisioning steps.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

A rabbit hops through README's glow,
"Build instructions," the docs now show!
With dotnet restore and tests that run,
The path to ploch-data is clearly spun.
From shallow clones to tokens worn,
Developer wisdom is newly born. 🐰📖

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The PR title accurately describes the main change—adding a Development Environment & Build section to AGENTS.md. It is concise, specific, and clearly summarizes the primary objective of the changeset.
Description check ✅ Passed The pull request description comprehensively covers all required template sections with detailed explanations of changes, design decisions, testing approach, and a completed checklist.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/development-environment-setup-5cec

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 and usage tips.

Copy link
Copy Markdown

@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 adds a 'Cursor Cloud specific instructions' section to AGENTS.md, providing an overview of the Ploch.Data library, required sibling repositories, and standardized build, test, and run commands. The review feedback suggests including the -p:UsePlochProjectReferences=true property in the dotnet run command for consistency and updating the 'No global.json' heading to accurately reflect that the file exists but is not used for SDK pinning.

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
@sonarqubecloud
Copy link
Copy Markdown

kploch and others added 2 commits May 20, 2026 04:45
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented May 20, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

kploch and others added 2 commits May 21, 2026 00:49
The section added by #73 was scoped "Cursor Cloud specific instructions",
but its content — library overview, sibling-repo setup, build/test/run
commands and build gotchas — applies to any agent or contributor.
Rename it to "Development Environment & Build" and move the genuinely
Cursor-Cloud-specific note into its own subsection.

Correct three inaccuracies found while reviewing the section:
- Remove the "repository contains a global.json file" claim; the repo
  has no global.json. The bullet now states the SDK is not pinned.
- Remove the MSB4011 "Ploch.Packages.props imported twice" gotcha; a
  verbose solution build emits zero MSB4011 warnings and the file is
  imported once.
- Clarify that UsePlochProjectReferences switches the SampleApp from
  PackageReference to ProjectReference; it is not a Debug-mode or
  repo-wide package-resolution switch.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@kploch kploch marked this pull request as ready for review May 21, 2026 00:40
@qodo-code-review
Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@kploch kploch changed the title docs: add Cursor Cloud specific instructions to AGENTS.md docs(agents): Add Development Environment & Build section to AGENTS.md May 21, 2026
@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented May 21, 2026

Reviewer's Guide

Adds a Development Environment & Build section to AGENTS.md documenting how to set up and build Ploch.Data (including sibling repo requirements, project reference usage, and Cursor Cloud background agent behavior).

File-Level Changes

Change Details Files
Document development environment, build/run commands, and gotchas for Ploch.Data, including Cursor Cloud-specific behavior.
  • Add a Development Environment & Build section describing the Ploch.Data library suite and lack of long-running services
  • Document required sibling repositories mrploch-development and ploch-common, including non-shallow clone requirement for ploch-common due to Nerdbank.GitVersioning
  • Provide example dotnet restore/build/test/run commands using UsePlochProjectReferences=true to build entirely from source
  • List build and test gotchas such as NBGV shallow clone errors, skipped SQL Server test, missing global.json SDK pinning, and GitHub Packages NuGet authentication requirements
  • Describe how Cursor Cloud background agents provision the workspace and install required .NET SDKs
AGENTS.md

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

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="AGENTS.md" line_range="827" />
<code_context>
+
+### Cursor Cloud background agents
+
+Cursor Cloud background agents provision the workspace with an environment update script (configured in Cursor, not committed to this repo). It clones the sibling repositories listed above, runs `git fetch --unshallow` on `ploch-common`, and installs the .NET 8.0 and 10.0 SDKs.
</code_context>
<issue_to_address>
**issue (typo):** Fix plural/singular mismatch between “background agents” and “It clones…”.

The subject is plural (“Cursor Cloud background agents”), but the next sentence uses a singular pronoun (“It clones…”). Please make them agree, e.g. change to “They clone the sibling repositories…” or make the subject singular.
</issue_to_address>

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.

Comment thread AGENTS.md Outdated
Attach the cloning/SDK-install clause directly to "environment update
script" with a relative clause, removing the singular "It" that read as
a mismatch with the plural "background agents" subject.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codeant-ai
Copy link
Copy Markdown
Contributor

codeant-ai Bot commented May 21, 2026

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added the size:M This PR changes 30-99 lines, ignoring generated files label May 21, 2026
@codeant-ai
Copy link
Copy Markdown
Contributor

codeant-ai Bot commented May 21, 2026

CodeAnt AI finished reviewing your PR.

@sonarqubecloud
Copy link
Copy Markdown

@kploch kploch merged commit 4f49dec into main May 21, 2026
7 checks passed
@kploch kploch deleted the cursor/development-environment-setup-5cec branch May 21, 2026 00:51
@bito-code-review
Copy link
Copy Markdown

Bito Automatic Review Skipped – PR Already Merged

Bito scheduled an automatic review for this pull request, but the review was skipped because this PR was merged before the review could be run.
No action is needed if you didn't intend to review it. To get a review, you can type /review in a comment and save it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants