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…
In this repository2 other files it gives its agents.
- create-releaseSkill
- update-agent-harnessSkill
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
- Distinctive: line 23
Prefer strong typing and type hints
- Distinctive: line 24
Prefer simple code for fast iteration
- Distinctive: line 25
Prefer modular, testable components
- Distinctive: line 26
Prefer pure functions where possible
- Distinctive: line 27
Prefer explicit over implicit
- Distinctive: line 28
Prefer designs where invalid states are unrepresentable
- Distinctive: line 29
Prefer high-order functions like map, filter, reduce over loops
- Distinctive: line 30
Prefer immutable data structures where possible
- Very specific: line 40
When a docstring is necessary, keep it short and use Google style.
- Distinctive: line 59
Do NOT worry about backward compatibility unless explicitly stated
- Distinctive: line 60
Do NOT worry about breaking changes
- Distinctive: line 65
Prefer clear visualizations over complex statistical jargon
- Distinctive: line 66
Use pandas and plotly for data manipulation and visualization
≈ “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
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
uvfor dependency management: e.g.uv add <package>to add packages,uv run <command>to run commands - Uses
pre-commitfor 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 allLinting 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
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.

