feat: v2 - ai assistant - architect subagent#2335
Open
maxy-shpfy wants to merge 1 commit into
Open
Conversation
🎩 PreviewA preview build has been created at: |
This was referenced May 28, 2026
Collaborator
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Introduces a Pipeline Architect sub-agent that designs and builds new pipelines — or new stages within an existing pipeline — from a high-level user goal. The architect translates intent into a concrete graph of tasks, bindings, inputs, and outputs using the CSOM tool surface, and can optionally submit a run after a successful build.
Key additions:
pipelineArchitectsub-agent (src/agent/agents/subagents/pipelineArchitect.ts): A new specialist agent backed by the orchestrator model. It loads reference skills (tangleBestPractices,componentYamlFormat) at construction time and appends them to its system prompt. It has access to all CSOM tools andsubmit_pipeline_run.architect.mdsystem prompt: Defines the architect's workflow — inspect current state, plan before mutating, build incrementally, validate, and summarize with entity links. Includes guidance on subgraph design, component-availability constraints, when to defer to repair or debug specialists, and run-submission rules.SkillsLoader(src/agent/skills/loader.ts): FetchesSKILL.mddocuments over HTTP from a configurable base URL, caches them in IndexedDB keyed by a 6-character build SHA prefix so skills are warm across worker sessions and only re-fetched on deployment.public/agent-skills/:componentYamlFormat(Tangle component YAML spec reference) andtangleBestPractices(pipeline structure, component selection, data flow, and common patterns guidelines).skillsBaseUrlconfig key added toconfig.tswith arequireSkillsBaseUrl()helper.skillsLoaderadded toAgentSessionand wired into the worker so the loader instance is shared across turns.createDispatcherAgentis nowasyncto await the architect's construction. The dispatcher routing table and prompt now includeask_pipeline_architectwith clear guidance distinguishing it fromask_pipeline_repair(new structure vs. fixing existing structure).ask_pipeline_architectmaps to the status label"Designing pipeline...".Screenshots (if applicable)
AI Assistant - Architect demo.mp4 (uploaded via Graphite)
Test Instructions
skillsBaseUrlinsrc/config/aiAssistantConfig.jsonto the URL serving thepublic/agent-skills/directory.ask_pipeline_architect(status label "Designing pipeline..." should appear).get_pipeline_state, plans, adds tasks/bindings, and callsvalidate_pipelinebefore summarizing.ask_pipeline_repairinstead.submit_pipeline_runonly after a clean validation.agentDb.skills) and served from cache on subsequent worker sessions without re-fetching.Additional Comments
The component-availability constraint is intentional for this release: the architect can only reference components already present in the current pipeline spec. A future
search_componentstool will lift this restriction.