Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add help command mode with dedicated help agent #475

Merged
merged 4 commits into from
Mar 9, 2025
Merged

Conversation

tusharmath
Copy link
Collaborator

@tusharmath tusharmath commented Mar 9, 2025

Overview

This PR implements a dedicated help command mode for the Forge CLI application that allows users to get assistance and documentation directly from the CLI.

Features

  • Added a new '/help' command to switch to help mode
  • Created a help agent with a specialized system prompt template
  • Integrated README content into templates to provide documentation context
  • Added event handling for user help queries
  • Updated the agent model to use google/gemini-2.0-flash-thinking-exp for better response quality
  • Enhanced the UI to display mode-specific messages

Implementation Details

  • Added new SystemContext.readme field to include README content in prompts
  • Created a system-prompt-help.hbs template with specific instructions for help responses
  • Updated the state handling to include the new HELP mode
  • Configured the help_agent in forge.yaml with appropriate tools and subscriptions
  • Enhanced UI messaging to indicate current mode with descriptive text

Testing

The help mode has been tested by:

  • Switching to help mode using the /help command
  • Asking various questions about Forge CLI functionality
  • Verifying that responses include content from the README
  • Confirming proper mode switching behavior

Screenshots

(Add screenshots if available)

Related Issues

Closes #[issue_number]

@tusharmath tusharmath changed the title help command feat: add help command mode with dedicated help agent Mar 9, 2025
@tusharmath tusharmath enabled auto-merge (squash) March 9, 2025 07:38
@tusharmath tusharmath merged commit 4dff037 into main Mar 9, 2025
7 checks passed
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