Skip to content

Add sentinel/coding-agent README for tool schema discovery (#370) - #407

Merged
joelteply merged 1 commit into
mainfrom
fix/coding-agent-readme-370
Mar 25, 2026
Merged

joelteply merged 1 commit into
mainfrom
fix/coding-agent-readme-370

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

  • sentinel/coding-agent had no README, so the list command returned empty description and no params
  • Groq/Together models hallucinated param types (string instead of number/boolean), causing 400 Bad Request from provider-side schema validation
  • Added README with proper param documentation matching the TypeScript interface

Partial fix for #370 — tool discovery now works, Groq validation errors should resolve.

Test plan

  • ./jtag list --includeDescription=true shows proper description
  • Schema generator already had correct types (maxTurns: number, captureTraining: boolean)
  • ./jtag sentinel/coding-agent --prompt="test" works e2e

🤖 Generated with Claude Code

…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.
Copilot AI review requested due to automatic review settings March 25, 2026 08:31
@joelteply
joelteply merged commit f0e9b9a into main Mar 25, 2026
@joelteply
joelteply deleted the fix/coding-agent-readme-370 branch March 25, 2026 08:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md with usage examples.
  • Documents parameters and expected result fields for sentinel/coding-agent.
  • Marks the command as ai-safe for persona/tool usage contexts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +29 to +31
- **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"

Copilot AI Mar 25, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
- **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)

Copilot uses AI. Check for mistakes.
Comment on lines +35 to +36
- **personaId** (optional): `string` - Persona UUID for workspace resolution and identity
- **repoPath** (optional): `string` - Path to external git repo (triggers project worktree workspace)

Copilot AI Mar 25, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
- **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)

Copilot uses AI. Check for mistakes.
Comment on lines +42 to +52
- **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

Copilot AI Mar 25, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
- **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)

Copilot AI Mar 25, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To reduce caller/tooling ambiguity, consider documenting allowedTools as string[] (it’s string[] in the TypeScript params) rather than the generic array type.

Suggested change
- **allowedTools** (optional): `array` - Allowed tools (provider-specific names)
- **allowedTools** (optional): `string[]` - Allowed tools (provider-specific names)

Copilot uses AI. Check for mistakes.
## Parameters

- **prompt** (required): `string` - Task description for the coding agent
- **provider** (optional): `string` - Agent provider: "claude-code" (default). Future: "codex", "aider"

Copilot AI Mar 25, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
- **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)

Copilot uses AI. Check for mistakes.
joelteply added a commit that referenced this pull request Aug 14, 2026
… 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants