agentleFS
Microsoft AzureKnown publisherAzure/agentops/.github/copilot-instructions.md

agentops

Copilot instructions13 starsChanged 3 months agoMITView on GitHub

AgentOps Toolkit is a Python 3.11+ CLI, local Cockpit, and coding-agent skill set that helps teams answer two release questions for Microsoft Foundry agents: can we ship it, and where is the proof? Foundry runs the agent. AgentOps proves the release is ready with eval gates, Doctor readiness, CI/CD, release evidence, and trace-driven regression loops. Read these first for detailed architecture and product context: Do not add commands or flags unless the product discussion explicitly calls for them. Keep --help…

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read these first for detailed architecture and product context:

    line 9
  2. Very specific:

    Do not add commands or flags unless the product discussion explicitly calls for them.

    line 35
  3. Very specific:

    Keep src/agentops/cli/app.py thin: parse arguments, print concise output, and delegate to pipeline/ or services/.

    line 40
  4. Very specific:

    Keep src/agentops/core/ pure: no Azure SDK imports, no network calls.

    line 42
  5. Very specific:

    Use pathlib.Path for paths.

    line 43
  6. Distinctive:

    Prefer small focused functions and explicit user-friendly errors.

    line 44
  7. Distinctive:

    No import-time side effects beyond the existing dotenv loader behavior in the CLI entry point.

    line 46
  8. Distinctive:

    Use Foundry for hosted agents, cloud evaluations, traces, monitoring, red teaming, datasets, and operations.

    line 64
  9. Very specific:

    Use AgentOps for repo-controlled release readiness: eval config, CI gates, normalized artifacts, Doctor diagnostics, release evidence, …

    line 66
  10. Distinctive:

    Do not reinterpret these codes.

    line 82
  11. Distinctive:

    Use existing tests only. The standard full-suite command is:

    line 86
  12. Distinctive:

    Add focused unit tests for new schema, services, Doctor checks, CLI flags, and workflow template behavior.

    line 92

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

Copilot Instructions for AgentOps

AgentOps Toolkit is a Python 3.11+ CLI, local Cockpit, and coding-agent skill set that helps teams answer two release questions for Microsoft Foundry agents: can we ship it, and where is the proof? Foundry runs the agent. AgentOps proves the release is ready with eval gates, Doctor readiness, CI/CD, release evidence, and trace-driven regression loops.

Read these first for detailed architecture and product context:

  • AGENTS.md
  • docs/how-it-works.md
  • CONTRIBUTING.md
  • README.md

Current public CLI surface

  • agentops --version
  • agentops explain [COMMAND...] [--no-pager] [--format text|markdown|html] [--out PATH] [--open]
  • agentops init [--force] [--dir PATH] [--no-prompt] [--no-appinsights] [--azd-env NAME] [--project-endpoint URL] [--agent REF] [--dataset PATH] [--appinsights-connection-string STR]
  • agentops init show [--dir PATH] [--reveal-secrets]
  • agentops prompt pull [--config PATH] [--out PATH] [--project-endpoint URL] [--force] [--update-config|--no-update-config]
  • agentops eval analyze [--dir PATH] [--format text|markdown|json] [--out PATH]
  • agentops eval run [--config PATH] [--baseline PATH] [--output DIR]
  • agentops eval promote-traces --source PATH [--out PATH] [--max-rows N] [--label-mode self-similarity|pending] [--apply]
  • agentops report generate [--in PATH] [--out PATH]
  • agentops workflow analyze [--dir PATH] [--format text|markdown|json] [--out PATH]
  • agentops workflow generate [--force] [--dir PATH] [--kinds pr,dev,qa,prod,watchdog] [--platform github|azure-devops] [--deploy-mode auto|placeholder|azd|prompt-agent] [--doctor-gate critical|warning|none]
  • agentops skills install [--platform copilot|claude] [--from SOURCE] [--prompt] [--force] [--dir PATH]
  • agentops mcp serve
  • agentops doctor [--workspace PATH] [--config PATH] [--out PATH] [--lookback-days N] [--severity-fail SEVERITY] [--evidence-pack] [--evidence-out PATH]
  • agentops doctor explain [--no-pager] [--format text|markdown|html] [--out PATH] [--open]
  • agentops cockpit [--host HOST] [--port PORT] [--workspace PATH] [--no-preflight]

Do not add commands or flags unless the product discussion explicitly calls for them. Keep --help terse and put long-form manual content under explain.

Architecture rules

  • Keep src/agentops/cli/app.py thin: parse arguments, print concise output, and delegate to pipeline/ or services/.
  • Keep src/agentops/core/ pure: no Azure SDK imports, no network calls.
  • Use pathlib.Path for paths.
  • Prefer small focused functions and explicit user-friendly errors.
  • Azure SDK imports must be lazy inside runtime functions.
  • No import-time side effects beyond the existing dotenv loader behavior in the CLI entry point.

Where to put common changes:

ChangeLocation
agentops.yaml schemasrc/agentops/core/agentops_config.py
results.json schemasrc/agentops/core/results.py
Release evidence schemasrc/agentops/core/release_evidence.py
Eval executionsrc/agentops/pipeline/
Doctor checkssrc/agentops/agent/checks/
Release evidence writersrc/agentops/services/evidence_pack.py
Trace export to dataset candidatessrc/agentops/services/trace_promotion.py
Workflow generationsrc/agentops/services/cicd.py and src/agentops/templates/

Product principles

  • Use Foundry for hosted agents, cloud evaluations, traces, monitoring, red teaming, datasets, and operations.
  • Use AgentOps for repo-controlled release readiness: eval config, CI gates, normalized artifacts, Doctor diagnostics, release evidence, trace-to-dataset promotion, and Cockpit links to Foundry/Azure Monitor.
  • agentops doctor --evidence-pack is a readiness projection over existing signals; do not create a second exit-code contract.
  • Trace promotion is review-first. self-similarity labels support drift detection, not human-verified correctness.
  • Doctor and Cockpit stay read-only; data promotion belongs in services/CLI.

Exit codes

  • 0 = execution succeeded and all thresholds passed
  • 2 = execution succeeded but one or more thresholds or configured finding gates failed
  • 1 = runtime or configuration error

Do not reinterpret these codes.

Testing

Use existing tests only. The standard full-suite command is:

python -m pytest tests/ -x -q

Add focused unit tests for new schema, services, Doctor checks, CLI flags, and workflow template behavior. Azure SDK calls must be mocked or avoided in tests.

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.