MsClaw.Core 0.5.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package MsClaw.Core --version 0.5.1
                    
NuGet\Install-Package MsClaw.Core -Version 0.5.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MsClaw.Core" Version="0.5.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MsClaw.Core" Version="0.5.1" />
                    
Directory.Packages.props
<PackageReference Include="MsClaw.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MsClaw.Core --version 0.5.1
                    
#r "nuget: MsClaw.Core, 0.5.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MsClaw.Core@0.5.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MsClaw.Core&version=0.5.1
                    
Install as a Cake Addin
#tool nuget:?package=MsClaw.Core&version=0.5.1
                    
Install as a Cake Tool

MsClaw

A .NET toolkit for building AI agents with persistent personalities. Powered by the GitHub Copilot SDK.

MsClaw.Core — a class library to scaffold minds and create configured Copilot SDK clients. MsClaw (global tool) — a CLI gateway that hosts a mind as a running service.

Install

Global Tool

dotnet tool install -g MsClaw
msclaw --help

Library

dotnet add package MsClaw.Core

Quick Start (CLI)

# Scaffold a new mind and start the gateway
msclaw mind scaffold /path/to/my-agent
msclaw start --mind /path/to/my-agent

Quick Start (Library)

using MsClaw.Core;

// Scaffold a new mind
var scaffold = new MindScaffold();
scaffold.Scaffold("/path/to/my-agent");

// Create a CopilotClient pointed at the mind
var client = MsClawClientFactory.Create("/path/to/my-agent");

// Load the mind's identity for session creation
var identity = new IdentityLoader();
var systemMessage = await identity.LoadSystemMessageAsync("/path/to/my-agent");

// Create a session with the mind's personality
var session = await client.CreateSessionAsync(new SessionConfig
{
    SystemMessage = new SystemMessageConfig
    {
        Mode = SystemMessageMode.Replace,
        Content = systemMessage
    }
});

// Chat
var response = await session.SendAndWaitAsync(new MessageOptions { Prompt = "Hello!" });

What is a mind?

A mind is a directory that defines who your agent is and what it remembers:

  • SOUL.md — Personality, mission, and boundaries
  • .working-memory/ — Persistent memory the agent reads and writes across sessions
  • .github/agents/ — Agent instruction files

CLI Commands

msclaw start --mind <path>      Start the gateway daemon
msclaw mind scaffold <path>     Scaffold a new mind directory
msclaw mind validate <path>     Validate a mind has required files
msclaw --version                Print version
msclaw --help                   Usage info

API (MsClaw.Core)

Type What it does
MindScaffold Scaffold(path) — creates the mind directory structure
MindValidator Validate(path) — checks a mind has required files
MindReader ReadFileAsync, ListDirectoryAsync — reads mind contents
IdentityLoader LoadSystemMessageAsync(mindRoot) — assembles SOUL.md + agents into a system message
MsClawClientFactory Create(mindRoot) — returns a configured CopilotClient
CliLocator ResolveCopilotCliPath() — finds the Copilot CLI binary

License

Apache 2.0 — see LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.0 82 3/8/2026
0.5.1 78 3/6/2026
0.5.0 85 3/6/2026
0.4.0 79 3/6/2026