Repository navigation
Add sentinel/coding-agent README for tool schema discovery (#370) - #407
Conversation
…ry (#370) Without the README, the command showed empty description and no params in the tool spec. Groq/Together models hallucinated param types, causing 400 Bad Request validation failures from provider-side schema validation.
There was a problem hiding this comment.
Pull request overview
Adds missing documentation for the sentinel/coding-agent command so command/tool discovery (list --includeDescription/--includeSignature) can surface a meaningful description and parameter guidance, reducing model confusion during tool calls.
Changes:
- Introduces
src/commands/sentinel/coding-agent/README.mdwith usage examples. - Documents parameters and expected result fields for
sentinel/coding-agent. - Marks the command as
ai-safefor persona/tool usage contexts.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - **maxTurns** (optional): `number` - Maximum conversation turns (default: 25) | ||
| - **maxBudgetUsd** (optional): `number` - Maximum budget in USD (default: 5.0) | ||
| - **permissionMode** (optional): `string` - "default", "acceptEdits", or "bypassPermissions" |
There was a problem hiding this comment.
These defaults/allowed values appear inaccurate or incomplete across providers: maxTurns is not defaulted in this command and the local-agent provider falls back to 10 turns when unset; maxBudgetUsd is ignored by some providers; and permissionMode also supports plan/dontAsk in the Claude Code providers. Consider removing the hard-coded defaults or qualifying them per provider, and documenting the full supported permissionMode set.
| - **maxTurns** (optional): `number` - Maximum conversation turns (default: 25) | |
| - **maxBudgetUsd** (optional): `number` - Maximum budget in USD (default: 5.0) | |
| - **permissionMode** (optional): `string` - "default", "acceptEdits", or "bypassPermissions" | |
| - **maxTurns** (optional): `number` - Maximum conversation turns; if unset, the default may vary by provider (e.g., `local-agent` falls back to 10 turns) | |
| - **maxBudgetUsd** (optional): `number` - Maximum budget in USD; may be ignored by some providers | |
| - **permissionMode** (optional): `string` - Permission behavior: "default", "acceptEdits", "bypassPermissions", "plan", or "dontAsk" (support for specific modes is provider-dependent; "plan"/"dontAsk" are supported by Claude Code providers) |
| - **personaId** (optional): `string` - Persona UUID for workspace resolution and identity | ||
| - **repoPath** (optional): `string` - Path to external git repo (triggers project worktree workspace) |
There was a problem hiding this comment.
repoPath is documented as triggering a project worktree workspace, but the server implementation only takes that path when both repoPath and personaId are set. Please document that personaId is required when using repoPath, otherwise repoPath will be ignored and a sandbox/persona workspace strategy will be used instead.
| - **personaId** (optional): `string` - Persona UUID for workspace resolution and identity | |
| - **repoPath** (optional): `string` - Path to external git repo (triggers project worktree workspace) | |
| - **personaId** (optional): `string` - Persona UUID for workspace resolution and identity; required alongside `repoPath` to enable project worktree workspaces | |
| - **repoPath** (optional): `string` - Path to external git repo; only used when **both** `repoPath` and `personaId` are set (otherwise ignored and a sandbox/persona workspace strategy is used) |
| - **success**: `boolean` - Whether the agent completed successfully | ||
| - **text**: `string` - Agent's final text output | ||
| - **agentSessionId**: `string` - Session ID for resume capability | ||
| - **toolCalls**: `array` - All tool calls made during the session | ||
| - **interactions**: `array` - Full interaction history (for training) | ||
| - **totalCostUsd**: `number` - Total cost in USD | ||
| - **numTurns**: `number` - Number of conversation turns | ||
| - **durationMs**: `number` - Total execution time in milliseconds | ||
| - **model**: `string` - Model used | ||
| - **workspaceDir**: `string` - Resolved workspace directory | ||
| - **branch**: `string` - Git branch created for the workspace |
There was a problem hiding this comment.
The result section omits the error field that the command can return on failures (SentinelCodingAgentResult.error). Please document it so callers know where to look for failure details.
| - **cwd** (optional): `string` - Working directory for the agent | ||
| - **systemPrompt** (optional): `string` - System prompt override | ||
| - **model** (optional): `string` - Model override (e.g., "sonnet", "opus") | ||
| - **allowedTools** (optional): `array` - Allowed tools (provider-specific names) |
There was a problem hiding this comment.
To reduce caller/tooling ambiguity, consider documenting allowedTools as string[] (it’s string[] in the TypeScript params) rather than the generic array type.
| - **allowedTools** (optional): `array` - Allowed tools (provider-specific names) | |
| - **allowedTools** (optional): `string[]` - Allowed tools (provider-specific names) |
| ## Parameters | ||
|
|
||
| - **prompt** (required): `string` - Task description for the coding agent | ||
| - **provider** (optional): `string` - Agent provider: "claude-code" (default). Future: "codex", "aider" |
There was a problem hiding this comment.
The provider docs imply only claude-code exists and other providers are “future”, but the runtime registry currently includes additional provider IDs (e.g. local-agent, local-claude-code). Please update this line to reflect the actual supported provider IDs so tool discovery/docs don’t mislead callers.
| - **provider** (optional): `string` - Agent provider: "claude-code" (default). Future: "codex", "aider" | |
| - **provider** (optional): `string` - Agent provider: "claude-code" (default), "local-agent", or "local-claude-code" (additional providers such as "codex", "aider" may be added in the future) |
… NOWHERE for days (#407) (#2289) The memory API moved from `&str` to `&PersonaRef` — `load_corpus`, `multi_layer_recall` and `consciousness_context` all take the typed ref now (an identity is a type, not loose text). This test file kept handing them the bare `PERSONA_ID` literal, so the test binary stopped compiling: 12 × E0308 across 12 call sites. WHY IT LOOKED LIKE A WINDOWS PROBLEM AND WASN'T. The macOS job runs `cargo test -p continuum-core --lib` — lib only. The Windows job runs `cargo check -p continuum-core --lib --tests`. Only the second one builds test binaries, so only Windows went red, for days, on every canary push, and the card that tracked it (#407) reads "Continuum Windows CI has been RED". It was never Windows-specific and it was never a failing test: the binary did not compile on any platform, and `cargo check --tests` reproduces all 12 errors on macOS in one command. Meanwhile all 16 of these tests — semantic recall, associative recall by tags, cross-context, decay-resurface, multi-layer convergence, corpus replacement — had not executed anywhere. A red Windows column read as a platform quirk; what it actually meant was that a whole recall-accuracy suite was dark. Fix: one `persona()` constructor beside `PERSONA_ID`, and the 12 sites pass `&persona()`. The id string still lives in exactly one place, and the struct fields that legitimately want a `String` still use `PERSONA_ID.into()` — six of those, untouched. The one call that deliberately passes an unknown persona to assert an error keeps doing exactly that, now typed. Verified: `cargo check -p continuum-core --tests` clean (was 12 errors), and `cargo test -p continuum-core --test memory_recall_accuracy` → 16 passed, 0 failed. Compiling was not the bar; they pass. This unblocks the Windows column for every open PR — it is the only failure on #2286, #2287 and #2288, none of which touch this file. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Summary
Partial fix for #370 — tool discovery now works, Groq validation errors should resolve.
Test plan
./jtag list --includeDescription=trueshows proper description./jtag sentinel/coding-agent --prompt="test"works e2e🤖 Generated with Claude Code