Meridian.Tandem.Advanced 0.3.1

dotnet add package Meridian.Tandem.Advanced --version 0.3.1
                    
NuGet\Install-Package Meridian.Tandem.Advanced -Version 0.3.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="Meridian.Tandem.Advanced" Version="0.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Meridian.Tandem.Advanced" Version="0.3.1" />
                    
Directory.Packages.props
<PackageReference Include="Meridian.Tandem.Advanced" />
                    
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 Meridian.Tandem.Advanced --version 0.3.1
                    
#r "nuget: Meridian.Tandem.Advanced, 0.3.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 Meridian.Tandem.Advanced@0.3.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=Meridian.Tandem.Advanced&version=0.3.1
                    
Install as a Cake Addin
#tool nuget:?package=Meridian.Tandem.Advanced&version=0.3.1
                    
Install as a Cake Tool

Meridian.Tandem.Advanced

Advanced execution-policy and workspace APIs for Tandem pipelines.

dotnet add package Meridian.Tandem.Advanced

Use this package only when an application deliberately participates in runtime mechanics such as Harness workspace authority, output-acceptance policy, or invocation context. Ordinary pipeline state, participants, capabilities, interactions, and routes belong to Meridian.Tandem.

See the Tandem repository for usage and examples.

UseHarness(instructions, maxContextWindowTokens, maxOutputTokens, disableCompaction) configures context and output limits independently of lifecycle checkpoint capabilities. The limits also appear in runtime usage observations. WithCheckpoint remains optional.

Workspace reads use source line numbers (startLine, lineCount). Responses contain numbered lines; an oversized line can span fragments. Continue with the returned nextStartLine and nextCharacterOffset as startLine and characterOffset together when resuming mid-line.

Directory listings, Git status and grep paginate with plain integer offset/limit, returning nextOffset; grep's limit counts matching records, not characters. Grep defaults to case-insensitive regex matching. Inside a Git work tree it searches the files Git lists as tracked or untracked-but-not-ignored, so .gitignore applies; outside Git it prunes common build/dependency directories. Use literal, caseSensitive and includeExcluded to change those choices. An explicit directory or literal path prefix can select an ignored or pruned directory, but never bypasses workspace, Git-metadata or symlink restrictions. Globs use Microsoft.Extensions.FileSystemGlobbing (* and **); a slashless glob matches file names at any depth. Skipped files and oversized matches are reported; source reads retrieve long matching lines. Queries do not promise snapshots across repository edits: restart after edits.

Named commands run through MAF's LocalShellExecutor, as run_shell does, and capture up to 16 MiB per output stream. The model receives bounded stdout/stderr previews. When ledger tools are enabled and the action is persisted, diagnostics.entryCursor identifies captured output: use read_ledger_entry with that cursor and stream: "stdout" or "stderr", following nextOffset. captureTruncated means the hard capture ceiling was reached; previewTruncated only means more captured output is available. Without a ledger reference the response explicitly says retrieval is unavailable. Acceptance-policy process evidence is also bounded and marks truncation; full diagnostics remain in the ledger record.

Raw response parsing is an Advanced extension: import Tandem.Advanced, implement IAgentRawOutputDefinition<TState, TOutput>, and call WithRawOutput(definition, apply). Instructions are sent on the initial turn; rejection requests a corrected response in the same format without enabling a provider JSON response format. Intrinsic validation precedes contextual validation and acceptance. A parser throws InvalidOperationException for expected rejection; cancellation and other unexpected exceptions propagate. Adapters can supply valueType to preserve the authored identity in accepted observations and ledger records.

AgentCommand.Define(name, description, command) creates a parameterless fixed command. The overload taking arguments enables optional model-supplied arguments and publishes that list as an example argument array in the tool schema. Examples are guidance, not fixed appended values or an allowlist. The model may supply up to 16 strings of at most 200 characters each. Values are shell-quoted individually, but program flags can still change program behavior: grant this authority only where intended. Use the fixed command text for application-controlled flags and defaults.

Ledger retrieval is opt-in through the run ledger configuration; the bridge uses enableLedgerTools. Retrieval remains limited to the current run and readable persisted records.

Migration from 0.1.0

PacketCommand and PacketValidator have been removed. Use AgentCommand.Define directly; application-owned packet formats should validate their own transport shape and use that same command admission API. This is a breaking change for consumers of those two Advanced types. The raw-output API added after 0.1.0 is now in Tandem.Advanced rather than Core.

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.3.1 59 9/30/2026
0.3.0 61 9/29/2026
0.2.1 65 9/22/2026
0.2.0 69 9/21/2026
0.1.0 78 9/18/2026