Skip to content

Feature: CLI context orchestrator #8

@PredictabilityAtScale

Description

@PredictabilityAtScale

Context

Implements the tooling workflow from plans/feature-cli-context-orchestrator.md, allowing curated CLI utilities to feed IssueTriage assessments.

Goals

  • Tool registration via settings plus curated defaults shipped with the extension.
  • Panel UI and command palette entry to run tools, view outputs, and rerun on demand.
  • Structured output capture with normalization and storage for downstream consumers.
  • Telemetry instrumentation (success/failure/duration) respecting opt-out preferences.

Acceptance Criteria

  • Workspace can register CLI tools through issuetriage.cliTools with command, timeout, output type, and optional parameters.
  • Panel surfaces registered tools, runs them in a controlled environment, and displays the latest results with rerun support.
  • Assessment flow can request the most recent tool output by logical name when composing prompts.
  • Execution enforces runtime/output limits, sanitizes environment, and returns actionable errors without crashing.
  • Tool result updates emit events for other components to subscribe to.

Dependencies

  • Existing SettingsService and StateService for persistence.
  • Telemetry and notification mechanisms shared with other features.

Notes

  • Use child_process.spawn with shell off by default; document opt-in shell behavior and security warnings.
  • Store artifacts in managed temp directories with TTL handling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions