Conversation
- Added comprehensive DSL v2 (Q/UQ/L) complete reference section - Included minimal mental model (builder lifecycle, lazy vs eager, grouping) - Documented all QueryBuilder methods with signatures, semantics, and failure modes - Added Golden Paths section with 5 common workflow patterns - Included Decision Guide for choosing the right API - Refactored existing content to reduce duplication - All examples are runnable or clearly marked as PSEUDOCODE - Table of Contents synchronized with all 26 sections - Added operational guidance, performance tips, reproducibility policy - Documented complete Query/QueryResult API surface - Included common pitfalls and solutions - Made document self-sufficient for LLM agents to build correct py3plex pipelines Co-authored-by: SkBlaz <10035780+SkBlaz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Rewrite and upgrade AGENTS.md for clarity and completeness
Rewrite AGENTS.md with comprehensive DSL v2 API reference and operational guidance
Jan 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The existing AGENTS.md lacked a complete, authoritative DSL v2 reference. Agents had to guess APIs or read source code, leading to hallucinated methods and incorrect usage patterns.
Changes
DSL v2 Complete Reference (1370 lines, 41% of doc)
.to_pandas(),.to_networkx(),.to_arrow(),.group_summary(),.counterexample()Operational Guidance
Structure & Deduplication
Example: DSL v2 Grouping Pattern
Before (ambiguous):
After (documented):
Documentation now specifies:
.per_layer()→ groups by layer (nodes only, raises for edges).top_k(k, key)→ keeps top-k per group (not global).coverage(mode="all")→ filters to items appearing in all groupsGroupingErrorotherwiseVerification
py3plex/dsl/builder.py(4600+ lines)Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.