Release v0.30.22025-05-07
[0.30.2] - 2025-05-06
- Handle list response from LLM API
Release v0.30.12025-05-07
[0.30.1] - 2025-05-06
- Switch to CIAYN backend for gemini-2.5-pro-preview-05-06
Release v0.30.02025-05-07
[0.30.0] - 2025-05-06
Added
- Agent Thread Management: Introduced a new system (raaid/utils/agentthread_manager.py) for managing the lifecycle of agent threads, allowing for better control and monitoring of running agents. Includes functions to register, unregister, stop, and check the status of agent threads.
- Session Deletion API: Added a DELETE /v1/session/{sessionid} endpoint to allow for stopping an active agent session and marking it as "halting" (raaid/server/apiv1sessions.py).
- Session ID in Agent Creation: The createagent function and its callers now utilize a sessionid for improved agent tracking and context management (raaid/agentutils.py, raaid/agents/researchagent.py, raaid/server/apiv1spawnagent.py).
- User Query Trajectory in UI: Added a new UserQueryTrajectory.tsx component to display the initial user query in the frontend timeline.
- Copy to Clipboard Button in UI: Implemented a CopyToClipboardButton.tsx component and integrated it into various UI parts (e.g., MarkdownCodeBlock.tsx, Task and Expert Response trajectories) for easy content copying.
- Persistent CLI Configuration: Users can now set and persist default LLM provider and model via CLI (--set-default-provider, --set-default-model), stored in config.json in the .ra-aid directory (ra_aid/config.py).
- Tests for Agent Thread Manager: Added new unit tests for the agent thread management module (tests/raaid/utils/testagentthreadmanager.py).
- Tests for Session Deletion API: Added new tests for the session deletion API endpoint (tests/raaid/server/testapiv1sessions.py).
Changed
- Default Gemini Model: Updated the default Google Gemini model to gemini-2.5-pro-preview-05-06 (from gemini-2.5-pro-preview-03-25) in raaid/main.py, raaid/models_params.py, docs/docs/quickstart/recommended.md, and related tests.
- Async Tool Wrapper Optimization: Refined the creation of synchronous wrappers for asynchronous tools to only pass necessary (non-default or required) arguments to the underlying coroutine, improving efficiency (raaid/toolconfigs.py).
- Agent Creation Tests: Updated tests for createagent to reflect the new sessionid parameter (tests/raaid/testagent_utils.py).
- Session Statuses: The Session model now includes 'halting' and 'halted' statuses to support the new session termination API.
- User Query Storage: The initial user_query is now stored with session and trajectory data.
- DEFAULTSHOWCOST: Changed to True by default.
Fixed
- Tool Name Sanitization: Corrected an issue where tool names with special characters (. or -) could cause errors during the creation of synchronous wrappers for async tools. These characters are now consistently replaced with ` (raaid/tool_configs.py).
- Token Limiter Model Name Handling: Improved getmodeltokenlimit in raaid/anthropictokenlimiter.py` to better handle model name variations for token limit lookups.
Release v0.29.02025-04-25
[0.29.0] 2025-04-24
Changed
- Frontend Port Configuration:
- Frontend development server port is now configurable via VITEFRONTENDPORT environment variable (defaults to 5173) (frontend/web/vite.config.js).
- Frontend now dynamically determines the backend port using VITEBACKENDPORT in dev (default 1818) and window.location.port in production (frontend/common/src/store/clientConfigStore.ts).
- Expert Model Temperature Handling: The backend (raaid/llm.py) now checks if an expert model supports the temperature parameter before passing it, preventing errors with models like newer OpenAI versions that don't. It continues to set reasoningeffort to "high" where supported.
- OpenAI Model Definitions: Updated definitions for o4-mini and o3 in raaid/modelsparams.py to set supportstemperature=False and supportsreasoning_effort=True.
Added
- Frontend Development Documentation: Added instructions to docs/docs/contributing.md on running the frontend dev server and configuring ports using environment variables.
- New OpenAI Model Definitions: Added definitions for o4-mini-2025-04-16, o3-2025-04-16, and o3-mini-2025-01-31 to raaid/modelsparams.py.
Fixed
- Custom Tool Result Handling: Ensured results from custom tools are always wrapped in a Langchain BaseMessage (AIMessage) to maintain consistency (raaid/agentbackends/ciayn_agent.py).
- Custom Tool Console Output: Corrected minor formatting issues (escaped newlines) in the console output message when executing custom tools (raaid/agentbackends/ciayn_agent.py).
Release v0.28.12025-04-17
[0.28.1] 2025-04-17
- Update web prebuilt assets
Release v0.28.02025-04-17
[0.28.0] 2025-04-17
Documentation
- Updated expert model API key environment variables (EXPERTGEMINIAPIKEY, EXPERTDEEPSEEKAPIKEY) and clarified selection priority in docs/docs/configuration/expert-model.md.
- Updated recommendation to Google Gemini 1.5 Pro as the primary default model in docs/docs/intro.md & docs/docs/quickstart/recommended.md, explaining automatic detection via GEMINIAPIKEY.
Frontend
- Improved autoscroll logic in frontend/common/src/components/DefaultAgentScreen.tsx.
- Added new trajectory visualization components for file modifications: FileStrReplaceTrajectory.tsx and FileWriteTrajectory.tsx in frontend/common/src/components/trajectories/.
- Integrated new trajectory components into frontend/common/src/components/TrajectoryPanel.tsx and frontend/common/src/components/trajectories/index.ts.
Backend Core & Configuration
- Refined expert model provider selection logic in raaid/main__.py with updated priority order based on API keys.
- Minor cleanup in raaid/agentbackends/ciayn_agent.py (removed unused import, refined fallback warning).
- Set default backend for o4-mini to CIAYN in raaid/modelsparams.py.
Tools & Prompts
- Added filestrreplace tool (raaid/tools/filestr_replace.py) for replacing strings in files.
- Replaced writefiletool with putcompletefilecontents tool (raaid/tools/write_file.py) for writing complete file content.
- Updated readfiletool (raaid/tools/readfile.py) to strip whitespace from filepaths.
- Added filestrreplace and putcompletefilecontents to tool configurations and removed old writefiletool (raaid/tool_configs.py).
- Removed ripgrepsearch tool from default CIAYN tools (use runshellcommand instead) (raaid/tool_configs.py).
- Updated core agent prompts (Research, Planning, Implementation) to emphasize using rg via runshellcommand, mandate emitresearchnotes, and refine instructions (ra_aid/prompts/).
Testing
- Added tests for fallback warning logic in tests/raaid/agentbackends/testciaynfallback_warning.py.
- Updated tests for putcompletefilecontents tool in tests/raaid/tools/testwritefile.py.
Release v0.27.02025-04-17
[0.27.0] 2025-04-16
Added
- Support for o4-mini and o3 models
Changed
- Default Model/Provider Logic (raaid/main.py):**
- Changed the default OpenAI model from gpt-4o to o4-mini.
- Updated the default LLM provider selection priority based on available API keys to: Gemini (GEMINIAPIKEY), then OpenAI (OPENAIAPIKEY), then Anthropic (ANTHROPICAPIKEY).
- Expert Model Selection Logic (raaid/main.py, raaid/llm.py):
- Introduced dedicated environment variables for expert model API keys (e.g., EXPERTOPENAIAPIKEY, EXPERTANTHROPICAPIKEY).
- Updated the priority order for selecting the expert provider when none is explicitly set: EXPERTOPENAIAPIKEY > GEMINIAPIKEY > EXPERTANTHROPICAPIKEY > DEEPSEEKAPIKEY.
- Refined fallback logic: If no specific expert key is found, it uses the main provider configuration. A special case ensures that if the main provider is OpenAI and no expert model is specified, the expert model defaults to auto-selection (prioritizing o3).
- Updated the default OpenAI expert model selection to prioritize only "o3". An error is now raised if "o3" is unavailable via the API key and no specific expert model was requested by the user.
- Model Parameters (raaid/modelsparams.py):
- Added configuration parameters (token limits, capabilities) for the o4-mini and o3 models.
Testing (tests/raaid/testdefaultprovider.py, tests/raaid/test_llm.py)
- Added/updated tests to verify the new default provider logic, ensuring correct prioritization.
- Added/updated tests for expert model selection to reflect the new prioritization and the default selection of o3 for OpenAI expert.
Release v0.26.02025-04-16
[0.26.0] 2025-04-16
Frontend
- Implement improved autoscroll logic with user scroll detection in DefaultAgentScreen.tsx.
- Add Ctrl+Space shortcut for new session and completion message in DefaultAgentScreen.tsx.
- Make session title header sticky in DefaultAgentScreen.tsx.
- Add Ctrl+Enter (submit) and Ctrl+Shift+Enter (research-only) shortcuts with visual key indicators in InputSection.tsx.
- Create new EnterKeySvg.tsx component for shortcut key visuals.
- Add updateSessionDetails action to sessionStore.ts for faster session name updates via WebSocket.
Backend
- Add --cowboy-mode flag with server warning confirmation in main.py.
- Adjust console output padding in console/formatting.py and console/output.py.
- Refactor researchnotesformatter.py to return raw content.
- Add model parameters for gpt-4.1, gpt-4.1-mini, gpt-4.1-nano in models_params.py.
- Update CIAYN agent prompts to mandate triple quotes for all string tool arguments in prompts/ciayn_prompts.py.
- Broadcast full session details immediately after creation via WebSocket in server/apiv1spawn_agent.py.
Build
- Update prebuilt frontend assets (index-.js, index-.css, index.html).
Release v0.25.02025-04-10
[0.25.0] 2025-04-09
Backend Changes
- Refactored ra_aid/tools/ripgrep.py:
- Removed old search parameter string construction.
- Introduced new variables: finaloutput, finalreturncode, finalsuccess for capturing command-line output and error handling.
- Updated trajectory recording logic using consolidated parameters (toolparameters and stepdata).
- Enhanced UTF-8 decoding with error replacement and improved error panel displays.
- Updated backend modules:
- Modified raaid/projectinfo.py and raaid/server/apiv1spawnagent.py for improved logging, error handling, and user feedback.
- Updated server-side prebuilt assets (JavaScript, CSS, and index.html) for better asset management.
Frontend Changes
- Updated several UI components in frontend/common including:
- DefaultAgentScreen.tsx, SessionList.tsx, SessionSidebar.tsx, TimelineStep.tsx, and TrajectoryPanel.tsx.
- Adjusted state management and utility/store files to support updated UI displays for agent outputs, sessions, and trajectories.
Configuration & Minor Changes
- Modified configuration files:
- Updated .gitignore and .ra-prompt with newer patterns.
- Revised frontend/common/package.json and frontend/common/tailwind.preset.js for improved dependency and styling management.
- Updated package-lock.json files and server-side asset references.
Release v0.24.02025-04-09
[0.24.0] 2025-04-08
Added
- Web UI is now available at localhost:1818 when ra-aid is started with --server
- Session status tracking (pending, running, completed, failed) in the database and API.
- Robust WebSocket connection handling in the frontend with auto-reconnect and heartbeats (frontend/common/src/websocket/connection.ts).
- Serve prebuilt web UI static files directly from the backend server (raaid/server/server.py, raaid/server/prebuilt/).
- broadcastsender.py module for decoupled WebSocket message broadcasting via a queue (raaid/server/broadcast_sender.py).
- SessionNotFoundError custom exception (ra_aid/exceptions.py).
- build:prebuilt npm script to build frontend assets into the backend distribution (frontend/package.json).
Changed
- Refactored backend WebSocket broadcasting to use the new broadcastsender queue, improving reliability and decoupling (raaid/server/server.py, raaid/server/apiv1spawnagent.py).
- Updated various frontend components and stores to integrate with the new WebSocket logic and session status (frontend/common/).
- Enhanced logging in raaid/agents/researchagent.py with thread IDs.
Fixed
- Resolved WebSocket message serialization error for sessionupdate payloads by ensuring proper JSON serialization (mode='json') before queuing messages in the new broadcast sender mechanism (raaid/server/apiv1spawnagent.py, raaid/server/broadcast_sender.py).
Build
- Added script (frontend/package.json#build:prebuilt) to build and copy frontend assets to ra_aid/server/prebuilt/ for server distribution.
Internal
- Added database migration for the new session status field (raaid/migrations/01520250408140800addsessionstatus.py).
- Updated .gitignore.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.