Thanks to visit codestin.com
Credit goes to github.com

Skip to content

.NET: Harness code act skill sample#5930

Merged
westey-m merged 9 commits into
microsoft:mainfrom
westey-m:harness-code-act-skill-sample
May 19, 2026
Merged

.NET: Harness code act skill sample#5930
westey-m merged 9 commits into
microsoft:mainfrom
westey-m:harness-code-act-skill-sample

Conversation

@westey-m

Copy link
Copy Markdown
Contributor

Motivation and Context

Description

  • Add a harness sample that demonstrates code act and skills together.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings May 18, 2026 18:57
@moonbox3 moonbox3 added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net labels May 18, 2026
@github-actions github-actions Bot changed the title Harness code act skill sample .NET: Harness code act skill sample May 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Harness sample (Harness_Step04_CodeExecution) demonstrating a HarnessAgent with all features enabled, combined with the Hyperlight CodeAct provider (sandboxed Python execution) and a file-based regex-tester skill.

Changes:

  • New sample project Harness_Step04_CodeExecution with Program.cs, README.md, and .csproj that copies skills/** to output.
  • New file-based skill regex-tester (SKILL.md plus a regex cheatsheet reference).
  • Registers the new package Hyperlight.HyperlightSandbox.Guest.Python (0.4.0) in Directory.Packages.props and adds the project to the solution.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
dotnet/samples/02-agents/Harness/Harness_Step04_CodeExecution/Program.cs Wires up HarnessAgent + HyperlightCodeActProvider with instructions and console runner.
dotnet/samples/02-agents/Harness/Harness_Step04_CodeExecution/Harness_Step04_CodeExecution.csproj New sample csproj; references Hyperlight + Foundry + Harness projects; copies skills folder to output.
dotnet/samples/02-agents/Harness/Harness_Step04_CodeExecution/README.md Sample usage instructions and feature table.
dotnet/samples/02-agents/Harness/Harness_Step04_CodeExecution/skills/regex-tester/SKILL.md Skill metadata and workflow for regex testing via execute_code.
dotnet/samples/02-agents/Harness/Harness_Step04_CodeExecution/skills/regex-tester/references/regex-cheatsheet.md Python regex cheatsheet referenced by the skill.
dotnet/Directory.Packages.props Adds central version for Hyperlight.HyperlightSandbox.Guest.Python 0.4.0.
dotnet/agent-framework-dotnet.slnx Registers the new sample project in the solution.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated Code Review

Reviewers: 4 | Confidence: 93% | Result: All clear

Reviewed: Correctness, Security Reliability, Test Coverage, Design Approach


Automated review by westey-m's agents

@westey-m westey-m enabled auto-merge May 19, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants