agentleFS
PeargentPeargent/peargent/.github/copilot-instructions.md

peargent

Copilot instructions82 starsChanged 12 months agoApache-2.0View on GitHub

Provide concise, high-signal PR reviews for the Peargent Python Agent Framework. Favor clarity over completeness and summary over inline comments. One PR = one review comment, unless there is a real bug. Do not behave like a linter. Only block a PR if one of these is true: Everything else is non-blocking. ✅ MUST use public APIs: ❌ FORBIDDEN (blocking): ✅ SHOULD use private APIs: ❌ Avoid public API re-exports in internal code. Rule of thumb: - Files in examples/,…

The file

We split this copilot-instructions.md into the rules it gives an agent

12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer one high-level summary comment

    line 14
  2. Distinctive:

    If the PR is acceptable, say “Looks good” and stop.

    line 20
  3. Distinctive:

    Do not behave like a linter.

    line 22
  4. Distinctive:

    Only block a PR if one of these is true:

    line 54
  5. Distinctive:

    Do not restate CI errors unless necessary

    line 69
  6. Distinctive:

    Do not explain test failures unless subtle

    line 70
  7. Distinctive:

    When in doubt: if users will see or copy the code, use public API

    line 106
  8. Distinctive:

    If all pass → approve.

    line 118
  9. Distinctive:

    If no blocking issues exist:

    line 124
  10. Distinctive:

    Write one short summary

    line 126
  11. Distinctive:

    Do NOT leave inline comments

    line 127
  12. Distinctive:

    Do NOT suggest optional improvements

    line 128

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Peargent – PR Review Rules

Goal

Provide concise, high-signal PR reviews for the Peargent Python Agent Framework.
Favor clarity over completeness and summary over inline comments.

One PR = one review comment, unless there is a real bug.


Review Style (STRICT)

  • Prefer one high-level summary comment
  • Inline comments are allowed ONLY for:
    • Bugs
    • Security issues
    • Broken imports
    • Public API breakage
  • If the PR is acceptable, say “Looks good” and stop.

Do not behave like a linter.


Comment Size Rules

  • Maximum 5 bullet points in a review
  • Any explanation longer than 3 lines must be collapsible
<details>
<summary>Details</summary>

Additional context here.
</details>

Do NOT Comment On

  • Formatting or style (Black handles this)
  • Naming preferences
  • Minor refactors
  • “Consider adding comments”
  • Suggestions already enforced by CI
  • Hypothetical improvements

Blocking Rules

Only block a PR if one of these is true:

  • Tests fail (python -m pytest)
  • Public API is broken
  • Internal modules are imported (peargent._core.*)
  • Missing type hints on public APIs
  • CI fails on supported Python versions

Everything else is non-blocking.


CI Awareness

  • Assume CI is authoritative
  • Do not restate CI errors unless necessary
  • Do not explain test failures unless subtle

Import Rule (CRITICAL)

For User-Facing Code (Examples, Documentation, etc)

✅ MUST use public APIs:

from peargent import create_agent, create_tool, create_pool
from peargent.models import groq, anthropic, openai

❌ FORBIDDEN (blocking):

from peargent._core.agent import Agent
from peargent._core.tool import Tool

For Internal Modules (Built-in Tools, Core Implementation)

✅ SHOULD use private APIs:

from peargent._core.tool import Tool
from peargent._core.agent import Agent

❌ Avoid public API re-exports in internal code.

Rule of thumb:

  • Files in examples/, user documentation → public API only
  • Files in peargent/tools/, peargent/_core/ → private API preferred
  • When in doubt: if users will see or copy the code, use public API

Review Checklist (Mental)

  • Imports work
  • Tests pass
  • Public API unchanged or intentionally updated
  • Types present
  • CI green

If all pass → approve.


Final Instruction

If no blocking issues exist:

  • Write one short summary
  • Do NOT leave inline comments
  • Do NOT suggest optional improvements

Minimal is correct.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.