SharpClawCode
AGENTS.md97 starsChanged 3 months agoMITView on GitHub
Project: SharpClaw.Code.Agents Package: Microsoft.Agents.AI Registration: AgentsServiceCollectionExtensions.AddSharpClawAgents Each agent is ISharpClawAgent and AddSingleton, also exposed as ISharpClawAgent via GetRequiredService: All concrete agents inherit SharpClawAgentBase, which implements RunAsync(AgentRunContext, CancellationToken) by building AgentFrameworkRequest and calling IAgentFrameworkBridge.RunAsync. AgentFrameworkBridge: ProviderBackedAgentKernel (internal): AgentRunContext includes IToolExecutor, but AgentFrameworkBridge does not currently register SharpClaw tools with the Microsoft Agent Framework tool-calling pipeline; AgentRunResult.ToolResults is an empty array in that bridge. Tools remain available to DefaultTurnRunner consumers if a different agent implementation uses IToolExecutor; tests and parity harness exercise…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this agents.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
All concrete agents inherit SharpClawAgentBase, which implements RunAsync(AgentRunContext, CancellationToken) by building …
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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.
Files
Agents
Project: SharpClaw.Code.Agents
Package: Microsoft.Agents.AI
Registration: AgentsServiceCollectionExtensions.AddSharpClawAgents
Registered agents
Each agent is ISharpClawAgent and AddSingleton, also exposed as ISharpClawAgent via GetRequiredService:
PrimaryCodingAgent— used byDefaultTurnRunnerReviewerAgent,AdvisorAgent,SecurityReviewAgent,SubAgentWorker,RecoveryAgent
All concrete agents inherit SharpClawAgentBase, which implements RunAsync(AgentRunContext, CancellationToken) by building AgentFrameworkRequest and calling IAgentFrameworkBridge.RunAsync.
Framework bridge
AgentFrameworkBridge:
- Constructs
SharpClawFrameworkAgent(Microsoft Agent Framework) with a delegate that runsProviderBackedAgentKernel.ExecuteAsync. - Creates a framework session and calls
RunAsyncwith the user prompt. - On
ProviderExecutionException, logs and rethrows. - Builds
AgentRunResultwith output, usage, provider data, andRuntimeEvententries (AgentSpawnedEvent,AgentCompletedEvent).
Provider kernel
ProviderBackedAgentKernel (internal):
- Runs
IProviderRequestPreflight,IAuthFlowService,IModelProviderResolver,IModelProvider.StartStreamAsync - Aggregates stream text into output; may return placeholder text when unauthenticated or empty stream (see kernel implementation for exact conditions)
- Throws
ProviderExecutionExceptionfor missing provider, auth probe failure, or stream errors classified asProviderFailureKind
Tools and the agent path
AgentRunContext includes IToolExecutor, but AgentFrameworkBridge does not currently register SharpClaw tools with the Microsoft Agent Framework tool-calling pipeline; AgentRunResult.ToolResults is an empty array in that bridge.
Tools remain available to DefaultTurnRunner consumers if a different agent implementation uses IToolExecutor; tests and parity harness exercise IToolExecutor directly.
Metadata
ProviderBackedAgentKernel reads optional Metadata keys such as provider for provider name; DefaultTurnRunner puts resolved model info into AgentRunContext / assembler metadata (e.g. model).
For mock/parity scenarios, DeterministicMockModelProvider reads ParityMetadataKeys.Scenario in request metadata.
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
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.

