You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CodingAgent step: dispatch to Claude Code unreliable, needs error handling and retry #367
The sentinel/coding-agent step dispatches to Claude Code via the Agent SDK. It exists but is unreliable — needs proper error handling, timeout management, output parsing, and retry logic.
Current Implementation
Rust dispatches to TypeScript sentinel/coding-agent via execute_ts_json
TypeScript wraps Claude Code via Agent SDK
ClaudeCodeProvider strips ANTHROPIC_API_KEY by default (uses OAuth from claude login)
captureTraining=true captures user→assistant pairs for training data
What Needs to Work
Reliable dispatch — handle Claude Code crashes, timeouts, rate limits
Output parsing — extract code changes, test results, commit hashes from Claude Code output
Retry on failure — if Claude Code fails, retry with better context (error message included)
Budget management — extendBudget for long tasks, don't let it die mid-fix
Structured results — not just "it ran" but "here's what changed, here's the test result"
Acceptance Criteria
# This should work end-to-end:
./jtag sentinel/coding-agent --task="Add a function fibonacci(n) to src/utils/math.ts that returns the nth fibonacci number" --verify=true
# Expected: writes code, runs tests, returns structured result with file paths and test output
Workspace bootstrap: 3 strategies (project worktree, persona workspace, sandbox) all implemented
Training capture: Interactions captured for LoRA pipeline
Progress events: Emitted via sentinel handle
The implementation in ClaudeCodeProvider.ts handles SDK quirks (non-zero exit after success, PATH resolution in daemon contexts, permission mode mapping).
Remaining edge cases that may warrant follow-up:
No retry logic on rate limits (could add exponential backoff)
extendBudget not implemented (SDK may not support it yet)
No timeout — relies on SDK's maxTurns/maxBudgetUsd
Closing as working. The persona-level tool calling issues that blocked this (#368, #371) are now fixed.
Activity
joelteply commentedon Mar 25, 2026
Tested e2e — sentinel/coding-agent works reliably:
--prompt="Create a file /tmp/test.txt"→ success, structured tool call resultThe implementation in
ClaudeCodeProvider.tshandles SDK quirks (non-zero exit after success, PATH resolution in daemon contexts, permission mode mapping).Remaining edge cases that may warrant follow-up:
extendBudgetnot implemented (SDK may not support it yet)Closing as working. The persona-level tool calling issues that blocked this (#368, #371) are now fixed.
Update gap analysis: #324 DONE, #367 DONE — Phase 3 progress
Update gap analysis: #324 DONE, #367 DONE — Phase 3 progress (#403)
fix(perception): page the TURN's room, not the persona's landing-room…
fix: read-cursor personas-are-readers + serving plan by-value (#368) …
fix(persona): room-kanban grounding is TURN-PARAMETRIC — a bench-room…