agentleFS
MicrosoftKnown publishermicrosoft/waza/AGENTS.md

waza

AGENTS.md1.4k starsChanged 6 months agoMITView on GitHub

This repository contains waza, a CLI tool for evaluating Agent Skills. Go is the only implementation, and it lives in the repository root. (An early Python implementation was removed in February 2026.) When making changes, follow these guidelines to maintain consistency and quality. Keep issues and tracking up to date: - Tracking Issue: #66 - Waza Platform Roadmap - PRD: docs/PRD.md - When completing work, update the relevant GitHub issue - Reference issue numbers in commit messages (e.g., feat: Add…

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 6 mentionsApr 2026: 4 mentionsMay 2026: 5 mentionsJun 2026: 4 mentionsJul 2026: 7 mentionsAug 2026: 8 mentionsSep 2026: 1 mentionOct 2026: 4 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/waza repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/waza

The biggest 5 of 39 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 39

Talked about on GitHub and Bluesky (39 times).

On GitHub · 37

32 more on GitHub

On Bluesky · 2

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

13 rules. About 0 are common, 8 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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:

    When making changes, follow these guidelines to maintain consistency and quality.

    line 7
  2. Distinctive:

    When completing work, update the relevant GitHub issue

    line 14
  3. Distinctive:

    When adding or updating any feature:

    line 159
  4. Distinctive:

    When adding a new CLI command or flag:

    line 168
  5. Distinctive:

    When completing a feature:

    line 173
  6. Distinctive:

    When dashboard UI changes, regenerate screenshots:

    line 196
  7. Very specific:

    Add command handling in cmd/waza/main.go

    line 206
  8. Very specific:

    Add tests in *_test.go files

    line 208
  9. Distinctive:

    Update the root README.md

    line 209
  10. Very specific:

    Add a models.<Kind>GraderParameters type in internal/models/grader_params.go

    line 214
  11. Very specific:

    Add the matching case to Create() in internal/graders/grader.go

    line 215
  12. Very specific:

    Document in README and site/

    line 217
  13. Distinctive:

    All files → @spboyer @chlowell @richardpark-msft

    line 231

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md

Agent Instructions for waza Repository

Overview

This repository contains waza, a CLI tool for evaluating Agent Skills. Go is the only implementation, and it lives in the repository root. (An early Python implementation was removed in February 2026.)

When making changes, follow these guidelines to maintain consistency and quality.

Project Tracking

Keep issues and tracking up to date:

  • Tracking Issue: #66 - Waza Platform Roadmap
  • PRD: docs/PRD.md
  • When completing work, update the relevant GitHub issue
  • Reference issue numbers in commit messages (e.g., feat: Add tokens command #47)

Code Structure (Go)

cmd/waza/                  # CLI entrypoint
└── main.go                # Command parsing and execution
internal/
├── config/                # Configuration with functional options
├── execution/             # AgentEngine interface and implementations
│   ├── engine.go          # Core engine interface
│   ├── mock.go            # Mock engine for testing
│   └── copilot.go         # Copilot SDK integration
├── graders/               # Grader interface and Create() factory
│   ├── grader.go          # Grader interface + Create() switch over grader kinds
│   ├── text_grader.go     # Text grader (one file per grader kind)
│   └── file_grader.go     # File grader
├── models/                # Data structures
│   ├── spec.go            # EvalSpec (eval configuration)
│   ├── testcase.go        # TestCase (task definition)
│   ├── grader_params.go   # models.*GraderParameters types
│   └── outcome.go         # EvaluationOutcome (results)
├── orchestration/         # EvalRunner for coordinating execution
│   └── runner.go          # Eval orchestration
└── scoring/               # Skill-adherence heuristic scoring
    └── scoring.go         # Scorer / HeuristicScorer
go.mod
go.sum
Makefile                   # Build and test commands
.golangci.yml

Go Naming Conventions

The Go implementation uses idiomatic Go naming:

ConceptGo NameDefined in
Eval configurationEvalSpecinternal/models/spec.go
ExecutorAgentEngineinternal/execution/engine.go
GraderGraderinternal/graders/grader.go
TaskTestCaseinternal/models/testcase.go
ResultEvaluationOutcomeinternal/models/outcome.go

Key Go Patterns

Functional Options for Configuration

cfg := config.NewEvalConfig(spec,
    config.WithSpecDir("evals"),
    config.WithVerbose(true),
)

Builder for Engine Construction

// options may be nil in production; tests pass a NewCopilotClient factory
engine := execution.NewCopilotEngineBuilder(modelID, nil).Build()

Interface-based Design

type AgentEngine interface {
    Initialize(ctx context.Context) error
    Execute(ctx context.Context, req *ExecutionRequest) (*ExecutionResponse, error)
    Shutdown(ctx context.Context) error
    SessionUsage(sessionID string) *models.UsageStats
}

Grader Factory

// Create() switches over the models.*GraderParameters type to build a Grader
g, err := graders.Create(identifier, params)

Building and Testing

Requires Go 1.26 or later. The module targets go 1.26 (go.mod), which means Go 1.26 language features and standard library APIs are safe to use. If you want to rely on features or stdlib additions introduced after Go 1.26, first bump the go version in go.mod to that minimum version.

# Build
make build
# or: go build -o waza ./cmd/waza

# Run tests
make test
# or: go test -v ./...

# Lint
make lint
# or: golangci-lint run

# Run evaluation
./waza run examples/code-explainer/eval.yaml --context-dir examples/code-explainer/fixtures -v

Testing Requirements

Every PR must leave tests in a passing state. This is non-negotiable:

  • All existing tests must pass — run go test ./... before pushing. If your change breaks an existing test, fix it.
  • New features require new tests — every new command, flag, grader, or internal function needs test coverage. No shipping untested code.
  • Bug fixes require regression tests — if you fix a bug, add a test that would have caught it.
  • Playwright e2e tests — if you change the dashboard (web/), run cd web && npx playwright test --project=chromium and fix any failures.
  • CI is the gate — Build and Test Go Implementation and Lint Go Code must pass. PRs with failing tests do not merge.

CI/CD

Go CI is required for all PRs. Branch protection enforces:

  • Build and Test Go Implementation must pass
  • Lint Go Code must pass

The workflow is defined in .github/workflows/go-ci.yml.

Fixture Isolation

Each task execution gets a fresh temp workspace with fixtures copied in:

  1. Runner reads files from original --context-dir (fixtures folder)
  2. Executor creates new temp workspace (e.g., /tmp/waza-abc123/)
  3. Files copied into temp workspace
  4. Agent works in temp workspace (edits happen here)
  5. Temp workspace destroyed after task
  6. Next task starts fresh with original fixtures

The original fixtures directory is never modified. This ensures task isolation.

Documentation Requirements

Use Mermaid for all diagrams in markdown files (docs, design docs, plans). No ASCII art diagrams.

Always update documentation when making changes. The following files must be kept in sync:

FilePurposeUpdate When
README.mdMain project overviewAny CLI change, new feature
docs/PRD.mdProduct requirementsFeature scope changes
AGENTS.mdAgent coding guidelinesProcess/pattern changes
site/ (GitHub Pages)Public docs site (microsoft.github.io/waza)Any feature add/change
web/ (Dashboard)Interactive eval dashboardNew data in results JSON, new views needed

Documentation Checklist

When adding or updating any feature:

  • Check if site/src/content/docs/ pages need updating (graders, CLI reference, guides, eval YAML)
  • Check if the dashboard (web/) needs updates or new views to surface the feature
  • Update README.md if user-facing
  • Update the root README.md usage section if CLI changes
  • Build the docs site to verify: cd site && npm run build
  • Add example in appropriate docs
  • Update tracking issue #66 if related to roadmap

When adding a new CLI command or flag:

  • Add to site/src/content/docs/reference/cli.mdx
  • Add to site/src/content/docs/guides/ if it needs a guide
  • Update README.md Commands section

When completing a feature:

  • Close related GitHub issue with comment
  • Update tracking issue #66 checkbox
  • Verify GitHub Pages site reflects the change (pages deploy on merge to main)

Documentation Maintenance

Documentation must be updated in real-time as features change. This is enforced by Saul (Documentation Lead) who reviews all PRs for doc impact.

When to Update Docs

Change TypeRequired Doc Updates
New CLI command or flagREADME.md Commands section, site/ CLI reference, docs/GUIDE.md
Changed CLI behaviorREADME.md, site/ guides, docs/GUIDE.md, affected tutorials
New/changed dashboard viewsite/ dashboard guide, regenerate screenshots, docs/DEMO-GUIDE.md
Changed eval YAML schemaREADME.md YAML section, site/ eval-yaml reference, example files
New graderREADME.md "Available Grader Types" section, site/ graders page, docs/GUIDE.md
New sensei/dev featuresite/ sensei guide, README.md
New data in results JSONCheck if dashboard (web/) needs a new view, column, or chart to surface it

Screenshot Maintenance

When dashboard UI changes, regenerate screenshots:

cd web && npx playwright test e2e/screenshots.spec.ts --project=chromium

Screenshots are saved to docs/images/ and referenced throughout documentation.

Adding New Features

Adding a CLI Command

  1. Add command handling in cmd/waza/main.go
  2. Implement logic in appropriate internal/ package
  3. Add tests in *_test.go files
  4. Update the root README.md

Adding a Grader

  1. Implement the Grader interface in internal/graders/ (one file per grader kind)
  2. Add a models.<Kind>GraderParameters type in internal/models/grader_params.go
  3. Add the matching case to Create() in internal/graders/grader.go
  4. Add tests
  5. Document in README and site/

Adding an Engine (Executor)

  1. Implement AgentEngine interface in internal/execution/
  2. Add configuration options
  3. Add tests
  4. Document usage

Code Ownership and Review

CODEOWNERS File

The .github/CODEOWNERS file automatically assigns reviewers:

  • All files → @spboyer @chlowell @richardpark-msft

Branch Protection

PRs to main require:

  • Go CI must pass (Build and Test Go Implementation, Lint Go Code)
  • Auto-merge enabled for convenience

Commit Messages

Use conventional commits:

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation only
  • ci: CI/CD changes
  • chore: Maintenance tasks
  • refactor: Code restructuring

Reference issues: feat: Add tokens command #47

Files to Ignore

These are generated/temporary and should not be committed:

  • results.json - Eval results
  • coverage.txt - Test coverage
  • waza (binary) - Built executable

Quick Reference

Build and run

make build
./waza run examples/code-explainer/eval.yaml -v

Run tests

make test

Key CLI flags

  • -v, --verbose - Verbose output
  • -o, --output - Save results JSON
  • --context-dir - Fixtures directory

Epics and Priorities

See Tracking Issue #66 for the full roadmap.

EpicPriorityDescription
E1: Go CLI FoundationP0Core CLI commands
E2: Sensei EngineP0Compliance scoring
E3: Evaluation FrameworkP0Cross-model testing
E4: Token ManagementP1Budget tracking
E5: Waza SkillP1Conversational interface
E6: CI/CD IntegrationP1GitHub Actions
E7: AZD ExtensionP2azd packaging

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.