Skip to content

[Draft] Planning - #18

Closed
jahooma wants to merge 12 commits into
mainfrom
planning
Closed

jahooma wants to merge 12 commits into
mainfrom
planning

Conversation

@jahooma

@jahooma jahooma commented Oct 11, 2024

Copy link
Copy Markdown
Contributor

No description provided.

This commit introduces a new feature to determine if a user's request
requires a plan before processing. It adds a new file
'check-plan-required.ts' with a function to analyze the request and
updates 'main-prompt.ts' to integrate this check into the existing
workflow. The plan requirement is based on complexity, number of steps,
and verification needs.
This commit introduces a new feature to generate and execute plans for
complex user requests. Key changes include:

- Add generatePlan function to create detailed, step-by-step plans
- Integrate plan generation into main-prompt.ts workflow
- Update knowledge.md with information about the new feature
- Enhance request handling to break down complex tasks systematically
- Implement real-time streaming of generated plans to the client

This feature improves the system's ability to handle complex requests
with proper verification steps, enhancing overall functionality.
This commit enhances the plan generation process and optimizes
response handling in the main prompt function. Key changes include:

- Update plan generation prompt to start with user notification
- Recreate system prompt before plan generation for up-to-date context
- Optimize warm cache call to only fire when no plan is required
- Increase assistant message threshold for pausing from 3 to 10
- Update knowledge.md with new implementation details

These changes improve the system's ability to handle complex requests
and provide more efficient caching and response generation.
This commit enhances the checkIfPlanRequired function by:
- Changing the check to use 'includes' instead of exact match
- Adding logging to capture the response and decision
- Importing the logger utility

These changes will improve reliability and debugging capabilities.
This commit introduces a planning system for handling complex tasks:

- Add Planning System section to knowledge.md
- Update generate-plan.ts to use STOP_MARKER
- Modify main-prompt.ts to remove STOP_MARKER from plan
- Add planningPrompt to system-prompt.ts

The planning system allows for structured implementation of
multi-step tasks, providing clear checkpoints for progress tracking.
Improve plan generation by adding stop marker to plan format
Update main prompt to handle plan-based responses
Adjust system prompt for conditional stop marker usage
This commit introduces plan execution functionality and adds
new markers for plan start and stop. It modifies the main prompt
logic to handle plan execution, updates the generate-plan
function, and adds new constants for plan markers. These changes
improve the structure and flow of plan-based interactions.
This commit enhances the plan generation and execution process:
- Update generate-plan.ts to focus on minimal necessary steps
- Modify main-prompt.ts to handle continuous plan execution
- Adjust client.ts and tool-handlers.ts to support plan continuation
- Refine logic for determining if a plan is in progress

These changes aim to make the planning process more efficient and
focused, while allowing for seamless execution of multi-step plans.
This commit improves the plan generation and execution workflow:
- Simplify plan generation prompt for clearer instructions
- Adjust plan execution logic in main-prompt.ts
- Enhance response handling and markers for better flow control
- Improve continuation logic for interrupted responses

These changes aim to streamline the planning process and make
the execution more robust and efficient.
@ellipsis-dev

ellipsis-dev Bot commented Oct 11, 2024

Copy link
Copy Markdown

Your free trial has expired. To keep using Ellipsis, sign up at https://app.ellipsis.dev for $20/seat/month or reach us at help@ellipsis.dev

@jahooma jahooma closed this May 6, 2025
JasonMMIV added a commit to JasonMMIV/Anybuff that referenced this pull request Sep 7, 2026
…run guardrails, theme mode, mentions

Close six items from the APP gap list (CodebuffAI#4, CodebuffAI#9, CodebuffAI#11, CodebuffAI#17, CodebuffAI#18, CodebuffAI#20):
- CodebuffAI#4 image attachments/clipboard paste: RunImagePart contracts + multimodal
  RunPromptPayload.content -> client.run({content}); composer paste & thumbnails
- CodebuffAI#9 bash mode (!command): host-core runBashCommand channel (scrubbed env,
  timeout clamp, truncation) + <user_terminal_commands> context baking
- CodebuffAI#11 <PLAN> blocks render as a bordered plan box card in AssistantBubble
- CodebuffAI#17 maxAgentSteps/costMode: persisted settings + updateRunGuardrails,
  forwarded to client.run; composer Steps/Cost quick selects
- CodebuffAI#18 theme follows system: 3-way system/light/dark selector with
  matchMedia listener and nativeTheme sync (bump to 1.1.0)
- CodebuffAI#20 @mention: custom-agent completion from 3-tier .agents scan, Tab path
  completion, agentId override routed through runPrompt

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant