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
- Distinctive: line 14
Prefer one high-level summary comment
- Distinctive: line 20
If the PR is acceptable, say “Looks good” and stop.
- Distinctive: line 22
Do not behave like a linter.
- Distinctive: line 54
Only block a PR if one of these is true:
- Distinctive: line 69
Do not restate CI errors unless necessary
- Distinctive: line 70
Do not explain test failures unless subtle
- Distinctive: line 106
When in doubt: if users will see or copy the code, use public API
- Distinctive: line 118
If all pass → approve.
- Distinctive: line 124
If no blocking issues exist:
- Distinctive: line 126
Write one short summary
- Distinctive: line 127
Do NOT leave inline comments
- Distinctive: line 128
Do NOT suggest optional improvements
≈ “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.
Files
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 ToolFor 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.
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
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.

