Skip to content

feat: v2 - ai assistant - tangent researcher subagent#2361

Draft
maxy-shpfy wants to merge 1 commit into
06-02-poc_scaffold_basic_tangent_dashboard_uxfrom
06-02-feat_v2_-_ai_assistant_-_tangent_researcher_subagent
Draft

feat: v2 - ai assistant - tangent researcher subagent#2361
maxy-shpfy wants to merge 1 commit into
06-02-poc_scaffold_basic_tangent_dashboard_uxfrom
06-02-feat_v2_-_ai_assistant_-_tangent_researcher_subagent

Conversation

@maxy-shpfy

@maxy-shpfy maxy-shpfy commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds a Tangent Researcher sub-agent to the Run View assistant that analyzes a pipeline run for ML optimization potential. The agent scores the run 0–100 and returns a prioritized list of hyperparameter-tuning and experiment ideas across four categories: feature engineering, hyperparameter optimization, input data, and model architecture.

The agent is read-only — it calls get_run_status and get_pipeline_state but cannot edit the pipeline or submit runs. It runs with high reasoning effort and is exposed to the Run View dispatcher as the create_optimization_scenario tool.

The response is returned as a fenced ```tangent-scenario code block containing a structured JSON payload. A new TangentScenario React component parses this block and renders the score, rationale, summary, and each idea as an interactive card with impact and type badges. The dispatcher prompt instructs the orchestrator to relay this block verbatim so the UI can render it correctly.

Related Issue and Pull requests

Type of Change

  • Bug fix
  • New feature
  • Improvement
  • Cleanup/Refactor
  • Breaking change
  • Documentation update

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Test Instructions

  1. Open a pipeline run in the Run View.
  2. Ask the assistant something like "How can I optimize this run?" or "What hyperparameters should I tune for run 12345?".
  3. Confirm the dispatcher routes to create_optimization_scenario rather than ask_debug_assistant or ask_general_help.
  4. Verify the response renders as a score badge, rationale, summary paragraphs, and idea cards — not raw JSON or a plain code block.
  5. Confirm that asking debug or general questions still routes to the correct specialist and is unaffected.

Additional Comments

The TangentScenario component degrades gracefully — if the JSON cannot be parsed, it falls back to rendering the raw string as plain text.

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: 06-02-feat_v2_-_ai_assistant_-_tangent_researcher_subagent/145b581

@maxy-shpfy maxy-shpfy force-pushed the 06-02-feat_v2_-_ai_assistant_-_tangent_researcher_subagent branch from 9f32e5c to 3a90aeb Compare June 3, 2026 17:09
@maxy-shpfy maxy-shpfy force-pushed the 06-02-poc_scaffold_basic_tangent_dashboard_ux branch from cd6ed84 to b43711f Compare June 3, 2026 17:09
@maxy-shpfy maxy-shpfy force-pushed the 06-02-poc_scaffold_basic_tangent_dashboard_ux branch from b43711f to 0ca088f Compare June 11, 2026 06:01
@maxy-shpfy maxy-shpfy force-pushed the 06-02-feat_v2_-_ai_assistant_-_tangent_researcher_subagent branch from 3a90aeb to 15b4eac Compare June 11, 2026 06:01
@maxy-shpfy maxy-shpfy force-pushed the 06-02-poc_scaffold_basic_tangent_dashboard_ux branch from 0ca088f to 1bc92dc Compare June 11, 2026 06:23
@maxy-shpfy maxy-shpfy force-pushed the 06-02-feat_v2_-_ai_assistant_-_tangent_researcher_subagent branch from 15b4eac to 07edaaf Compare June 11, 2026 06:23
@maxy-shpfy maxy-shpfy force-pushed the 06-02-poc_scaffold_basic_tangent_dashboard_ux branch from 1bc92dc to 70e7a2c Compare June 11, 2026 16:45
@maxy-shpfy maxy-shpfy force-pushed the 06-02-feat_v2_-_ai_assistant_-_tangent_researcher_subagent branch from 07edaaf to 145b581 Compare June 11, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant