agentleFS
MicrosoftKnown publishermicrosoft/BC-Bench/.github/copilot-instructions.md

BC-Bench

Copilot instructions57 starsChanged 2 months agoMITView on GitHub

This is a benchmark for evaluating coding agents on real-world Business Central (AL) development tasks, inspired by SWE-Bench. Unlike traditional model benchmarks, BC-Bench is designed to help select models and rapidly iterate on mcp servers, custom instruction/agents, etc for engineers. The repository contains: Preserve one-way dependency flow from orchestration toward lower-level abstractions. Keep domain and result models independent of runtime code. CLI commands are composition roots: they select concrete agents and inject them into evaluation pipelines through AgentRunner; pipelines must…

The file

Show its rules and text

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

13 rules. About 0 are common, 12 are distinctive, and 1 is 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.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer strong typing and type hints

    line 23
  2. Distinctive:

    Prefer simple code for fast iteration

    line 24
  3. Distinctive:

    Prefer modular, testable components

    line 25
  4. Distinctive:

    Prefer pure functions where possible

    line 26
  5. Distinctive:

    Prefer explicit over implicit

    line 27
  6. Distinctive:

    Prefer designs where invalid states are unrepresentable

    line 28
  7. Distinctive:

    Prefer high-order functions like map, filter, reduce over loops

    line 29
  8. Distinctive:

    Prefer immutable data structures where possible

    line 30
  9. Very specific:

    When a docstring is necessary, keep it short and use Google style.

    line 40
  10. Distinctive:

    Do NOT worry about backward compatibility unless explicitly stated

    line 59
  11. Distinctive:

    Do NOT worry about breaking changes

    line 60
  12. Distinctive:

    Prefer clear visualizations over complex statistical jargon

    line 65
  13. Distinctive:

    Use pandas and plotly for data manipulation and visualization

    line 66

≈ “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

Repository: microsoft/BC-Bench

This is a benchmark for evaluating coding agents on real-world Business Central (AL) development tasks, inspired by SWE-Bench. Unlike traditional model benchmarks, BC-Bench is designed to help select models and rapidly iterate on mcp servers, custom instruction/agents, etc for engineers. The repository contains:

  • Dataset: Benchmark entries following SWE-Bench schema with BC-specific adjustments
  • Python Package (src/bcbench/): CLI tools, agent implementations, and validation utilities
  • PowerShell Scripts (scripts/): Environment setup and dataset verification using AL-GO/BCContainerHelper
  • Tools (tools/): Ad-hoc scripts for GitHub Artifacts download, etc
  • Agent Evaluations: Focuses on GitHub Copilot CLI and Claude Code
  • Experiments: MCP Servers, custom instructions, custom agents, skills, etc. and their performance on the benchmark
  • Notebooks (notebooks/): Analysis and visualization of benchmark results

Key Context

  • Primary language: Python (with AL/Business Central as the target evaluation language)
  • Uses uv for dependency management: e.g. uv add <package> to add packages, uv run <command> to run commands
  • Uses pre-commit for code quality checks (ruff linting/formatting, trailing whitespace, etc.)

Categories

BC-Bench is category-based and designed to grow over time. It currently has two categories, bug-fix and test-generation. They share the same dataset tasks and execution-based setup, but use different prompts, expected outputs, and evaluation pipelines. Future categories such as code-review can be added within the same overall benchmark structure, though they may require different inputs, setup, or evaluation methods.

Coding Patterns and Guidelines

  • Prefer strong typing and type hints
  • Prefer simple code for fast iteration
  • Prefer modular, testable components
  • Prefer pure functions where possible
  • Prefer explicit over implicit
  • Prefer designs where invalid states are unrepresentable
  • Prefer high-order functions like map, filter, reduce over loops
  • Prefer immutable data structures where possible

Architecture design conventions

Preserve one-way dependency flow from orchestration toward lower-level abstractions. Keep domain and result models independent of runtime code. CLI commands are composition roots: they select concrete agents and inject them into evaluation pipelines through AgentRunner; pipelines must not select agent implementations.

bcbench.types is the central category registry. Extend EvaluationCategory for category-owned mappings such as datasets, pipelines, results, and scoring behavior instead of duplicating those decisions elsewhere. Keep imports following the existing direction and avoid circular dependencies.

Readable code over documentation or comments

Function names should be self-explanatory. Do NOT add docstrings to functions unless absolutely necessary. When a docstring is necessary, keep it short and use Google style. Include only useful sections such as Args: and Returns:; skip details that are obvious from names and type hints.

Bad:

def test_full_metrics_flow_to_success_result(self, sample_context):
    """Test parsing metrics, setting them on context, and creating a success result."""

Good:

def test_full_metrics_flow_to_success_result(self, sample_context):
    # No docstring needed - the name says it all

Linting and formatting

Ruff is the single source of truth (uv run ruff check --fix, uv run ruff format); config lives in pyproject.toml. Lean on ruff's default rule set rather than growing extend-select, and prefer fixing violations over suppressing them. If a violation is genuinely intentional, use a targeted # noqa: RULE - rationale at that line instead of a repo-wide ignore entry.

No Backward compatibility

  • Do NOT worry about backward compatibility unless explicitly stated
  • Do NOT worry about breaking changes

Notebooks

  • User is a software engineer, not a statistician — explain statistical concepts in plain terms
  • Challenge or question statistical methods when appropriate (e.g., sample size, assumptions, alternatives)
  • Prefer clear visualizations over complex statistical jargon
  • Use pandas and plotly for data manipulation and visualization

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.