-
-
Notifications
You must be signed in to change notification settings - Fork 90
feat(miner-hands): Agent-SDK CodingAgentDriver (query() loop) #4267
Copy link
Copy link
Closed
Labels
gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.gittensor:priorityMaintainer-selected Gittensor priority — scores a 1.5x multiplier.Maintainer-selected Gittensor priority — scores a 1.5x multiplier.help wantedExtra attention is neededExtra attention is needed
Description
Metadata
Metadata
Assignees
Labels
gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.gittensor:priorityMaintainer-selected Gittensor priority — scores a 1.5x multiplier.Maintainer-selected Gittensor priority — scores a 1.5x multiplier.help wantedExtra attention is neededExtra attention is needed
A second implementation of the
CodingAgentDriverinterface (#4262, must land first), this one driving the coding agent in-process via the Claude Agent SDK'squery()function rather than shelling out to a CLI binary. Verified viagrep -rn "claude-agent-sdk\|@anthropic-ai" package.json packages/*/package.json— zero matches. Neither@anthropic-ai/claude-agent-sdknor any@anthropic-ai/*package is a dependency anywhere in this repo today (rootpackage.json,packages/gittensory-engine/package.json,packages/gittensory-mcp/package.json,packages/gittensory-miner/package.jsonare all clean). This issue adds the dependency.Deliverables
@anthropic-ai/claude-agent-sdkas a dependency of the package hosting this driver (likelypackages/gittensory-engine, matching feat(miner-hands): define the CodingAgentDriver interface seam #4262'ssrc/miner/home) and wire an implementation around itsquery()async-iterable loop.query()'s streamed message/tool-use events into theCodingAgentDriverresult shape from feat(miner-hands): define the CodingAgentDriver interface seam #4262 — success/failure, changed files, transcript/usage summary — without leaking SDK-specific event types into the shared interface.PreToolUsehook maintainer-only issue maintainer: PreToolUse-hook-enforced house rules (deny even under bypassPermissions) #2343 describes ("a PreToolUse hook registered against the CodingAgentDriver's underlying session that intercepts every tool call BEFORE execution") — maintainer: PreToolUse-hook-enforced house rules (deny even under bypassPermissions) #2343 names this driver's SDK session as its intended hook attachment point, so the SDK's own hook/callback surface needs to be reachable from outside this module, not fully encapsulated.query()if none exists) so CI never makes a real model call — mirroring the injected-SpawnFntestability convention feat(miner-hands): define the CodingAgentDriver interface seam #4262 establishes for the CLI-subprocess driver.References
grep -rn "claude-agent-sdk\|@anthropic-ai" package.json packages/*/package.json— zero hits repo-wide, confirming this is a net-new dependencyCodingAgentDriverinterface this implements