Skip to content

Conversation

@samchon
Copy link
Member

@samchon samchon commented Dec 10, 2025

This pull request introduces significant improvements to the preliminary context loading and orchestration system in the agent package. The main focus is on enhancing the handling of previously implemented artifacts (analysis files, API operations, TypeScript schemas, and Prisma models) for incremental context loading, improving anti-duplication logic, and making the orchestration controller more robust and well-documented.

The most important changes are:

Preliminary Context Loading and History Handling

  • Added support for "previous" artifacts (e.g., previousAnalysisFiles, previousInterfaceOperations, etc.) in the orchestration controller and history transformation logic, enabling the agent to distinguish between already implemented features and new requirements. [1] [2] [3]
  • Updated system prompts and loaded messages to include references to previous artifacts, clarifying their intended use and preventing accidental duplication of features, endpoints, types, or tables. [1] [2] [3] [4] [5] [6] [7] [8]
  • Added new prompt fragments that clearly instruct the agent to use previous artifacts only for reference and not for designing new features, enforcing anti-duplication rules. [1] [2] [3] [4]

Controller API and Documentation

  • Refactored AutoBePreliminaryController to include comprehensive JSDoc comments for all public methods and constructor properties, improving code clarity and maintainability. [1] [2] [3]
  • Added new controller methods and properties for managing histories and state, as well as dynamic adjustment of LLM application schemas to exclude previous types when not present.

Orchestration Pipeline

  • Updated the orchestration pipeline to pass histories through context, ensuring correct incremental context loading and improved traceability of agent decisions.

Project Timeline Update

  • Updated the Gantt chart in README.md to reflect new active dates and extended recruitment period for the AutoBE Developer role.

samchon and others added 3 commits December 10, 2025 10:37
* feat(agent): the complementation feature

* logic implementations

* logic completion

* logic complete 2

* Update packages/agent/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.ts

Co-authored-by: Copilot <[email protected]>

* Update packages/agent/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousPrismaSchemas.ts

Co-authored-by: Copilot <[email protected]>

* Update packages/agent/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.ts

Co-authored-by: Copilot <[email protected]>

* Update packages/agent/src/orchestrate/common/internal/createPreliminaryCollection.ts

Co-authored-by: Copilot <[email protected]>

* separate and modularize previous prompts

* also logic of `validatePreliminary()`

* also enhance `complementPreliminaryCollection()`

* complete `fixPreliminaryApplication()`

* fix style

---------

Co-authored-by: Copilot <[email protected]>
* feat(agent): documentation on RAG features

* Update packages/agent/src/orchestrate/common/AutoBePreliminaryController.ts

Co-authored-by: Copilot <[email protected]>

* styling

---------

Co-authored-by: Copilot <[email protected]>
* feat(agent): logic of `orchestratePreliminary`

* Update packages/agent/src/orchestrate/common/orchestratePreliminary.ts

Co-authored-by: Copilot <[email protected]>

* Update packages/agent/src/orchestrate/common/orchestratePreliminary.ts

Co-authored-by: Copilot <[email protected]>

* Update packages/agent/src/orchestrate/common/orchestratePreliminary.ts

Co-authored-by: Copilot <[email protected]>

* make logic easier

* enhance `complementPreliminaryCollection()`

* enhance `complementPreliminaryCollection()` again to support realize modularization

* fix vunlerables

* fix complementPreliminaryCollection again

* fix typo

* Update packages/agent/src/orchestrate/common/internal/complementPreliminaryCollection.ts

Co-authored-by: Copilot <[email protected]>

* fix typo

* complete

---------

Co-authored-by: Copilot <[email protected]>
@samchon samchon self-assigned this Dec 10, 2025
@samchon samchon added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 10, 2025
@samchon samchon added this to WrtnLabs Dec 10, 2025
samchon and others added 3 commits December 10, 2025 23:00
* feat(agent): description comments of agents

* Update packages/agent/src/structures/IAutoBeOrchestrateHistory.ts

Co-authored-by: Copilot <[email protected]>

* Update packages/agent/src/utils/divideArray.ts

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
* feat(agent): adjust previous RAG to every agents

* fixing type errors

* fix compilation errors

* exact interface function calling schemas

* exact prisma function calling schemas

* exact analyze function calling schemas

* fix analyze logics

* fix prisma logics

* fix interface logics

* fix interface histories

* fix prompts

* exact description about previous RAG assets

* fix one more time

* fix prompts

* Analyze information from RAG

* fix transformPreliminaryHistory

* fix prompts again
@samchon samchon marked this pull request as ready for review December 16, 2025 06:41
Copilot AI review requested due to automatic review settings December 16, 2025 06:41
@samchon samchon merged commit b808281 into main Dec 16, 2025
3 of 4 checks passed
@samchon samchon deleted the feat/rag branch December 16, 2025 06:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request introduces comprehensive RAG (Retrieval-Augmented Generation) support for incremental context loading in the AutoBE agent system, enabling agents to reference previously implemented artifacts during complementation cycles. The main enhancement is the addition of "previous" artifact tracking (previousAnalysisFiles, previousPrismaSchemas, previousInterfaceOperations, previousInterfaceSchemas) alongside improved orchestration logic and documentation.

Key Changes:

  • Added support for loading previous iteration artifacts to prevent duplication during incremental feature development
  • Enhanced AutoBePreliminaryController with dynamic schema adjustment to exclude unavailable "previous" types
  • Updated roadmap timelines to reflect completed modularization and complementation phases

Reviewed changes

Copilot reviewed 139 out of 139 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/interface/src/typings/AutoBePreliminaryKind.ts Added four new preliminary kinds for previous artifacts
packages/agent/src/context/AutoBeState.ts Added previous* fields to track prior phase executions
packages/agent/src/factory/createAutoBeState.ts Implemented logic to extract previous phase histories
packages/agent/src/orchestrate/common/AutoBePreliminaryController.ts Added fixApplication method for dynamic schema adjustment and comprehensive JSDoc
packages/agent/src/orchestrate/common/internal/fixPrelminaryApplication.ts Implemented runtime schema manipulation to remove unavailable previous types
packages/agent/src/orchestrate/common/structures/* Added four new preliminary request types for previous artifacts with detailed documentation
packages/agent/src/orchestrate/common/internal/complementPreliminaryCollection.ts Enhanced to handle previous artifact types and realize modularizations
packages/agent/src/orchestrate/common/orchestratePreliminary.ts Added orchestration handlers for previous artifacts
packages/agent/src/orchestrate/common/histories/transformPreliminaryHistory.ts Updated to generate appropriate system/assistant messages for previous artifacts
packages/agent/src/orchestrate/prisma/* Integrated previousAnalysisFiles and previousPrismaSchemas support
packages/agent/src/orchestrate/interface/* Integrated all four previous artifact types across interface orchestrators
packages/agent/src/orchestrate/analyze/* Added previousAnalysisFiles support to analysis orchestrators
packages/agent/src/utils/* Added comprehensive JSDoc documentation for utility functions
packages/agent/src/utils/arrayToRecord.ts Removed unused utility function
packages/agent/prompts/* Updated prompts to reference "previous version" for step numbering consistency
website/src/template/diagrams/AutoBeGammaRoadmap.mdx Updated roadmap with completed phases and extended recruitment
test/src/features/utils/test_predicate_state_message.ts Added previousPhase fields to test state initialization
Comments suppressed due to low confidence (1)

packages/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts:1

  • Corrected spelling of 'accomplished' to 'accomplish'.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants