Compare commits

...

235 Commits

Author SHA1 Message Date
coderabbitai[bot] f0a490c5af 📝 Add docstrings to develop
Docstrings generation was requested by @Mitsu13Ion.

* https://github.com/AndyMik90/Auto-Claude/pull/191#issuecomment-3686815825

The following files were modified:

* `apps/frontend/src/main/ipc-handlers/env-handlers.ts`
* `apps/frontend/src/main/ipc-handlers/gitlab-handlers.ts`
* `apps/frontend/src/main/ipc-handlers/gitlab/import-handlers.ts`
* `apps/frontend/src/main/ipc-handlers/gitlab/index.ts`
* `apps/frontend/src/main/ipc-handlers/gitlab/investigation-handlers.ts`
* `apps/frontend/src/main/ipc-handlers/gitlab/issue-handlers.ts`
* `apps/frontend/src/main/ipc-handlers/gitlab/merge-request-handlers.ts`
* `apps/frontend/src/main/ipc-handlers/gitlab/oauth-handlers.ts`
* `apps/frontend/src/main/ipc-handlers/gitlab/release-handlers.ts`
* `apps/frontend/src/main/ipc-handlers/gitlab/repository-handlers.ts`
* `apps/frontend/src/main/ipc-handlers/gitlab/spec-utils.ts`
* `apps/frontend/src/main/ipc-handlers/gitlab/utils.ts`
* `apps/frontend/src/main/ipc-handlers/index.ts`
* `apps/frontend/src/renderer/components/GitLabIssues.tsx`
* `apps/frontend/src/renderer/components/gitlab-issues/components/EmptyStates.tsx`
* `apps/frontend/src/renderer/components/gitlab-issues/components/InvestigationDialog.tsx`
* `apps/frontend/src/renderer/components/gitlab-issues/components/IssueDetail.tsx`
* `apps/frontend/src/renderer/components/gitlab-issues/components/IssueList.tsx`
* `apps/frontend/src/renderer/components/gitlab-issues/components/IssueListHeader.tsx`
* `apps/frontend/src/renderer/components/gitlab-issues/components/IssueListItem.tsx`
* `apps/frontend/src/renderer/components/gitlab-issues/hooks/useGitLabInvestigation.ts`
* `apps/frontend/src/renderer/components/gitlab-issues/hooks/useGitLabIssues.ts`
* `apps/frontend/src/renderer/components/gitlab-issues/hooks/useIssueFiltering.ts`
* `apps/frontend/src/renderer/components/gitlab-issues/utils/index.ts`
* `apps/frontend/src/renderer/components/gitlab-merge-requests/GitLabMergeRequests.tsx`
* `apps/frontend/src/renderer/components/gitlab-merge-requests/components/CreateMergeRequestDialog.tsx`
* `apps/frontend/src/renderer/components/gitlab-merge-requests/components/MergeRequestItem.tsx`
* `apps/frontend/src/renderer/components/gitlab-merge-requests/components/MergeRequestList.tsx`
* `apps/frontend/src/renderer/components/project-settings/hooks/useProjectSettings.ts`
* `apps/frontend/src/renderer/components/settings/AppSettings.tsx`
* `apps/frontend/src/renderer/components/settings/ProjectSettingsContent.tsx`
* `apps/frontend/src/renderer/components/settings/integrations/GitLabIntegration.tsx`
* `apps/frontend/src/renderer/components/settings/sections/SectionRouter.tsx`
* `apps/frontend/src/renderer/stores/gitlab-store.ts`
2025-12-23 14:19:47 +00:00
Andy 8f766ad16e feat/beta-release (#190)
* chore: update README version to 2.7.1

Updated the version badge and download links in the README to reflect the new release version 2.7.1, ensuring users have the correct information for downloading the latest builds.

* feat(releases): add beta release system with user opt-in

Implements a complete beta release workflow that allows users to opt-in
to receiving pre-release versions. This enables testing new features
before they're included in stable releases.

Changes:
- Add beta-release.yml workflow for creating beta releases from develop
- Add betaUpdates setting with UI toggle in Settings > Updates
- Add update channel support to electron-updater (beta vs latest)
- Extract shared settings-utils.ts to reduce code duplication
- Add prepare-release.yml workflow for automated release preparation
- Document beta release process in CONTRIBUTING.md and RELEASE.md

Users can enable beta updates in Settings > Updates, and maintainers
can trigger beta releases via the GitHub Actions workflow.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* workflow update

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 14:28:09 +01:00
Andy ced2ad479f fix/PRs from old main setup to apps structure (#185)
* fix(core): add task persistence, terminal handling, and HTTP 300 fixes

Consolidated bug fixes from PRs #168, #170, #171:

- Task persistence (#168): Scan worktrees for tasks on app restart
  to prevent loss of in-progress work and wasted API credits. Tasks
  in .worktrees/*/specs are now loaded and deduplicated with main.

- Terminal buttons (#170): Fix "Open Terminal" buttons silently
  failing on macOS by properly awaiting createTerminal() Promise.
  Added useTerminalHandler hook with loading states and error display.

- HTTP 300 errors (#171): Handle branch/tag name collisions that
  cause update failures. Added validation script to prevent conflicts
  before releases and user-friendly error messages with manual
  download links.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(platform): add path resolution, spaces handling, and XDG support

This commit consolidates multiple bug fixes from community PRs:

- PR #187: Path resolution fix - Update path detection to find apps/backend
  instead of legacy auto-claude directory after v2.7.2 restructure

- PR #182/#155: Python path spaces fix - Improve parsePythonCommand() to
  handle quoted paths and paths containing spaces without splitting

- PR #161: Ollama detection fix - Add new apps structure paths for
  ollama_model_detector.py script discovery

- PR #160: AppImage support - Add XDG Base Directory compliant paths for
  Linux sandboxed environments (AppImage, Flatpak, Snap). New files:
  - config-paths.ts: XDG path utilities
  - fs-utils.ts: Filesystem utilities with fallback support

- PR #159: gh CLI PATH fix - Add getAugmentedEnv() utility to include
  common binary locations (Homebrew, snap, local) in PATH for child
  processes. Fixes gh CLI not found when app launched from Finder/Dock.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: address CodeRabbit/Cursor review comments on PR #185

Fixes from code review:
- http-client.ts: Use GITHUB_CONFIG instead of hardcoded owner in HTTP 300 error message
- validate-release.js: Fix substring matching bug in branch detection that could cause false positives (e.g., v2.7 matching v2.7.2)
- bump-version.js: Remove unnecessary try-catch wrapper (exec() already exits on failure)
- execution-handlers.ts: Capture original subtask status before mutation for accurate logging
- fs-utils.ts: Add error handling to safeWriteFile with proper logging

Dismissed as trivial/not applicable:
- config-paths.ts: Exhaustive switch check (over-engineering)
- env-utils.ts: PATH priority documentation (existing comments sufficient)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: address additional CodeRabbit review comments (round 2)

Fixes from second round of code review:
- fs-utils.ts: Wrap test file cleanup in try-catch for Windows file locking
- fs-utils.ts: Add error handling to safeReadFile for consistency with safeWriteFile
- http-client.ts: Use GITHUB_CONFIG in fetchJson (missed in first round)
- validate-release.js: Exclude symbolic refs (origin/HEAD -> origin/main) from branch check
- python-detector.ts: Return cleanPath instead of pythonPath for empty input edge case

Dismissed as trivial/not applicable:
- execution-handlers.ts: Redundant checkSubtasksCompletion call (micro-optimization)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 13:33:11 +01:00
Andy 05f5d3038b fix: hide status badge when execution phase badge is showing (#154)
* fix: analyzer Python compatibility and settings integration

Fixes project index analyzer failing with TypeError on Python type hints.

Changes:
- Added 'from __future__ import annotations' to all analysis modules
- Fixed project discovery to support new analyzer JSON format
- Read Python path directly from settings.json instead of pythonEnvManager
- Added stderr/stdout logging for analyzer debugging

Resolves 'Discovered 0 files' and 'TypeError: unsupported operand type' issues.

* auto-claude: subtask-1-1 - Hide status badge when execution phase badge is showing

When a task has an active execution (planning, coding, etc.), the
execution phase badge already displays the correct state with a spinner.
The status badge was also rendering, causing duplicate/confusing badges
(e.g., both "Planning" and "Pending" showing at the same time).

This fix wraps the status badge in a conditional that only renders when
there's no active execution, eliminating the redundant badge display.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(ipc): remove unused pythonEnvManager parameter and fix ES6 import

Address CodeRabbit review feedback:
- Remove unused pythonEnvManager parameter from registerProjectContextHandlers
  and registerContextHandlers (the code reads Python path directly from
  settings.json instead)
- Replace require('electron').app with proper ES6 import for consistency

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore(lint): fix import sorting in analysis module

Run ruff --fix to resolve I001 lint errors after merging develop.
All 23 files in apps/backend/analysis/ now have properly sorted imports.

---------

Co-authored-by: Joris Slagter <mail@jorisslagter.nl>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 13:31:44 +01:00
Enes Cingöz 6951251b33 feat: Add UI scale feature with 75-200% range (#125)
* feat: add UI scale feature

* refactor: extract UI scale bounds to shared constants

* fix: duplicated import
2025-12-23 12:30:32 +01:00
AndyMik90 30e7536b63 fix(task): stop running process when task status changes away from in_progress
When a user drags a running task back to Planning (or any other column),
the process was not being stopped, leaving a "ghost" process that
prevented deletion with "Cannot delete a running task" error.

Now the task process is automatically killed when status changes away
from in_progress, ensuring the process state stays in sync with the UI.
2025-12-23 00:11:48 +01:00
Andy 220faf0fb4 Fix/linear 400 error
* fix: Linear API authentication and GraphQL types

- Remove Bearer prefix from Authorization header (Linear API keys are sent directly)
- Change GraphQL variable types from String! to ID! for teamId and issue IDs
- Improve error handling to show detailed Linear API error messages

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: Radix Select empty value error in Linear import modal

Use '__all__' sentinel value instead of empty string for "All projects"
option, as Radix Select does not allow empty string values.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: add CodeRabbit configuration file

Introduce a new .coderabbit.yaml file to configure CodeRabbit settings, including review profiles, automatic review options, path filters, and specific instructions for different file types. This enhances the code review process by providing tailored guidelines for Python, TypeScript, and test files.

* fix: correct GraphQL types for Linear team queries

Linear API uses different types for different queries:
- team(id:) expects String!
- issues(filter: { team: { id: { eq: } } }) expects ID!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: refresh task list after Linear import

Call loadTasks() after successful Linear import to update the kanban
board without requiring a page reload.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* cleanup

* cleanup

* fix: address CodeRabbit review comments for Linear integration

- Fix unsafe JSON parsing: check response.ok before parsing JSON to handle
  non-JSON error responses (e.g., 503 from proxy) gracefully
- Use ID! type instead of String! for teamId in LINEAR_GET_PROJECTS query
  for GraphQL type consistency
- Remove debug console.log (ESLint config only allows warn/error)
- Refresh task list on partial import success (imported > 0) instead of
  requiring full success
- Fix pre-existing TypeScript and lint issues blocking commit

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* version sync logic

* lints for develop branch

* chore: update CI workflow to include develop branch

- Modified the CI configuration to trigger on pushes and pull requests to both main and develop branches, enhancing the workflow for development and integration processes.

* fix: update project directory auto-detection for apps/backend structure

The project directory auto-detection was checking for the old `auto-claude/`
directory name but needed to check for `apps/backend/`. When running from
`apps/backend/`, the directory name is `backend` not `auto-claude`, so the
check would fail and `project_dir` would incorrectly remain as `apps/backend/`
instead of resolving to the project root (2 levels up).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: use GraphQL variables instead of string interpolation in LINEAR_GET_ISSUES

Replace direct string interpolation of teamId and linearProjectId with
proper GraphQL variables. This prevents potential query syntax errors if
IDs contain special characters like double quotes, and aligns with the
variable-based approach used elsewhere in the file.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(ui): correct logging level and await loadTasks on import complete

- Change console.warn to console.log for import success messages
  (warn is incorrect severity for normal completion)
- Make onImportComplete callback async and await loadTasks()
  to prevent potential unhandled promise rejections

Applies CodeRabbit review feedback across 3 LinearTaskImportModal usages.

* fix(hooks): use POSIX-compliant find instead of bash glob

The pre-commit hook uses #!/bin/sh but had bash-specific ** glob
pattern for staging ruff-formatted files. The ** pattern only works
in bash with globstar enabled - in POSIX sh it expands literally
and won't match subdirectories, causing formatted files in nested
directories to not be staged.

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 00:01:19 +01:00
Joris Slagter f96c6301f4 fix: remove legacy path from auto-claude source detection (#148)
Removes the legacy 'auto-claude' path from the possiblePaths array
in agent-process.ts. This path was from before the monorepo
restructure (v2.7.2) and is no longer needed.

The legacy path was causing spec_runner.py to be looked up at the
wrong location:
- OLD (wrong): /path/to/auto-claude/auto-claude/runners/spec_runner.py
- NEW (correct): /path/to/apps/backend/runners/spec_runner.py

This aligns with the new monorepo structure where all backend code
lives in apps/backend/.

Fixes #147

Co-authored-by: Joris Slagter <mail@jorisslagter.nl>
2025-12-22 22:59:48 +01:00
Joris Slagter ebd8340d82 fix: resolve Python environment race condition (#142)
Implemented promise queue pattern in PythonEnvManager to handle
concurrent initialization requests. Previously, multiple simultaneous
requests (e.g., startup + merge) would fail with "Already
initializing" error.

Also fixed parsePythonCommand() to handle file paths with spaces by
checking file existence before splitting on whitespace.

Changes:
- Added initializationPromise field to queue concurrent requests
- Split initialize() into public and private _doInitialize()
- Enhanced parsePythonCommand() with existsSync() check

Co-authored-by: Joris Slagter <mail@jorisslagter.nl>
2025-12-22 22:50:56 +01:00
rayBlock df779530e7 Feat: Ollama download progress tracking with new apps structure (#141)
* feat(ollama): add real-time download progress tracking for model downloads

Implement comprehensive download progress tracking with:
- NDJSON parsing for streaming progress data from Ollama API
- Real-time speed calculation (MB/s, KB/s, B/s) with useRef for delta tracking
- Time remaining estimation based on download speed
- Animated progress bars in OllamaModelSelector component
- IPC event streaming from main process to renderer
- Proper listener management with cleanup functions

Changes:
- memory-handlers.ts: Parse NDJSON from Ollama stderr, emit progress events
- OllamaModelSelector.tsx: Display progress bars with speed and time remaining
- project-api.ts: Implement onDownloadProgress listener with cleanup
- ipc.ts types: Define onDownloadProgress listener interface
- infrastructure-mock.ts: Add mock implementation for browser testing

This allows users to see real-time feedback when downloading Ollama models,
including percentage complete, current download speed, and estimated time remaining.

* test: add focused test coverage for Ollama download progress feature

Add unit tests for the critical paths of the real-time download progress tracking:

- Progress calculation tests (52 tests): Speed/time/percentage calculations with comprehensive edge case coverage (zero speeds, NaN, Infinity, large numbers)
- NDJSON parser tests (33 tests): Streaming JSON parsing from Ollama, buffer management for incomplete lines, error handling

All 562 unit tests passing with clean dependencies. Tests focus on critical mathematical logic and data processing - the most important paths that need verification.

Test coverage:
 Speed calculation and formatting (B/s, KB/s, MB/s)
 Time remaining calculations (seconds, minutes, hours)
 Percentage clamping (0-100%)
 NDJSON streaming with partial line buffering
 Invalid JSON handling
 Real Ollama API responses
 Multi-chunk streaming scenarios

* docs: add comprehensive JSDoc docstrings for Ollama download progress feature

- Enhanced OllamaModelSelector component with detailed JSDoc
  * Documented component props, behavior, and usage examples
  * Added docstrings to internal functions (checkInstalledModels, handleDownload, handleSelect)
  * Explained progress tracking algorithm and useRef usage

- Improved memory-handlers.ts documentation
  * Added docstring to main registerMemoryHandlers function
  * Documented all Ollama-related IPC handlers (check-status, list-embedding-models, pull-model)
  * Added JSDoc to executeOllamaDetector helper function
  * Documented interface types (OllamaStatus, OllamaModel, OllamaEmbeddingModel, OllamaPullResult)
  * Explained NDJSON parsing and progress event structure

- Enhanced test file documentation
  * Added docstrings to NDJSON parser test utilities with algorithm explanation
  * Documented all calculation functions (speed, time, percentage)
  * Added detailed comments on formatting and bounds-checking logic

- Improved overall code maintainability
  * Docstring coverage now meets 80%+ threshold for code review
  * Clear explanation of progress tracking implementation details
  * Better context for future maintainers working with download streaming

* feat: add batch task creation and management CLI commands

- Handle batch task creation from JSON files
- Show status of all specs in project
- Cleanup tool for completed specs
- Full integration with new apps/backend structure
- Compatible with implementation_plan.json workflow

* test: add batch task test file and testing checklist

- batch_test.json: Sample tasks for testing batch creation
- TESTING_CHECKLIST.md: Comprehensive testing guide for Ollama and batch tasks
- Includes UI testing steps, CLI testing steps, and edge cases
- Ready for manual and automated testing

* chore: update package-lock.json to match v2.7.2

* test: update checklist with verification results and architecture validation

* docs: add comprehensive implementation summary for Ollama + Batch features

* docs: add comprehensive Phase 2 testing guide with checklists and procedures

* docs: add NEXT_STEPS guide for Phase 2 testing

* fix: resolve merge conflict in project-api.ts from Ollama feature cherry-pick

* fix: remove duplicate Ollama check status handler registration

* test: update checklist with Phase 2 bug findings and fixes

---------

Co-authored-by: ray <ray@rays-MacBook-Pro.local>
2025-12-22 22:40:20 +01:00
Andy 0adaddacaa Feature/apps restructure v2.7.2 (#138)
* refactor: restructure project to Apps/frontend and Apps/backend

- Move auto-claude-ui to Apps/frontend with feature-based architecture
- Move auto-claude to Apps/backend
- Switch from pnpm to npm for frontend
- Update Node.js requirement to v24.12.0 LTS
- Add pre-commit hooks for lint, typecheck, and security audit
- Add commit-msg hook for conventional commits
- Fix CommonJS compatibility issues (postcss.config, postinstall scripts)
- Update README with comprehensive setup and contribution guidelines
- Configure ESLint to ignore .cjs files
- 0 npm vulnerabilities

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* feat(refactor): clean code and move to npm

* feat(refactor): clean code and move to npm

* chore: update to v2.7.0, remove Docker deps (LadybugDB is embedded)

* feat: v2.8.0 - update workflows and configs for Apps/ structure, npm

* fix: resolve Python lint errors (F401, I001)

* fix: update test paths for Apps/backend structure

* fix: add missing facade files and update paths for Apps/backend structure

- Fix ruff lint error I001 in auto_claude_tools.py
- Create missing facade files to match upstream (agent, ci_discovery, critique, etc.)
- Update test paths from auto-claude/ to Apps/backend/
- Update .pre-commit-config.yaml paths for Apps/ structure
- Add pytest to pre-commit hooks (skip slow/integration/Windows-incompatible tests)
- Fix Unicode encoding in test_agent_architecture.py for Windows

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* feat: improve readme

* fix: new path

* fix: correct release workflow and docs for Apps/ restructure

- Fix ARM64 macOS build: pnpm → npm, auto-claude-ui → Apps/frontend
- Fix artifact upload paths in release.yml
- Update Node.js version to 24 for consistency
- Update CLI-USAGE.md with Apps/backend paths
- Update RELEASE.md with Apps/frontend/package.json paths

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor: rename Apps/ to apps/ and fix backend path resolution

- Rename Apps/ folder to apps/ for consistency with JS/Node conventions
- Update all path references across CI/CD workflows, docs, and config files
- Fix frontend Python path resolver to look for 'backend' instead of 'auto-claude'
- Update path-resolver.ts to correctly find apps/backend in development mode

This completes the Apps restructure from PR #122 and prepares for v2.8.0 release.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(electron): correct preload script path from .js to .mjs

electron-vite builds the preload script as ESM (index.mjs) but the main
process was looking for CommonJS (index.js). This caused the preload to
fail silently, making the app fall back to browser mock mode with fake
data and non-functional IPC handlers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* - Introduced `dev:debug` script to enable debugging during development.
- Added `dev:mcp` script for running the frontend in MCP mode.

These enhancements streamline the development process for frontend developers.

* refactor(memory): make Graphiti memory mandatory and remove Docker dependency

Memory is now a core component of Auto Claude rather than optional:
- Python 3.12+ is required for the backend (not just memory layer)
- Graphiti is enabled by default in .env.example
- Removed all FalkorDB/Docker references (migrated to embedded LadybugDB)
- Deleted guides/DOCKER-SETUP.md and docker-handlers.ts
- Updated onboarding UI to remove "optional" language
- Updated all documentation to reflect LadybugDB architecture

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: add cross-platform Windows support for npm scripts

- Add scripts/install-backend.js for cross-platform Python venv setup
  - Auto-detects Python 3.12 (py -3.12 on Windows, python3.12 on Unix)
  - Handles platform-specific venv paths
- Add scripts/test-backend.js for cross-platform pytest execution
- Update package.json to use Node.js scripts instead of shell commands
- Update CONTRIBUTING.md with correct paths and instructions:
  - apps/backend/ and apps/frontend/ paths
  - Python 3.12 requirement (memory system now required)
  - Platform-specific install commands (winget, brew, apt)
  - npm instead of pnpm
  - Quick Start section with npm run install:all

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* remove doc

* fix(frontend): correct Ollama detector script path after apps restructure

The Ollama status check was failing because memory-handlers.ts
was looking for ollama_model_detector.py at auto-claude/ but the
script is now at apps/backend/ after the directory restructure.

This caused "Ollama not running" to display even when Ollama was
actually running and accessible.

* chore: bump version to 2.7.2

Downgrade version from 2.8.0 to 2.7.2 as the Apps/ restructure
is better suited as a patch release rather than a minor release.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: update package-lock.json for Windows compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* docs(contributing): add hotfix workflow and update paths for apps/ structure

Add Git Flow hotfix workflow documentation with step-by-step guide
and ASCII diagram showing the branching strategy.

Update all paths from auto-claude/auto-claude-ui to apps/backend/apps/frontend
and migrate package manager references from pnpm to npm to match the
new project structure.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(ci): remove duplicate ARM64 build from Intel runner

The Intel runner was building both x64 and arm64 architectures,
while a separate ARM64 runner also builds arm64 natively. This
caused duplicate ARM64 builds, wasting CI resources.

Now each runner builds only its native architecture:
- Intel runner: x64 only
- ARM64 runner: arm64 only

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Alex Madera <e.a_madera@hotmail.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 21:34:51 +01:00
AndyMik90 91f7051dda docs: Add Git Flow branching strategy to CONTRIBUTING.md
- Add comprehensive branching strategy documentation
- Explain main, develop, feature, fix, release, and hotfix branches
- Clarify that all PRs should target develop (not main)
- Add release process documentation for maintainers
- Update PR process to branch from develop
- Expand table of contents with new sections
2025-12-22 20:20:59 +01:00
AndyMik90 8db71f3dfb Update version to 2.7.1 in package.json 2025-12-22 14:37:26 +01:00
AndyMik90 772a5006d4 2.7.1 2025-12-22 14:35:30 +01:00
AndyMik90 d23fcd8669 Enhance VirusTotal scan error handling in release workflow. Updated error messages to warnings and added a continue-on-error flag to allow the workflow to proceed despite scan failures. Improved reporting in vt_results.md for better visibility of issues encountered during the scan process. 2025-12-22 14:34:39 +01:00
AndyMik90 326118bd59 Refactor macOS build workflow to support Intel and ARM64 architectures. Added notarization steps for Intel builds and improved artifact handling. Updated caching keys for pnpm based on architecture. Enhanced error handling for VirusTotal API interactions and ensured proper JSON validation. This update streamlines the CI/CD process for macOS applications. 2025-12-22 14:31:21 +01:00
AndyMik90 6afcc92215 readme clarification 2025-12-22 14:27:49 +01:00
AndyMik90 2c9389012e fix version 2025-12-22 14:27:40 +01:00
AndyMik90 0d95f747f1 Release v2.7.0: Introduced tab persistence and modernized memory system. Added features like project tab management, enhanced task creation with @ autocomplete, and Ollama embedding model support. Improved memory system with LadybugDB integration, and streamlined CI/CD workflows. Fixed various UI bugs, including task title blocking buttons and terminal shortcut scoping. Unified default database path for consistency. Thanks to all contributors for their efforts! 2025-12-22 14:27:26 +01:00
Andy fe7290a850 V2.7.0 (#100)
* feat(memory): replace FalkorDB with LadybugDB embedded database

Remove Docker dependency for Graphiti memory integration by switching
to LadybugDB, an embedded graph database that works via monkeypatch
with graphiti-core's KuzuDriver.

Changes:
- Remove all FalkorDB configuration and connection code
- Simplify config to use GRAPHITI_DB_PATH for local storage
- Update requirements to use real_ladybug + graphiti-core
- Update documentation for Python 3.12+ requirement

This makes the memory system much simpler to set up - no Docker needed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: remove docker-compose.yml (FalkorDB no longer used)

FalkorDB has been replaced with LadybugDB embedded database,
so Docker is no longer required for the memory integration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: add automated release workflow with code signing

- Add release.yml workflow triggered on version tags (v*)
- Support manual dry-run builds via workflow_dispatch
- Build for macOS (arm64 + x64), Windows, and Linux
- macOS code signing with Developer ID certificate
- macOS notarization support for Gatekeeper approval
- Add entitlements.mac.plist for hardened runtime
- Generate SHA256 checksums for all release artifacts
- Auto-generate changelog from PR labels
- Add pnpm caching to CI workflow for faster builds
- Add lint, typecheck, and build steps to CI
- Update package.json with artifactName for consistent naming
- Fix extraResources filter to exclude test venvs

Artifacts will be named: Auto-Claude-{version}-{platform}-{arch}.{ext}

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor: replace Docker/FalkorDB with embedded LadybugDB for memory system

This major refactoring eliminates the Docker dependency for the memory system
by switching from FalkorDB to LadybugDB (embedded graph database).

Backend changes:
- Add query_memory.py: Python CLI for memory queries via subprocess
- Add kuzu_driver_patched.py: Patched Kuzu driver with FTS index support
- Add ollama_model_detector.py: Auto-detect Ollama embedding models
- Update client.py to use patched driver for proper FTS functionality
- Fix parameter handling for LadybugDB compatibility

Frontend changes:
- Add memory-service.ts: Node.js service wrapping Python subprocess
- Add memory-handlers.ts: IPC handlers for memory operations
- Add api-validation-service.ts: Validate LLM/embedder API keys
- Remove docker-service.ts and falkordb-service.ts (no longer needed)
- Update MemoryBackendSection with multi-provider embedder support
- Update InfrastructureStatus to show LadybugDB status
- Simplify GraphitiStep onboarding (no Docker setup required)

Key improvements:
- Zero Docker dependency - fully embedded database
- Multi-provider embedder support (OpenAI, Gemini, Voyage, Ollama, Azure)
- Hybrid RAG with semantic search, FTS, and graph traversal
- Automatic FTS index creation via patched driver
- Python 3.12 compatibility (LadybugDB requirement)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: correct model name and release workflow conditionals

Bug fixes:
- Fix model ID: claude-sonnet-4-5-latest → claude-sonnet-4-5-20250514
  (using dated version for stability)
- Fix release workflow: add github.event_name checks before accessing
  inputs.dry_run to prevent errors on tag push events

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: add Ollama embedding model support with auto-detected dimensions

- Add known model lookup table for popular Ollama embedding models:
  - embeddinggemma (768 dim) - Google's lightweight model
  - qwen3-embedding:0.6b/4b/8b (1024/2560/4096 dim) - Qwen3 series
  - nomic-embed-text, mxbai-embed-large, bge-large, all-minilm
- Auto-detect embedding dimensions for known models (no need to set OLLAMA_EMBEDDING_DIM)
- Fix config validation to not require OLLAMA_EMBEDDING_DIM for known models
- Fix PatchedKuzuDriver to set _database attribute (required by Graphiti)
- Fix get_status_summary to use db_path instead of deprecated falkordb_host

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor: rebrand memory system UI and simplify configuration

- Rename "Graphiti" to "Memory" throughout UI
- Remove LLM provider selection (Claude SDK handles RAG)
- Keep embedding provider selection (OpenAI, Ollama, Voyage, Google, Azure)
- Add Ollama model pull/download support
- Change default storage path from ~/.auto-claude/graphs to ~/.auto-claude/memories
- Make embedding provider fields conditional based on selection
- Add OllamaModelSelector component with auto-detection
- Create simplified MemoryStep for onboarding wizard
- Update SecuritySettings with provider-specific field rendering

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(ui): replace Unix shell syntax with cross-platform git commands

Fixes #90

Worktrees were showing "0" for all file changes on Windows because
Unix shell constructs (`2>/dev/null || echo`) are invalid in cmd.exe.

Changes:
- Replace `2>/dev/null || echo` with TypeScript try-catch
- Add `stdio: ['pipe', 'pipe', 'pipe']` to capture stderr
- Fix 7 locations in worktree-handlers.ts:
  - git rev-list --count (2 locations)
  - git diff --stat
  - git diff --numstat
  - git diff --name-status
  - git diff --shortstat
  - git merge-base --is-ancestor

The error "The system cannot find the path specified" was caused by
cmd.exe trying to interpret `/dev/null` as a literal file path.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(cli): update graphiti status display for LadybugDB

After migrating from FalkorDB (Docker-based) to LadybugDB (embedded),
the validate_environment function tried to access 'host' and 'port'
keys that no longer exist in the graphiti status dictionary.

Changes:
- Replace host:port display with db_path for embedded database
- Use .get() for safe key access

This fixes a KeyError crash when running auto-claude builds with
Graphiti memory enabled.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: improve Ollama UX in memory settings

- Replace manual Ollama config with OllamaModelSelector component
- Remove Base URL field (auto-detected from Ollama)
- Remove manual embedding dimension input (auto-detected from model)
- Show only installed models as selectable options
- Add download buttons for recommended models not yet installed
- Make embeddinggemma the recommended default model
- Remove qwen3-embedding from recommendations (focus on quality models)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: update CI and release workflows, remove changelog config

- Removed the obsolete changelog configuration file.
- Updated CI workflow to use `pnpm run test` instead of `pnpm test`.
- Modified release workflow to use `pnpm install --frozen-lockfile` for consistent dependency installation.
- Enhanced artifact handling by validating the presence of build artifacts before proceeding.

These changes streamline the workflows and improve reliability in the build process.

* fix: resolve all CI failures in PR #100

Python lint fixes (ruff):
- Fix import sorting in kuzu_driver_patched.py, ollama_model_detector.py, query_memory.py
- Add noqa: F401 for kuzu import used only for availability check

Frontend:
- Update pnpm-lock.yaml to remove ioredis dependencies

Test fixes:
- Update test_graphiti.py to reflect new multi-provider architecture
- Embedder is now optional (keyword search fallback works)
- LLM provider validation removed (Claude SDK handles RAG)
- Fix FalkorDB references to LadybugDB (db_path instead of host/port)

Config consistency:
- Fix get_graphiti_status() to be consistent with is_valid()
- Embedder errors are now warnings, not blockers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor: update memory test suite for LadybugDB

Replace FalkorDB-based tests with LadybugDB (embedded database) tests:

- test_ladybugdb_connection() - Verify embedded DB works
- test_save_episode() - Save test data to graph
- test_keyword_search() - Keyword fallback (no embeddings needed)
- test_semantic_search() - Vector search with embeddings
- test_ollama_embeddings() - Direct Ollama embedding test
- test_graphiti_memory_class() - Full wrapper class test
- test_database_contents() - Debug view of DB contents

Usage:
  python integrations/graphiti/test_graphiti_memory.py --test ollama
  python integrations/graphiti/test_graphiti_memory.py --test connection
  python integrations/graphiti/test_graphiti_memory.py  # all tests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: resolve remaining CI failures

Python:
- Add missing blank line after imports in query_memory.py (ruff I001)

TypeScript:
- Fix mock getBestAvailableProfile signature to accept optional parameter

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: remove f-string prefixes from strings without placeholders

Fixes ruff F541 errors in test_graphiti_memory.py

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* style: apply ruff formatting to 4 files

Auto-formatted kuzu_driver_patched.py and test_graphiti_memory.py

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: address CodeRabbit review comments from PR #100

- release.yml: Fix changelog output property (outputs.body not outputs.changelog)
- config.py: Update Anthropic model to generic claude-sonnet-4-5 identifier
- api-validation-service.ts: Fix error message to include both sk- and sess- prefixes
- ci.yml: Add quotes around command substitution for safety
- OllamaModelSelector.tsx: Add error logging to catch block
- OllamaModelSelector.tsx: Add AbortController cleanup pattern for unmount
- SecuritySettings.tsx: Add useEffect to sync showOpenAIKey prop changes
- SecuritySettings.tsx: Fix stale state in toggleShowApiKey
- SecuritySettings.tsx: Add aria-labels to password visibility buttons

Verified: nomic-embed-text uses 768 dimensions (CodeRabbit was incorrect about 1024)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* docs: add CodeRabbit review response tracking

Document rejected CodeRabbit suggestions with justification:
- nomic-embed-text uses 768 dims (not 1024 as claimed)
- MemoryStep checkmark UX is intentional design

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: sort imports in memory.py for ruff I001

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: address additional CodeRabbit review comments

Security fixes:
- kuzu_driver_patched.py: Add try/finally blocks for connection cleanup
- query_memory.py: Use parameterized queries to prevent Cypher injection
- query_memory.py: Use public get_validation_errors() instead of private method
- release.yml: Use ./* glob pattern to prevent option injection

Code quality:
- ollama_model_detector.py: Fix type annotation (str | None)
- cleanup-version-branches.sh: Fix empty tag count edge case
- config.py: Remove unused _validate_llm_provider method

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: update test and apply ruff formatting

- Remove test assertion for deleted _validate_llm_provider method
- Apply ruff format to query_memory.py

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: address CodeRabbit review feedback

- kuzu_driver_patched.py: Simplify multi-line f-string to single line
- config.py: Clarify LadybugDB requires Python 3.12+ in docstrings
- ci.yml: Fix pnpm store path echo command quoting
- test_graphiti.py: Use public API get_validation_errors() instead of private method

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: add embedding provider change detection and fix import ordering

Graphiti improvements:
- Add provider change detection in GraphitiMemory.initialize()
- Warn users when embedding provider changes to prevent dimension mismatches
- Guide users to run migration script or reset state
- Add test_provider_naming.py demo script for provider-specific database naming

Code quality fixes:
- Move inline `import re` to module top in query_memory.py
- Alphabetically order standard library imports (PEP8 compliance)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(ci): quote GITHUB_OUTPUT for shell safety

Quote the $GITHUB_OUTPUT variable in the pnpm store path
echo command to safely handle paths containing spaces.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: add GH_TOKEN and homepage for release workflow

- Add GH_TOKEN to all package steps (required for electron-builder to download native prebuilds)
- Add homepage and repository fields to package.json (required for Linux builds)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: add author email for Linux builds

electron-builder FPM target requires author email for .deb packages

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: make macOS notarization optional

Notarization can fail due to certificate issues - don't block the build.
Unsigned DMGs still work, users just see a security warning.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: save notarization logs to private artifact instead of public logs

- Captures Apple notarization failure details in downloadable artifact
- Keeps sensitive paths and info out of public CI logs
- Only repo collaborators can access the notarization-logs artifact

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: respect user's memory enabled flag in query_memory CLI

Remove the forced `config.enabled = True` override that ignored user's
explicit disable choice. The CLI tool should respect the enabled flag -
callers using the semantic-search command are explicitly requesting
memory functionality.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: improve migrate_embeddings robustness and correctness

- Add proper cleanup of source client when target initialization fails
- Fix database name derivation to use source provider's signature
  instead of incorrectly using current config's signature
- Add validation to prevent no-op migration between same providers
- Remove unused imports (json, Optional, GraphitiState)
- Fix ruff formatting issues (line length)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* style: fix ruff linting errors in graphiti queries

- Remove f-string prefix from strings without placeholders
- Fix line length formatting issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: use shell guard for notarization credentials check

The step-level `if: env.APPLE_ID != ''` condition was evaluated before
the step's env block was available, causing notarization to always be
skipped. Replace with a runtime shell guard that checks the environment
variable when the step actually runs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: allow @lydell/node-pty build scripts in pnpm v10

pnpm v10 blocks dependency lifecycle scripts by default. Add
@lydell/node-pty to onlyBuiltDependencies array so its native
module build scripts can run during installation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(ui): add project tab bar from PR #101

Cherry-picked from PR #101 for testing:
- Add tab state management to project store
- Create ProjectTabBar and SortableProjectTab components
- Remove project dropdown from Sidebar
- Add drag-and-drop tab reordering
- Include unit tests for tab functionality

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: simplify notarization step after successful setup

Remove debug logging and notarization-logs artifact upload now that
Developer ID Application certificate is properly configured.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: check APPLE_ID in shell instead of workflow if condition

secrets context cannot be used directly in if expressions.
Check env var in shell script instead.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(ui): change agent profile fallback from 'Balanced' to 'Auto (Optimized)'

The getProfileDisplay() function in AgentProfileSelector had a defensive
fallback that incorrectly displayed "Balanced" when no profile was found.
Changed to display "Auto (Optimized)" to match the actual default profile
configured in DEFAULT_APP_SETTINGS.

This ensures consistency with the intended default behavior where fresh
users should see "Auto (Optimized)" as their agent profile selection.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor(ui): simplify reference files and images handling in task modal

Remove separate reference files and images sections from the new task modal.
Images are now displayed as small clickable thumbnails directly below the
description field, and files can be referenced via @mentions in the description.

- Remove "Reference Images" toggle and dedicated ImageUpload section
- Remove "Referenced Files" section and ReferencedFilesSection component usage
- Add inline thumbnail display (64x64px) below description with remove buttons
- Update hint text to clarify drag & drop and paste functionality
- Clean up unused imports and state variables

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: use GitHub noreply email for author field

Prevents spam while maintaining traceability for open source project.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: create Python venv in userData for packaged apps

On Linux AppImages, the bundled resources directory is read-only,
which prevented venv creation. Now packaged apps store the venv in
userData (~/.config/auto-claude-ui on Linux) which is always writable.

This follows XDG conventions and fixes the Arch Linux AppImage issue.

Fixes: venv creation failure on Linux AppImage

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(ui): add keyboard shortcuts and tooltips for project tabs

Add standard browser/editor-style keyboard shortcuts for tab navigation:
- Cmd/Ctrl+1-9 to switch to specific tabs
- Cmd/Ctrl+Tab/Shift+Tab to cycle through tabs
- Cmd/Ctrl+W to close current tab

Replace native title tooltips with Radix tooltips that:
- Show after 200ms instead of ~1s native delay
- Display shortcuts in styled kbd badges
- Match app design with smooth animations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: improve task creation UX with @ autocomplete and better drag-drop

Fixes three UX issues reported by users:

1. Add @ file autocomplete in task description
   - Type @ to see file suggestions
   - Filters files as you type
   - Keyboard navigation (arrows, Enter, Escape)
   - Shows file path for disambiguation

2. Fix file browser scroll in project explorer
   - Remove conflicting ScrollArea wrapper
   - Let virtualizer handle scrolling directly
   - Files now visible after expanding deep folders

3. Add auto-scroll during drag-and-drop
   - Scroll form container when dragging near edges
   - Makes it possible to drag files to textarea when scrolled out of view

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(agent): enhance task restart functionality with new profile support

- Updated `restartTask` method to accept an optional `newProfileId` parameter, allowing for profile swapping during task restarts.
- Added logic to set the active profile if a new profile ID is provided.
- Adjusted event handling for `auto-swap-restart-task` to pass the new profile ID.

fix(agent): correct source type in rate limit info for spec creation

- Changed source type from 'task' to 'roadmap' in `createSDKRateLimitInfo` calls for better clarity in spec creation context.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

* fix(ui): fix tab persistence and scope terminal shortcuts

Two fixes:

1. Tab persistence on restart: Added explicit handling for when no tabs
   are open after app restart. Now auto-opens the first project tab
   instead of showing empty tab bar.

2. Keyboard shortcut scoping: Cmd/Ctrl+T now behaves contextually:
   - On Agent Terminals view: Opens new terminal (existing behavior)
   - On other views (Kanban, etc.): Opens Add Project dialog

   Added isActive prop to TerminalGrid to scope shortcuts to when
   the terminal view is active.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: unify default database path to ~/.auto-claude/memories

The default path was inconsistent across files:
- utils.ts used 'graphs'
- memory-service.ts used 'memories'
- .env.example documented 'graphs'

Unified all to use 'memories' to match Python backend config.py.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* auto-claude: subtask-1-1 - Add projectPath prop to PreviewPanel and implement custom img component

- Added projectPath prop to PreviewPanel interface
- Implemented custom img component for ReactMarkdown that converts relative paths
  (like .github/assets/...) to file:// URLs for Electron
- Updated ChangelogDetails to get selected project and pass its path to PreviewPanel
- Images now display correctly in preview mode while markdown source remains unchanged

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(merge): use stored baseBranch from task metadata for merge operations

Previously, merge logic hardcoded 'main' as the comparison branch when
detecting what files changed in a task. This broke the workflow where:
- Tasks branch FROM the configured default (main) or user-specified branch
- Tasks merge INTO the user's current working branch

Now the merge system:
1. Reads baseBranch from task_metadata.json (set during task creation)
2. Passes --base-branch to Python CLI for merge and merge-preview
3. Uses this for refresh_from_git() comparisons throughout the merge pipeline
4. Falls back to auto-detection (main/master/develop) if not specified

Files modified across frontend (TypeScript) and backend (Python) to thread
the task_source_branch parameter through the entire merge flow.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(merge): increase AI merge timeout from 2 to 10 minutes

Large merge operations with many conflicting files were timing out
before completion. The AI merge resolution was processing files
successfully but hitting the 2-minute limit when handling 17+ files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: use venv Python for terminal name generation

TerminalNameGenerator was using system Python which doesn't have
claude_agent_sdk installed. Now uses pythonEnvManager to get the
venv Python path where dependencies are installed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: prevent task title from blocking edit/close buttons

Two issues were blocking the edit/close buttons in TaskDetailModal:

1. The title element was extending beyond its visual boundaries
   - Added overflow-hidden to container and truncate to title

2. The Electron window's draggable region was capturing mouse events
   - Added electron-no-drag class to the button container to allow
     normal mouse interactions in that area

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: address CodeRabbit review issues

- memory-service.ts: Add app.getAppPath() path resolution for packaged
  Electron apps. This ensures query_memory.py is found in both dev and
  production builds, consistent with title-generator.ts pattern.

- MemoryStep.tsx: Make CheckCircle2 icon conditional on kuzuAvailable
  state. Previously showed success checkmark even when database wasn't
  available, misleading users.

- GitHubSetupModal.tsx: Fix incorrect API method name from
  getStoredGitHubToken to getGitHubToken. Also adds existing auth
  detection to skip already-completed authentication steps.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Readme for installors

* Project tab persistence and github org init on project creation

* fix(ui): address CodeRabbit PR review issues

Fix actual bugs identified in PR #100 review:
- Fix race condition in memory-handlers.ts timeout handling by using
  single timeout with proper cleanup and resolved flag
- Fix API key resolution in GraphitiStep.tsx to handle groq, azure_openai,
  and ollama providers
- Add TabState interface and getTabState/saveTabState to ElectronAPI types
- Add mock implementations for browser development

Also includes:
- Exclude pnpm-lock.yaml from check-yaml (uses URLs with colons as keys)
- Auto-fixes from pre-commit hooks (trailing whitespace, EOF, ruff-format)

Note: nomic-embed-text dimension (768) and import ordering were verified
as correct - CodeRabbit suggestions were false positives.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(tests): update tab management tests for IPC-based persistence

The project store now uses IPC (saveTabState/getTabState) instead of
localStorage for tab state persistence. Updated tests to:

- Remove localStorage.setItem assertions (no longer used)
- Update restoreTabState test to reflect it's now a no-op (actual
  loading happens via loadProjects → getTabState)
- Add getTabState/saveTabState mocks to test setup

This fixes the CI test failures where tests expected localStorage
calls but the implementation uses IPC.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 14:17:08 +01:00
Daniel Frey 8fb5f148fe fix: use dynamic Python command detection in subprocess tests (#104)
Replace hardcoded 'python3' with findPythonCommand() to handle different Python installations (py -3, python, python3) across platforms. Fixes test failures on Windows and systems without python3 command.

Co-authored-by: danielfrey63 <daniel.frey@sbb.ch>
2025-12-22 10:23:21 +01:00
bekalpaslan 185d520013 fix(task): prevent specs deletion when merge fails or is rejected (#88)
Fixes a critical bug where task specs were permanently deleted when a merge
operation failed, causing all tasks to disappear from the dashboard.

## Root Cause

When a merge fails or is rejected during human review, the cleanup code in
`execution-handlers.ts` ran `git clean -fd` to remove untracked files from
the failed merge. However, this command also deleted:
- `.auto-claude/specs/` - all task specifications and plans
- `.worktrees/` - isolated work environments

These directories are untracked (in .gitignore) and were being wiped out.

## Solution

Modified the `git clean` command to exclude critical Auto Claude directories:

```diff
- spawnSync('git', ['clean', '-fd'], ...)
+ spawnSync('git', ['clean', '-fd', '-e', '.auto-claude', '-e', '.worktrees'], ...)
```

This preserves:
- Task specs, plans, and QA reports in `.auto-claude/`
- Isolated worktree environments in `.worktrees/`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: alpaslannbek <alpaslannbek@gmail.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 09:12:06 +01:00
AndyMik90 89978edf6d fix: update npm scripts to use hyphenated product name
Update start:packaged:mac and start:packaged:win scripts to use
'Auto-Claude' instead of 'Auto Claude' to match the productName change
from PR #65.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 01:15:07 +01:00
Craig Van 8f1f7a769b fix: Replace space with hyphen in productName to fix PTY daemon spawn (#65)
Merged with additional fix for npm scripts to use hyphenated product name.
2025-12-21 01:14:35 +01:00
Andy bdca9af3b8 Merge pull request #82 from AndyMik90/v2.6.5
V2.6.5
2025-12-21 00:58:28 +01:00
AndyMik90 06fc5dab10 fix: address CI linting issues
- Format client.py to pass ruff line length check
- Consolidate redundant debug flag checks in index.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 00:51:37 +01:00
AndyMik90 a960f00307 fix: address remaining CodeRabbit review feedback
- Fix RoadmapFeatureStatus: default to 'under_review' not 'idea'
- Add target_audience type validation in roadmap phases
- Fix Puppeteer MCP logic: exclude Electron projects
- Unify debug flag to DEBUG (remove AUTO_CLAUDE_DEBUG)
- Fix drag overlay to show status instead of phase name
- Add test_roadmap_validation.py for type validation coverage
- Update .env.example documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 00:43:49 +01:00
AndyMik90 a05216590b chore: update version to 2.6.5 in package.json and package-lock.json
Bump the version of auto-claude-ui to 2.6.5 in both package.json and package-lock.json to reflect the latest release. This ensures consistency across the project dependencies.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-12-21 00:31:23 +01:00
AndyMik90 57fcc2403b refactor: use package.json as single source of truth for version
The Python backend now reads __version__ from auto-claude-ui/package.json
instead of hardcoding it. This ensures version consistency across the
entire project and simplifies the release process.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 00:27:55 +01:00
AndyMik90 c93fe96ee2 fix: resolve linting errors and failing tests for CI
- Fix Python import ordering in qa/loop.py and qa/reviewer.py
- Remove unused get_thinking_budget import from qa/loop.py
- Fix Python formatting in core/client.py, qa/loop.py, qa/reviewer.py
- Add version-manager mock in ipc-handlers.test.ts for consistent version testing
- Update roadmap-store tests to match current implementation behavior:
  - updateFeatureLinkedSpec sets status to 'in_progress' not 'planned'
  - getFeatureStats expects 'under_review' status (not deprecated 'idea')

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 00:26:26 +01:00
AndyMik90 6ee5a731f4 fix: address CodeRabbit review feedback for PR #82
- Add UTF-8 encoding specification in project_context.py
- Fix TOCTOU race conditions by consolidating exists()/stat() calls
- Move re module import to top-level in prompts.py
- Remove duplicate IdeationConfig type, use shared types
- Add thinking level validation with warning logging
- Fix OAuth handler security: redact device codes from logs
- Remove redundant setTimeout in OAuth extraction flow
- Use explicit string replace instead of regex for clarity

Also adds test_thinking_level_validation.py for validation coverage.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 00:24:58 +01:00
AndyMik90 f6601efc8a feat(roadmap): refactor kanban to status-based columns with delete functionality
- Replace phase-based kanban columns with status workflow:
  Under Review → Planned → In Progress → Done
- Add feature delete with confirmation dialog
- Add ROADMAP_STATUS_COLUMNS constant for column configuration
- Add useFeatureDelete and useRoadmapSave hooks
- Fix stale closure in useRoadmapSave to persist drag-drop changes
- Add ScrollArea to FeatureDetailPanel for proper scrolling
- Fix electron-no-drag on side panel headers to enable button clicks
- Add source tracking fields for future Canny.io integration
- Update SortableFeatureCard with phase badge and source indicators
- Add integration adapter interface for external feedback providers
- Update tests for new status-based architecture

The roadmap now uses a traditional status workflow while preserving
phase metadata for strategic planning views. This enables future
integration with feedback tools like Canny.io.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 00:16:18 +01:00
AndyMik90 a03fa8bc80 fix(qa): use dynamic prompt injection and fix browser tool selection
Bug 1: QA reviewer was using load_qa_reviewer_prompt() instead of
get_qa_reviewer_prompt(spec_dir, project_dir). This meant QA agents
never received dynamically-injected project-specific MCP tool docs
(e.g., Electron validation for Electron apps, Puppeteer for web).

Fix:
- Import get_qa_reviewer_prompt from prompts_pkg
- Add project_dir parameter to run_qa_agent_session()
- Update loop.py to pass project_dir to reviewer
- Remove redundant session context (now included in dynamic prompt)

Bug 2: Browser tool selection in client.py didn't check for
"not is_electron" when adding Puppeteer tools. If an Electron project
had ELECTRON_MCP_ENABLED=false, the elif would incorrectly add
Puppeteer tools to the Electron app.

Fix:
- Add "and not project_capabilities.get('is_electron')" to Puppeteer
  condition, matching the pattern in permissions.py:138

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 00:07:20 +01:00
AndyMik90 50f739dc16 fix(qa): add self-correction feedback loop to prevent infinite retries
The QA agent was failing to update implementation_plan.json and the
system would retry up to 50 times with the same prompt, wasting API
calls and never making progress.

Root cause: When QA agent didn't update the file, we just retried
with the identical prompt - the agent had no idea what went wrong.

Changes:
- Add MAX_CONSECUTIVE_ERRORS limit (3) to prevent infinite loops
- Track consecutive errors and reset on valid responses
- Build error context with detailed instructions for self-correction
- Inject recovery prompt explaining exactly what went wrong and
  what the agent must do (update implementation_plan.json with
  qa_signoff object containing status: approved/rejected)
- Add diagnostic info to error messages (message count, tool count)
- Early exit after 3 consecutive errors with human escalation

Before: 50+ iterations, ~2 min wasted, no progress
After: Max 3 attempts with feedback, ~6s, agent knows what to fix

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 23:20:34 +01:00
AndyMik90 14238788c9 fix: validate target_audience in roadmap and unify DEBUG env var
- Add target_audience and target_audience.primary to roadmap validation
  to prevent crash when this field is missing
- Unify all DEBUG environment variables to use DEBUG=true consistently
  (removes AUTO_CLAUDE_DEBUG and DEBUG_UPDATER variants)
- Development mode (NODE_ENV=development) also enables debug logging

Closes #84

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 22:24:36 +01:00
AndyMik90 39a08f6117 fix(ui): add null check for roadmap.targetAudience to prevent crash
The RoadmapHeader component crashed with "Cannot read properties of
undefined (reading 'primary')" when roadmap.targetAudience was not
yet populated. Added defensive null check to prevent black screen.

Closes #84

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 22:19:48 +01:00
AndyMik90 87e12cf627 feat(settings): add user-configurable model and thinking level for features
Add feature-specific model and thinking level configuration for Insights,
Ideation, and Roadmap features in the "Other Agent Settings" section.

Frontend changes:
- Add FeatureModelConfig and FeatureThinkingConfig types
- Add DEFAULT_FEATURE_MODELS and DEFAULT_FEATURE_THINKING constants
- Add feature settings UI in GeneralSettings "Other Agent Settings" section
- Remove redundant "Other Features" collapsible from AgentProfileSettings

Backend wiring:
- Update IPC handlers to read feature settings from settings.json
- Pass model/thinking-level args to ideation and roadmap Python runners
- Add RoadmapConfig type for passing config through agent manager

Python backend fixes:
- Fix hardcoded thinking levels in coder.py, planner.py, and qa/loop.py
  to use phase-specific settings from task_metadata.json
- Add --thinking-level CLI arg to ideation_runner.py and roadmap_runner.py
- Update ideation and roadmap generators to use configured thinking budget
- Fix spec orchestrator to use user's configured thinking level

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 22:05:49 +01:00
AndyMik90 4c8dfcafa7 refactor: update default phase models and thinking configurations
- Changed default phase models to use 'opus' for all phases, enhancing quality across spec creation, planning, coding, and QA.
- Updated thinking levels for each phase, introducing 'ultrathink' for spec creation and adjusting coding and QA levels to 'low' for faster iterations.

This refactor aims to optimize the overall performance and quality of the Auto profile.
2025-12-20 20:56:01 +01:00
AndyMik90 17b092ba39 fix: address CodeRabbit review feedback
- Remove unconditional auth logging in oauth-handlers.ts to prevent
  sensitive device codes from appearing in production logs
- Add useEffect state sync in CustomModelModal to prevent stale values
  when modal reopens with updated config
- Remove duplicate browser tool additions in client.py (already handled
  by permissions._get_qa_mcp_tools)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 20:54:06 +01:00
AndyMik90 4b09b0c47e chore: apply ruff formatting and fix lint errors
Run pre-commit checks: fixed unused import in cli/utils.py,
sorted imports in prompts_pkg/__init__.py, and applied ruff
formatting to 6 Python files. All tests pass (1140 passed).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 20:51:13 +01:00
Andy b64faed197 Merge pull request #81 from AndyMik90/feature/memory-database-refactor
Feature/memory database refactor
2025-12-20 20:40:45 +01:00
AndyMik90 252d4ccfd8 fix(windows): use temp file for insights history to avoid ENAMETOOLONG
- Write conversation history to temp file instead of command-line arg
- Add --history-file argument to insights_runner.py
- Cleanup temp file after process completes

Fixes #58

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 20:39:23 +01:00
AndyMik90 721b12753c fix(github): update device code regex pattern to enforce separator and normalize output
- Refine DEVICE_CODE_PATTERN to require a separator (hyphen or space) between code segments to prevent false matches.
- Update parseDeviceCode function to normalize space-separated codes to the expected hyphen format (XXXX-XXXX) for consistency.

This change enhances the reliability of device code parsing in the GitHub OAuth flow.
2025-12-20 20:36:18 +01:00
AndyMik90 757e5e04d2 feat(qa): add dynamic MCP tool injection based on project type
Implements context-aware MCP tool injection for QA agents to optimize
context window usage. Instead of including all browser automation tools
and documentation for every project, the system now detects project
capabilities and injects only relevant tools.

Key changes:
- Add project_context.py with capability detection (Electron, web
  frontend, API, database) from project_index.json
- Create modular MCP tool docs (prompts/mcp_tools/) that are injected
  dynamically based on detected capabilities
- Update permissions.py to filter MCP tools by project type
- Update client.py to pass capabilities through tool chain
- Add smart cache for project index refresh at spec creation

Context window savings:
- Electron apps: Only 4 Electron tools (not 12+ browser tools)
- Web frontends: Only 8 Puppeteer tools
- CLI projects: No browser tools at all

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 20:35:21 +01:00
AndyMik90 1d1e15446d fix(ui): resolve black screen when opening Custom Model modal
The CustomModelModal had a hardcoded `open={true}` prop on the Radix UI
Dialog, causing a rendering conflict when the parent unmounted it.
The overlay got stuck rendered, creating a black screen.

Fix: Use controlled `open` prop passed from parent instead of
conditional rendering with hardcoded dialog state.

Closes #79

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 20:25:01 +01:00
AndyMik90 69d5c7323f fix: resolve multiple bugs from GitHub issues
- fix(updater): use explicit refs/tags/ URL to avoid HTTP 300 error
  when branch and tag names collide (Closes #78, #72)

- fix(github): update device code regex pattern for newer gh CLI versions,
  add debug logging, and fix extraction mutex timeout (Closes #73, #40)

- fix(qa): add screenshot compression params to prevent buffer overflow
  from exceeding Claude SDK's 1MB JSON limit (Closes #74)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 19:00:47 +01:00
AndyMik90 9a03814e14 electron mcp for validation and testing (E2E) 2025-12-20 18:55:44 +01:00
AndyMik90 c52caa6b17 fix(auth): remove ANTHROPIC_API_KEY fallback to prevent silent billing
Remove ANTHROPIC_API_KEY from the authentication fallback chain.
Auto Claude is designed to use Claude Code OAuth tokens only.

Previously, if CLAUDE_CODE_OAUTH_TOKEN was empty or missing, the system
would silently fall back to ANTHROPIC_API_KEY from the environment,
causing unexpected API billing when users thought they were using OAuth.

Closes #76

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 18:38:12 +01:00
AndyMik90 12c8519246 fix(roadmap): improve competitor analysis UX and fix stop error
- Add ExistingCompetitorAnalysisDialog component for projects with
  existing competitor analysis, offering three options:
  - Use existing analysis (recommended)
  - Run new analysis (fresh web searches)
  - Skip competitor analysis
- Fix "exit code null" error when stopping roadmap generation quickly
  by tracking intentionally stopped processes in agent-queue.ts
- Add --refresh-competitor-analysis CLI flag to backend to allow
  independent refresh of competitor data
- Update IPC handlers, preload API, and store to support the new
  refreshCompetitorAnalysis parameter

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 15:45:00 +01:00
AndyMik90 8bcd00e4a6 fix(roadmap): improve competitor analysis UX and fix stop error
- Add ExistingCompetitorAnalysisDialog component for projects with
  existing competitor analysis, offering three options:
  - Use existing analysis (recommended)
  - Run new analysis (fresh web searches)
  - Skip competitor analysis
- Fix "exit code null" error when stopping roadmap generation quickly
  by tracking intentionally stopped processes in agent-queue.ts
- Add --refresh-competitor-analysis CLI flag to backend to allow
  independent refresh of competitor data
- Update IPC handlers, preload API, and store to support the new
  refreshCompetitorAnalysis parameter

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 15:37:46 +01:00
Andy 7649a607e6 Merge pull request #69 from AndyMik90/v2.6.0
Version 2.6.0
2025-12-20 14:36:09 +01:00
AndyMik90 f89e4e6c56 fix: create coroutine inside worker thread for asyncio.run
The coroutine was being created on the main thread before being passed
to ThreadPoolExecutor. This is incorrect as coroutines should be created
and run in the same thread. Use a lambda to defer coroutine creation
until execution inside the worker thread.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 14:31:18 +01:00
AndyMik90 b9797cbe21 fix: improve UX for phase configuration in task creation
Add visual affordances to make it clear that the Phase Configuration
section is clickable and editable:

- Add pencil icon and "Click to customize" text in collapsed state
- Improve hover state on the header
- Add labels for Model and Thinking columns in expanded state
- Better visual separation between collapsed and expanded states

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 13:40:56 +01:00
AndyMik90 cc38a0619c fix: address CodeRabbit PR #69 feedback
Security fixes:
- Fix Windows command injection vulnerability in terminal-handlers.ts
  by adding escapeShellArgWindows() for proper cmd.exe escaping
- Fix OAuth race condition in device code extraction using mutex pattern

Bug fixes:
- Fix settings migration to preserve existing user profile selections
  instead of unconditionally overwriting them
- Fix asyncio.run() to handle existing event loops by using ThreadPoolExecutor
- Add error logging for migration persistence failures

UX improvements:
- Add cleanup for copy feedback timeouts in GitHubOAuthFlow to prevent
  setState on unmounted component warnings
- Add error handling for failed agent profile saves

Type safety:
- Add _migratedAgentProfileToAuto to AppSettings interface
- Fix GraphitiStep type to use Partial<Pick<AppSettings, ...>>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 13:38:50 +01:00
AndyMik90 aee0ba4cc5 feat: add customizable phase configuration in app settings
Allow users to customize the model and thinking level for each phase
(Spec Creation, Planning, Coding, QA Review) when using the Auto profile.
These settings are persisted in app settings and used as defaults when
creating new tasks.

Changes:
- Add customPhaseModels and customPhaseThinking to AppSettings type
- Update AgentProfileSettings to show editable phase configuration
  when Auto profile is selected
- Update TaskCreationWizard to initialize from custom settings
- Phase config can still be overridden per-task in task creation wizard

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 13:38:38 +01:00
AndyMik90 9981ee4469 fix: sort imports in workspace.py to pass ruff I001 check 2025-12-20 13:38:11 +01:00
AndyMik90 297d380f4c fix(ui): auto-close task modal when marking task as done
Previously, clicking "Mark as Done" or "Delete Worktree & Mark Done"
  would update the task status but leave the modal open, requiring an
  extra click on "Close". Now the modal automatically closes after
  successfully marking a task as done for better UX.
2025-12-20 13:30:08 +01:00
AndyMik90 05062562f0 fix: resolve Python lint errors in workspace.py
- Consolidate split import blocks for core.workspace.display and core.workspace.git_utils
- Remove duplicate module-level `import re` (already imported in function scope)
- Sort import block alphabetically (asyncio, logging, os)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 13:25:53 +01:00
AndyMik90 438f6e2237 Merge branch 'auto-claude/050-github-connection-will-not-open-browser-on-macos' into v2.6.0 2025-12-20 13:22:07 +01:00
AndyMik90 458d4bb97a feat: implement parallel AI merge functionality
Add the ability to perform parallel merges using AI for conflict resolution. This includes the implementation of the `_run_parallel_merges` function, which processes multiple merge tasks concurrently, and the `_merge_file_with_ai_async` function for handling individual file merges.

Key changes:
- Introduced AI-based merging logic with a system prompt for 3-way merges.
- Added helper functions for inferring file types and building merge prompts.
- Updated tests to cover various scenarios for the new merging functionality.

This enhancement allows for more efficient handling of merge conflicts, leveraging AI to ensure accurate and context-aware resolutions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-12-20 13:19:57 +01:00
AndyMik90 10949905f7 refactor: move Agent Profiles from dashboard to Settings
Move the Agent Profiles configuration from a separate dashboard tab
to the Settings page under "Agent Settings". This provides a more
intuitive location for users to configure their default agent profile.

Changes:
- Create AgentProfileSettings component for settings page
- Add agent profiles to GeneralSettings 'agent' section
- Remove 'agent-profiles' from sidebar navigation
- Remove AgentProfiles view from App.tsx routing
- Update SidebarView type

The agent profiles are now accessible via Settings > Agent Settings,
alongside other agent-related configuration options.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 12:37:47 +01:00
AndyMik90 9ab5a4f2cc fix(planning): ensure planner agent writes implementation_plan.json
- Add explicit Write tool instructions to planner.md prompt
- Clarify that agent must use Write tool, not just describe file contents
- Fix PROMPTS_DIR path in prompts.py to correctly reference prompts/ directory
- Add checkpoint reminder in Phase 4 to verify Write tool was used
- Add critical instructions for all file creation phases (init.sh, build-progress.txt)

Fixes #38

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 12:37:00 +01:00
AndyMik90 f0a6a0a0af fix(windows): add platform detection for terminal profile commands
- Use cmd.exe syntax (set/%) on Windows
- Use bash syntax (export/$) on Unix/macOS

Fixes #51

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 12:34:45 +01:00
AndyMik90 cdda3ff277 Suggested commit message 2025-12-20 12:20:02 +01:00
AndyMik90 08aa2ff02b fix: default agent profile to 'Auto (Optimized)' for all users
Add one-time migration to reset selectedAgentProfile to 'auto' for
existing users. This ensures the optimized per-phase model selection
is the default experience for everyone.

The migration:
- Runs once on settings load (tracked by _migratedAgentProfileToAuto flag)
- Sets selectedAgentProfile to 'auto'
- Persists the change to settings.json
- Users can still change their preference afterward

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 12:18:39 +01:00
AndyMik90 37ace0a39a fix: update default selected agent profile to 'auto'
Changed the default value for the selected agent profile from 'balanced' to 'auto' in the AgentProfiles component to improve user experience and align with expected behavior.
2025-12-20 12:10:05 +01:00
AndyMik90 7f0eeba366 chore: bump version to 2.6.0
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 12:08:45 +01:00
AndyMik90 f82bd5b871 linting 2025-12-20 12:02:30 +01:00
AndyMik90 f117bccbbc Merge branch 'auto-claude/056-add-design-system-themes-to-electron-app' into v2.6.0 2025-12-20 11:58:43 +01:00
AndyMik90 8b59375404 fix: extract human-readable title from spec.md when feature field is spec ID
When the implementation_plan.json feature field contains the spec directory
name (e.g., "054-version-2-5-5-displays-version-2-5-0-in-updater") instead
of a human-readable title, the task card and modal showed the ugly spec ID.

Now detects when the feature field looks like a spec ID (starts with 3 digits
and a dash) and extracts the actual title from spec.md's first heading,
handling prefixes like "Quick Spec:" and "Specification:".

Example: "054-version..." → "Fix Version 2.5.5 Display in Updater"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 11:44:21 +01:00
AndyMik90 91a1e3df6c fix: resolve multiple platform and UI issues
Authentication:
- Add macOS Keychain token retrieval support to auth.py
- Fix UsageMonitor to decrypt tokens before API calls

Task Status:
- Fix JSON cache not updating on successful parse
- Replace one-time stuck detection with periodic re-checking
- Add visibility change handler for focus re-validation

Windows:
- Use temp file for insights history to avoid ENAMETOOLONG

Linux/Ubuntu:
- Handle non-UTF-8 file encoding with errors='replace'
- Add tomli fallback for Python 3.10 compatibility

UI:
- Fix ROADMAP_SAVE handler parameter type mismatch

Fixes #21, #43, #15, #45, #61, #42, #62, #58, #48, #49, #46

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 11:38:05 +01:00
AndyMik90 7f12ef0355 fix: task descriptions not showing for specs with compact markdown
Tasks like spec 053 were missing descriptions in the kanban board and
task modal because the regex for extracting the overview from spec.md
required two newlines after "## Overview" (a blank line).

Specs generated with compact markdown (no blank line after headers)
were not matched, resulting in empty descriptions.

Changes:
- Fix regex to accept one or more newlines: /## Overview\s*\n+/
- Add fallback to read from requirements.json task_description field
- Extract meaningful content from GitHub issue descriptions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 11:37:16 +01:00
AndyMik90 30921550df style: enhance WorkspaceStatus component UI
Updated the styling of the "Stage only" option in the WorkspaceStatus component for improved user experience. Changes include a more visually appealing label with rounded corners and hover effects, as well as dynamic text color based on the checkbox state. This enhances the overall design consistency and interactivity of the UI.
2025-12-20 11:29:34 +01:00
AndyMik90 2b96160ab0 fix: display correct merge target branch in worktree UI
The UI was showing "→ main" for all worktree merges because it checked
origin/HEAD (the remote's default branch) instead of the user's current
local branch.

This caused confusion since the actual merge logic in Python correctly
merges into the user's current branch (e.g., v2.6.0), but the UI
displayed "→ main".

Changed baseBranch detection from origin/HEAD to the current local
branch (git rev-parse --abbrev-ref HEAD) in three handlers:
- TASK_WORKTREE_STATUS
- TASK_WORKTREE_DIFF
- TASK_LIST_WORKTREES

Now the UI accurately reflects where changes will be merged.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 11:24:31 +01:00
AndyMik90 7171589002 Cleanup UI design for build review process 2025-12-20 11:14:15 +01:00
AndyMik90 2a96f855ae Improvement/refactor task sidebar to task modal 2025-12-20 11:08:44 +01:00
Andy 3ac3f067cc Merge pull request #33 from adryserage/feature/graphiti-multi-provider-support
feat(graphiti): add Google AI as LLM and embedding provider
2025-12-20 10:09:03 +01:00
Andy 535d58c80f Merge branch 'main' into feature/graphiti-multi-provider-support 2025-12-20 10:08:49 +01:00
AndyMik90 2ef90b980f auto-claude: 5.2 - Add validation for invalid colorTheme fallback
Verify theme settings persist after app restart:
- Settings stored in settings.json via Electron IPC
- colorTheme included in DEFAULT_APP_SETTINGS

Add invalid colorTheme fallback to 'default':
- Added validation against COLOR_THEMES array
- Invalid stored values now fallback to 'default'

Verify system mode preference detection:
- Uses matchMedia API with event listener
- Correctly handles 'system' mode preference

Ensure no CSS flash on load:
- Default theme uses :root CSS (no data-theme attribute)
- Settings initialize with colorTheme: 'default'
- IPC loads fast (local process, not network)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 02:01:44 +01:00
AndyMik90 e6654b96c5 auto-claude: 4.2 - Remove the Sun/Moon toggle button from the Sidebar
Removed theme toggle functionality from sidebar header:
- Removed Sun/Moon toggle button from header section
- Removed toggleTheme function and isDark calculation
- Removed unused Moon, Sun icons from lucide-react imports
- Removed unused saveSettings import

Theme selection is now exclusively in Settings > Appearance via
the ThemeSelector component which provides full 7-theme support
with light/dark/system mode toggle.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 01:49:17 +01:00
AndyMik90 5db28fd8e8 auto-claude: 4.1 - Modify the theme application useEffect in App.tsx
Updated the theme application useEffect to set/remove the data-theme
attribute on document.documentElement based on settings.colorTheme.
- Default theme removes the data-theme attribute
- Other themes set data-theme="themeName"
- Added settings.colorTheme to useEffect dependency array
- Falls back to 'default' if colorTheme is undefined

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 01:46:57 +01:00
AndyMik90 c1207ef7fc auto-claude: 3.2 - Replace simple mode toggle with ThemeSelector component
- Updated ThemeSettings.tsx to use the new ThemeSelector component
- Removed old 3-button mode toggle in favor of full theme selector grid
- ThemeSelector provides both color theme selection (7 themes) and mode toggle
- Simplified ThemeSettings to act as a wrapper with consistent section layout

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 01:45:24 +01:00
AndyMik90 70072e4281 auto-claude: 3.1 - Create ThemeSelector component with theme grid and mode toggle
- Create ThemeSelector.tsx component in settings folder
- Display a grid of theme cards showing name, description, and preview color swatches
- Preview swatches show bg/accent colors based on current light/dark mode
- Include a 3-option mode toggle (Light/Dark/System)
- Handle selection via props callbacks (onSettingsChange pattern)
- Export component from settings barrel file

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 01:43:32 +01:00
AndyMik90 ba776a3fb8 auto-claude: 2.6 - Add forest theme CSS with natural green palette
Add [data-theme="forest"] and [data-theme="forest"].dark CSS blocks with
natural green palette mapped to app variables:

Light mode:
- Background: #DCFCE7 (soft mint green)
- Foreground: #14532D (dark forest green)
- Primary accent: #16A34A (natural green)
- Borders: #86EFAC (light green)

Dark mode:
- Background: #052E16 (deep forest)
- Foreground: #F0FDF4 (near white with green tint)
- Primary accent: #4ADE80 (bright green)
- Card surfaces: #166534 (medium forest green)

Follows existing theme patterns for dusk, lime, ocean, retro, neo.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 01:40:51 +01:00
AndyMik90 e2b24e2e25 auto-claude: 2.5 - Add [data-theme="neo"] and [data-theme="neo"].dark
Add Neo theme CSS blocks with cyberpunk pink/purple palette:
- Light mode: soft lavender background (#FDF4FF), fuchsia accent (#D946EF)
- Dark mode: deep purple background (#0F0720), bright pink accent (#F0ABFC)
- Dark mode includes unique neon glow shadows for cyberpunk aesthetic
- All color variables mapped to app's existing variable naming convention

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 01:39:07 +01:00
AndyMik90 7589046bbe auto-claude: 2.4 - Add Retro theme CSS variables (light and dark)
Add [data-theme="retro"] and [data-theme="retro"].dark CSS blocks with
warm amber/orange palette mapped to app variables:

Light mode:
- Background: #FEF3C7 (warm cream/amber)
- Primary accent: #D97706 (amber/orange)
- Text: #78350F (warm brown)

Dark mode:
- Background: #1C1917 (warm stone/charcoal)
- Primary accent: #FBBF24 (bright gold/amber)
- Text: #FEFCE8 (cream/off-white)

All color variables mapped to the app's variable naming convention,
following the same pattern as existing Dusk, Lime, and Ocean themes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 01:37:09 +01:00
AndyMik90 e248256649 auto-claude: 2.3 - Add [data-theme="ocean"] and [data-theme="ocean"].dark CSS blocks
Added Ocean theme CSS variables for both light and dark modes:
- Light mode: sky blue background (#E0F2FE) with blue accent (#0284C7)
- Dark mode: deep ocean (#082F49) with bright sky blue (#38BDF8)
- All color variables mapped to app's variable naming convention
- Includes semantic colors, shadows, and focus states
2025-12-20 01:35:03 +01:00
AndyMik90 76c1bd7578 auto-claude: 2.2 - Add [data-theme="lime"] CSS theme blocks
Add lime theme CSS variables for both light and dark modes:
- Light: Fresh lime background (#E8F5A3) with purple accent (#7C3AED)
- Dark: Deep purple undertones (#0F0F1A) with bright purple (#8B5CF6)
- Maps design system color variables to app's variable naming convention

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 01:33:00 +01:00
AndyMik90 bcbced24e5 auto-claude: 2.1 - Add Dusk theme CSS variables (light and dark)
Copy [data-theme="dusk"] and [data-theme="dusk"].dark CSS blocks from
.design-system/src/styles.css. Map design system variables to app's
existing variable structure (--background, --foreground, --primary, etc.).

Dusk Light: Warm, muted palette with olive/yellow accents (#B8B978)
Dusk Dark: Fey-inspired dark theme with pale yellow accents (#E6E7A3)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 01:31:22 +01:00
AndyMik90 a75c0a9965 auto-claude: 1.3 - Add colorTheme: 'default' to DEFAULT_APP_SETTINGS
Added colorTheme: 'default' as const to DEFAULT_APP_SETTINGS in config.ts
to ensure new users start with the default theme.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 01:29:31 +01:00
AndyMik90 c505d6e32c auto-claude: 1.2 - Create themes.ts file in constants directory
Add COLOR_THEMES constant array with all 7 theme definitions:
- Default: Oscura-inspired with pale yellow accent
- Dusk: Warmer variant with slightly lighter dark mode
- Lime: Fresh, energetic lime with purple accents
- Ocean: Calm, professional blue tones
- Retro: Warm, nostalgic amber vibes
- Neo: Modern cyberpunk pink/magenta
- Forest: Natural, earthy green tones

Each theme includes preview colors for light/dark mode variants.
Export added to constants/index.ts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 01:28:07 +01:00
Andy 7d053313b5 Merge pull request #54 from AndyMik90/v2.5.6
chore: update version number to 2.5.6 in package.json
2025-12-20 01:27:32 +01:00
AndyMik90 e9535c8dc4 chore: update version number to 2.5.6 in package.json
This commit increments the version of the auto-claude-ui package to 2.5.6, reflecting the latest changes and improvements made in the project.
2025-12-20 01:27:15 +01:00
Andy 1642719445 Merge pull request #53 from AndyMik90/v2.5.6
V2.5.6
2025-12-20 01:26:35 +01:00
AndyMik90 3efab867c5 refactor: improve drag-and-drop handling and cleanup in FileTreeItem and ClaudeOAuthFlow components
- Added useEffect in FileTreeItem to clean up custom drag image on component unmount, preventing memory leaks.
- Enhanced drag image creation using safe DOM manipulation instead of innerHTML.
- Updated ClaudeOAuthFlow to manage auto-advance timeout with cleanup on unmount, ensuring onSuccess is not called after component unmount.

These changes enhance the reliability and performance of drag-and-drop functionality and OAuth flow handling.
2025-12-20 01:26:23 +01:00
AndyMik90 2ca89ce7c9 auto-claude: 1.1 - Add ColorTheme type and ColorThemeDefinition interface
Add multi-theme type definitions to settings.ts:
- ColorTheme union type with 7 theme options
- ThemePreviewColors interface for theme preview UI
- ColorThemeDefinition interface for theme metadata
- Optional colorTheme property in AppSettings interface

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 01:25:36 +01:00
AndyMik90 52e12d8d2a refactor: enhance terminal command handling and security
- Introduced shell escape utilities to prevent command injection in terminal commands.
- Updated terminal handlers to use safe command construction for profile switching and OAuth token initialization.
- Removed unnecessary console warnings, replacing them with debug logs for cleaner output.
- Implemented a wait mechanism to monitor terminal output for Claude exit, improving profile switching reliability.

This update improves the security and reliability of terminal command execution, ensuring user inputs are safely handled.
2025-12-20 01:24:40 +01:00
AndyMik90 c5b72451af fix: improve drag-and-drop functionality in FileTreeItem component
- Added useRef to manage custom drag image for better cleanup
- Updated drag image positioning to prevent display issues
- Enhanced cleanup process for drag image element on drag end

This update refines the drag-and-drop experience within the file tree, ensuring that custom drag images are handled more effectively.
2025-12-20 01:18:10 +01:00
AndyMik90 ffd8b153a5 Merge PR #52: fix: save Claude OAuth token to active profile during GitHub setup flow 2025-12-20 01:12:01 +01:00
AndyMik90 ee168d317f feat: enhance Git integration and drag-and-drop functionality
- Implement default branch selection in GitHub integration settings
- Fetch and display available branches based on the project path
- Update TaskCreationWizard to support file reference drops in the description
- Improve drag-and-drop handling for file references and images
- Add console logging for agent process when DEBUG is enabled
- Refactor FileTreeItem to manage drag state and custom drag images

This update enhances user experience with Git operations and improves the task creation workflow by allowing users to easily reference files.
2025-12-20 01:09:46 +01:00
AndyMik90 a335925eae feat: add Git Options section to task creation wizard
- Add collapsible Git Options section with base branch selector
- Allow per-task override of the worktree base branch
- Fetch and display available branches from the project repository
- Show project default branch in placeholder when available
- Use special placeholder value for Radix UI Select compatibility
- Move DndContext inside DialogContent for proper portal behavior
- Add drag-and-drop debugging logs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 00:49:07 +01:00
AndyMik90 cf1ba6b57b fix: auto-restart Claude sessions when switching profiles
When switching Claude profiles via the UI, existing terminal sessions
now automatically restart with the new profile's OAuth token. This
fixes the issue where users had to manually restart Claude after
switching profiles.

Changes:
- Profile switch handler now iterates active terminals and restarts
  Claude sessions that are in Claude mode
- Added clear terminal before profile switch to hide temp file command
- Fixed OAuth token regex to match 'default' profile ID (not just
  profile-\d+)
- Hide "Authenticate" button when profile is already authenticated
- Add re-authenticate button (refresh icon) for authenticated profiles
- Added debug logging for profile switching (enabled with DEBUG=true)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 00:23:45 +01:00
AndyMik90 ce7c95cae7 fix: resolve GitHub update system issues and version tracking
- Fix HTTP 415 error when downloading updates from GitHub API
  - Use 'application/vnd.github+json' Accept header for API URLs
  - Use 'application/octet-stream' only for CDN/direct download URLs

- Add getEffectiveVersion() to track installed source version
  - Reads from .update-metadata.json written during updates
  - Works in both dev mode and packaged app
  - Falls back to app.getVersion() if no metadata found

- Update version display to persist after app reload
  - APP_VERSION IPC now returns effective version
  - Update checker uses effective version for comparison
  - UI updates displayVersion from check result

- Add comprehensive DEBUG logging for update process
  - Logs update stages: download, extract, apply
  - Logs version resolution and metadata paths
  - Shows clear success/failure banners

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 00:23:39 +01:00
Andrew Chepurny 4b6a59826e fix: add null check for active profile during OAuth token save
Added defensive null check when saving OAuth tokens to active profile during
non-profile terminal flows (e.g., GitHub setup). Previously, if no active
profile existed, the code would crash when trying to access activeProfile.id.

Changes:
- Added null check for activeProfile before attempting to save token
- Send failure event to UI when no active profile is found
- Include profileId in failure event for consistency
- Added docstrings to fall
2025-12-19 18:06:18 -05:00
Andrew Chepurny e6058168f0 fix: save Claude OAuth token to active profile during GitHub setup flow
When users authenticate with Claude during the GitHub setup modal, the
OAuth token is now automatically saved to the active Claude profile
instead of being ignored.

Changes:
- Modified handleOAuthToken() to save tokens to active profile when not
  in a profile-specific terminal (e.g., during GitHub OAuth flow)
- Added Claude authentication step to GitHub setup modal flow
- Renamed setup steps for clarity: 'auth' → 'github-auth',
2025-12-19 17:42:57 -05:00
Andy c7dde1f979 Merge pull request #37 from adryserage/fix/windows-python-and-init-popup
Fix Windows Python detection and initialization popup issues
2025-12-19 20:17:58 +01:00
adryserage 15a7585f6e fix(python): correctly handle 'py -3' command on Windows
Critical bug fix: The Python detector was returning 'py' instead of 'py -3'
on Windows, which could cause Python 2 to be invoked instead of Python 3.

Changes:
- Removed special case in findPythonCommand() that stripped the '-3' flag
- Added parsePythonCommand() helper to split space-separated commands
- Updated all 9 spawn() call sites to properly handle command parsing:
  * agent-process.ts
  * agent-queue.ts (2 locations)
  * title-generator.ts
  * terminal-name-generator.ts
  * changelog/generator.ts
  * changelog/version-suggester.ts
  * ipc-handlers/task/worktree-handlers.ts (2 locations)

This ensures Windows systems using 'py -3' launcher correctly invoke
Python 3 instead of potentially defaulting to Python 2.

Fixes issue identified in PR review comment.
2025-12-19 14:08:58 -05:00
Andy c486e5ba84 Merge pull request #44 from mojaray2k/fix/ui-improvements-post-merge
Fix file explorer to show hidden directories
2025-12-19 19:24:22 +01:00
Amen-Ra Mendel d94833a678 Fix file explorer to show hidden directories
## Problem
Users couldn't access hidden directories like `.claude`, `.auto-claude`,
`.github`, `.vscode`, etc. when creating tasks or adding file references.

## Root Cause
File explorer filtered out ALL files/directories starting with `.` except `.env`,
making important configuration directories invisible.

## Solution

### 1. Allow hidden directories to be visible
- Changed filter to only hide hidden FILES, not directories
- Hidden directories like `.claude`, `.github`, `.vscode`, `.idea` now visible

### 2. Keep useful hidden files visible
- `.env`, `.gitignore`, `.env.example`, `.env.local` still shown
- Other random hidden files (`.DS_Store`, etc.) still filtered

### 3. Updated IGNORED_DIRS
- Removed `.auto-claude` (contains user specs/data)
- Removed `.vscode` and `.idea` (users may need IDE config)
- Kept truly problematic dirs: `.git`, `node_modules`, `.cache`, `.worktrees`

## User Impact
Users can now drag and reference files from `.claude`, `.auto-claude`,
`.github`, and other configuration directories when creating tasks.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-19 11:17:09 -05:00
Andy 376e950bd4 Merge pull request #41 from flokosti96/master
fix: human feedback not processed when QA already approved
2025-12-19 16:36:32 +01:00
AndyMik90 0959e790df fix: use model parameter for human feedback fixer
The fixer client for human feedback was hardcoding "sonnet" as the
fallback model instead of using the model parameter passed to
run_qa_validation_loop. This now correctly passes the user's chosen
model to get_phase_model.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 16:31:30 +01:00
AndyMik90 e134c4cba9 auto-claude: subtask-3-1 - Write unit tests for device code parsing and shell
Add comprehensive unit tests for GitHub OAuth handlers:
- Device code parsing from gh CLI stdout/stderr output
- shell.openExternal success and failure handling
- Fallback URL provision when browser launch fails
- Error handling for gh CLI process errors and non-zero exit codes
- gh CLI check and auth status handlers
- Repository format validation for command injection prevention

21 new tests covering all critical OAuth flow paths.

Also updates vitest.config.ts to include *.spec.ts files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 16:26:54 +01:00
AndyMik90 81e1536801 auto-claude: subtask-2-3 - Add authentication timeout handling (5 minutes)
- Add 5-minute authentication timeout using useCallback and useRef for cleanup
- Implement clearAuthTimeout helper to manage timeout lifecycle
- Start timeout when auth begins, clear on success/failure/unmount
- Add isTimeout state to track timeout vs other errors
- Display timeout-specific UI with Clock icon and warning colors
- Show clear error message with retry option on timeout
- Timeout set to 5 minutes (GitHub device codes expire after 15 minutes)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 16:22:42 +01:00
AndyMik90 1a7cf409eb auto-claude: subtask-2-2 - Implement fallback URL display when browser launch fails
- Added fallback URL card in error state when authUrl is available
- Shows "Complete Authentication Manually" instructions when browser fails to open
- Added copyable URL display with Copy button that tracks copy state separately
- Added "Open URL in Browser" button to attempt manual browser launch
- Shows device code reminder in fallback card if available
- Changed Retry button in error state to call handleStartAuth instead of
  handleRetry for fresh auth attempt
- Added urlCopied state variable to track URL copy status independently
  from device code copy status

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 16:19:50 +01:00
AndyMik90 5f26d3964d auto-claude: subtask-2-1 - Add device code display state and UI component
- Add device code, auth URL, and browser opened state variables to GitHubOAuthFlow
- Display prominent device code card during authentication with copy button
- Show manual auth URL link when browser fails to open
- Update IPC types to include deviceCode, authUrl, browserOpened, and fallbackUrl
- Add visual feedback for code copy (checkmark icon when copied)
- Instructions adapt based on whether browser opened successfully
2025-12-19 16:17:02 +01:00
AndyMik90 4a4ad6b1df auto-claude: subtask-1-4 - Add error handling and fallback URL return for browser launch failures
- Added fallbackUrl field to GitHubAuthStartResult interface
- Updated success case to include fallbackUrl when browser fails to open
- Updated failure case to always provide fallbackUrl for manual recovery
- Updated gh process error handler to include fallbackUrl
- Updated catch block to include fallbackUrl for exception cases

This ensures users always have a way to manually navigate to the auth URL
when automatic browser opening fails (e.g., due to macOS security restrictions).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 16:13:29 +01:00
AndyMik90 5702692940 fix: resolve lint errors in PR #41
- Format Python code in qa/loop.py per ruff standards
- Add missing success property to WorktreeMergeResult data object

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 16:10:29 +01:00
AndyMik90 6a4c1b452b auto-claude: subtask-1-2 - Implement device code extraction from gh CLI stdout
Modify registerStartGhAuth to:
- Extract device code from gh CLI stdout/stderr as data streams in
- Use parseDeviceFlowOutput to get device code and auth URL
- Open browser via shell.openExternal (bypasses macOS restrictions)
- Return device code, auth URL, and browserOpened status in response
- Handle browser open failures gracefully (allows manual fallback)

Added GitHubAuthStartResult interface with deviceCode, authUrl,
and browserOpened fields for rich response data.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 16:09:28 +01:00
AndyMik90 b75a09c88c auto-claude: subtask-1-1 - Add shell import and device code parsing logic to oauth-handlers.ts
- Import `shell` from Electron for browser launching capability
- Add DEVICE_CODE_PATTERN regex to parse device code (format: XXXX-XXXX) from gh CLI output
- Add DEVICE_URL_PATTERN regex and GITHUB_DEVICE_URL constant for device flow URL
- Add parseDeviceCode() helper to extract device code from output
- Add parseDeviceUrl() helper to extract or default to GitHub device flow URL
- Add DeviceFlowInfo interface for structured device flow output
- Add parseDeviceFlowOutput() helper to parse both stdout and stderr for device flow info

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 16:05:56 +01:00
Andy 0601520e9b Merge pull request #35 from adryserage/fix/version-automation-issue-27
fix: implement automated version management to prevent version mismatches (#27)
2025-12-19 16:00:55 +01:00
Flokosti 412ed0be3c fix: human feedback not processed when QA already approved
Bug: Clicking "Request Changes" in Human Review caused the task to
immediately return to human_review without applying any fixes.

Root causes:
- QA_FIX_REQUEST.md was written to main project instead of worktree
- QA process ran against main project path (missing implementation_plan.json)
- Early return in qa_commands.py and loop.py if QA already approved,
  ignoring pending human feedback

Fixes:
- Write QA_FIX_REQUEST.md to worktree spec directory
- Run QA process with worktree path where build files exist
- Check for human feedback before "already approved" early return
- Process human feedback by running QA fixer first
- Reset staged changes in main when going back to QA
- Add check for already-staged changes to prevent duplicate work

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 15:52:27 +01:00
adryserage 586aa9f8c3 fix(ui): Fix initialization popup not closing automatically on success
**Issue:**
The initialization popup would not close automatically after successful
initialization due to a race condition in the Dialog's onOpenChange handler.
The handler couldn't distinguish between user-initiated close and
programmatic close after success.

**Root Cause:**
When we programmatically closed the dialog after successful init, React's
state batching meant the onOpenChange handler couldn't reliably check if
pendingProject was null yet, causing it to trigger the "skip" logic instead
of completing successfully.

**Fixes:**
1. Added initSuccess state flag to track successful initialization
2. Updated handleInitialize to set flag before closing dialog
3. Modified onOpenChange condition to check !initSuccess before calling skip
4. Added error state and UI display for failed initializations
5. Added comprehensive debug logging throughout initialization flow

**Files Modified:**
- auto-claude-ui/src/renderer/App.tsx
- auto-claude-ui/src/renderer/stores/project-store.ts

**Behavior:**
- On success: Closes automatically and opens GitHub setup modal
- On failure: Stays open with clear error message for user to retry
- On skip: Closes and remembers skip preference
- Debug logs show exactly what's happening at each step

Fixes initialization popup staying open after successful project setup.
2025-12-19 08:35:43 -05:00
adryserage bc6470f5c3 fix(ui): Add cross-platform Python detection and fix dependency installation
This commit fixes Python-related issues on Windows and other platforms:

**Python Detection Issues:**
- Fixed "spawn python3 ENOENT" errors on Windows
- All services were hardcoded to use 'python3' which doesn't exist on Windows
- Created python-detector.ts utility with intelligent detection:
  - Windows: tries 'py -3', 'python', 'python3', 'py' (in order)
  - Unix/Mac: tries 'python3', 'python' (in order)
  - Verifies each candidate is actually Python 3.x
  - Falls back to platform-specific default if none found

**Dependency Installation Issues:**
- Fixed PythonEnvManager failing to install dependencies
- Newer Python versions (3.13+) create pip3.exe instead of pip.exe
- Changed to use 'python -m pip' for universal compatibility
- Added automatic pip bootstrapping using 'python -m ensurepip'
- Works across all Python versions and platforms

**Files Modified:**
- Created: auto-claude-ui/src/main/python-detector.ts
- Updated: agent-process.ts, title-generator.ts, terminal-name-generator.ts,
  changelog-service.ts, insights/config.ts, worktree-handlers.ts,
  python-env-manager.ts

Fixes issues where Windows users couldn't run tasks, generate titles,
or install Python dependencies.
2025-12-19 08:35:20 -05:00
adryserage a107ed03a3 fix(graphiti): address additional CodeRabbit review comments
- Fix FalkorDB default port from 6379 to 6380
- Update provider list comment to include Google AI
- Fix requirements.txt comment to mention both LLM and embeddings
- Add logging and warning for unimplemented tool calling in GoogleLLMClient
- Fix overly broad exception handling (catch only JSONDecodeError)
- Add Azure deployment name validation (LLM and embedding deployments)
2025-12-19 08:01:09 -05:00
adryserage 679b8cd948 fix(graphiti): address CodeRabbit review comments
- Apply ruff formatting to Python files
- Fix ENV_GET handler to populate graphitiProviderConfig from .env
- Add Google AI to get_available_providers() function
- Fix type assertions to include google/groq/huggingface providers
- Fix asyncio deprecation: use get_running_loop() instead of get_event_loop()
2025-12-19 07:56:40 -05:00
adryserage cece172df6 fix: implement automated version management to prevent version mismatches
Fixes #27

## Problem
Version 2.5.5 was displaying as 2.5.0 in the updater because package.json
wasn't updated when the git tag was created.

## Solution
This PR implements a comprehensive automated version management system:

### 1. Version Bump Script (scripts/bump-version.js)
- Automates version updates in package.json
- Creates git commits and tags automatically
- Prevents human error in version management
- Supports semver bumps (major/minor/patch) or specific versions

### 2. Version Validation Workflow (.github/workflows/validate-version.yml)
- Runs automatically on every git tag push
- Validates package.json version matches the git tag
- Fails CI if versions mismatch with clear error messages
- Prevents releases with incorrect versions

### 3. Documentation (RELEASE.md)
- Complete release process guide
- Troubleshooting for version issues
- Release checklist

### 4. Updated package.json
- Fixed current version from 2.5.0 to 2.5.5

## Impact
-  Prevents version mismatch issues from happening again
-  Automates release process
-  CI validation catches manual errors
-  Clear documentation for maintainers
2025-12-19 07:52:06 -05:00
adryserage 1a38a06e6e fix(lint): sort imports in Google provider files
Move relative imports before TYPE_CHECKING block to satisfy ruff I001.
2025-12-19 07:48:13 -05:00
adryserage fe691066dd feat(graphiti): add Google AI as LLM and embedding provider
Add full Google AI (Gemini) support for Graphiti memory system:

Backend:
- Add google-generativeai dependency to requirements.txt
- Create GoogleEmbedder class with text-embedding-004 default model
- Create GoogleLLMClient class with gemini-2.0-flash default model
- Add GOOGLE to LLMProvider and EmbedderProvider enums
- Add google_api_key, google_llm_model, google_embedding_model config
- Update factory to create Google LLM client and embedder
- Add validation for Google provider configuration

Frontend:
- Add 'google' to GraphitiLLMProvider and GraphitiEmbeddingProvider types
- Add Google AI option to LLM provider dropdown in Setup Wizard
- Add Google AI option to embedding provider dropdown
- Add Google API key input field with link to Google AI Studio
- Update MemoryBackendSection and SecuritySettings components
- Update env-handlers to save GOOGLE_API_KEY, GOOGLE_LLM_MODEL,
  and GOOGLE_EMBEDDING_MODEL to .env files

This allows users to use Google's Gemini models for both LLM operations
(graph extraction, search, reasoning) and embeddings in Graphiti memory.
2025-12-19 07:45:54 -05:00
Andy 0f47961a8c Merge pull request #24 from mojaray2k/fix/github-org-repo-support
Fix GitHub organization repository support
2025-12-19 13:05:17 +01:00
Andy 9299ee107a Merge pull request #31 from adryserage/feature/graphiti-provider-selection
feat(ui): add LLM provider selection to Graphiti onboarding
2025-12-19 13:04:47 +01:00
adryserage 6680ed49f6 fix(types): add missing AppSettings properties for Graphiti providers
- Add globalAnthropicApiKey, globalGoogleApiKey, globalGroqApiKey to AppSettings
- Add graphitiLlmProvider and ollamaBaseUrl to AppSettings
- Use proper typed access instead of Record<string, unknown> casts
- Import AppSettings type in GraphitiStep component
2025-12-19 06:58:23 -05:00
adryserage a3eee9285e feat(ui): add Ollama as LLM provider option for Graphiti
- Add 'ollama' to GraphitiProviderType and GraphitiEmbeddingProvider
- Add Ollama-specific config fields (baseUrl, llmModel, embeddingModel, embeddingDim)
- Update GraphitiStep UI to show Base URL field instead of API key for Ollama
- Handle Ollama differently in validation, save, and load logic
- Ollama runs locally and doesn't require an API key
2025-12-19 06:52:11 -05:00
Andy 01a4eb6bbf Merge pull request #32 from adryserage/fix/node-pty-imports
fix(deps): update imports to use @lydell/node-pty directly
2025-12-19 12:51:18 +01:00
adryserage b8a419af5a fix(ui): address PR review feedback for Graphiti provider selection
- Fix initial API key loading to use saved provider preference
- Update local settings store for all providers (not just OpenAI)
- Load saved API keys when switching between providers
- Add note for non-OpenAI providers about validation limitations
2025-12-19 06:45:21 -05:00
adryserage 2b61ebbfad fix(deps): update imports to use @lydell/node-pty directly
The previous commit (e1aee6a) updated package.json to use @lydell/node-pty
but the source files still imported from 'node-pty'. This caused the app
to fail on startup with "Cannot find module 'node-pty'" error.

This commit updates all imports and the vite external config to reference
@lydell/node-pty directly, completing the migration.

Files changed:
- src/main/terminal/pty-manager.ts
- src/main/terminal/pty-daemon.ts
- src/main/terminal/types.ts
- electron.vite.config.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 06:32:26 -05:00
adryserage 4750869526 feat(ui): add LLM provider selection to Graphiti onboarding
Add provider dropdown to the Memory & Context onboarding step allowing
users to choose between OpenAI, Anthropic (Claude), Google (Gemini),
and Groq (Llama) for Graphiti memory operations.

Changes:
- Add provider selection dropdown with 4 LLM options
- Dynamic API key field that updates label, placeholder, and link
  based on selected provider
- Update validation and save logic to handle multiple providers
- Fix node-pty imports to use @lydell/node-pty directly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 06:30:11 -05:00
Amen-Ra Mendel c9745b6669 Add UI clarity for per-project GitHub configuration
## Summary
- Add visual indicator showing GitHub config is per-project, not global
- Users were confused thinking settings applied to all projects

## Changes Made

### 1. Added info box to GitHub Integration section
- Displays project name in configuration context
- Explains that each project can have its own repository
- Only shown when GitHub Integration is enabled

### 2. Component updates
- GitHubIntegrationSection: Added projectName prop and info box
- ProjectSettings: Pass project.name to GitHubIntegrationSection

## User Impact
Eliminates confusion about configuration scope - users now clearly understand
that GitHub repository settings are project-specific.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-19 06:17:38 -05:00
adryserage 08b65f315a Update dependencies in pnpm-lock.yaml
Upgraded various dependencies including node-pty (now using @lydell/node-pty@^1.1.0), @types/node, @eslint/js, @standard-schema/spec, @typescript-eslint, and several others. Also updated esbuild and rollup platform-specific packages to newer versions.
2025-12-19 06:14:30 -05:00
adryserage e1aee6a44f fix(deps): replace node-pty with @lydell/node-pty for prebuilt binaries
node-pty@1.1.0-beta9 fails to compile on Windows with node-gyp due to
MSBuild errors during native module compilation. This blocks installation
for Windows users without full Visual Studio Build Tools configured.

Solution:
- Replace node-pty with @lydell/node-pty which provides prebuilt binaries
- Add pnpm override to alias 'node-pty' imports to the new package
- Update extraResources path for electron-builder
- Remove node-pty from onlyBuiltDependencies (no compilation needed)

@lydell/node-pty@1.1.0 provides prebuilt binaries for:
- Windows x64 and ARM64
- macOS x64 (Intel) and ARM64 (Apple Silicon)
- Linux x64 and ARM64

This eliminates the need for node-gyp compilation and ensures
cross-platform compatibility without build tool dependencies.
2025-12-19 06:10:52 -05:00
Amen-Ra Mendel b3636a5bce Add defensive array validation for GitHub issues API response
- Ensures API response is an array before filtering
- Prevents 'filter is not a function' error
- Improves error handling for unexpected responses
2025-12-19 05:58:57 -05:00
Andy 908eebfb16 Merge pull request #25 from AndyMik90/version/2.5.5
chore: update CHANGELOG for version 2.5.5
2025-12-19 11:30:08 +01:00
AndyMik90 0e6b652dd7 chore: update CHANGELOG for version 2.5.5
- Added new features including GitHub setup flow, atomic log saving, and multi-auth token support.
- Improved agent behavior with a new default profile and enhanced issue tracking.
- Fixed multiple CI test failures and improved merge preview reliability.
- Implemented security measures to prevent command injection and enforced Python version requirements.
- Conducted code cleanup and removed redundant directory structures.

This release focuses on enhancing agent reliability and streamlining the build workflow.
2025-12-19 11:29:37 +01:00
Andy 0acdba6f01 Merge pull request #22 from AndyMik90/version/2.5.5
Version/2.5.5
2025-12-19 11:25:23 +01:00
AndyMik90 de2eccd209 fix: resolve CI test failures and improve merge preview
Test fix:
- Mock getClaudeProfileManager in subprocess spawn tests to bypass
  authentication checks that fail in CI (no auth token configured)

Merge preview improvements:
- Add _detect_default_branch() to properly detect main/master branch
- Add debug logging for git diff failures to aid troubleshooting
- Use detected default branch instead of hardcoded 'main'

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 11:22:55 +01:00
Amen-Ra Mendel 873cafa46f Fix GitHub organization repository support
## Summary
- Add support for organization repositories by including org members in repo list API
- Add repository reference normalization to handle full GitHub URLs, SSH URLs, and owner/repo format
- Apply normalization to all GitHub API calls to ensure consistent behavior

## Changes Made

### 1. Enhanced repo listing (repository-handlers.ts)
- Updated `/user/repos` endpoint to include affiliation parameter
- Now fetches: owner, collaborator, and organization_member repos
- Fixes #20: Organization repos now appear in repository list

### 2. Added URL normalization utility (utils.ts)
- New `normalizeRepoReference()` function handles:
  - owner/repo format (already normalized)
  - https://github.com/owner/repo URLs
  - https://github.com/owner/repo.git URLs
  - git@github.com:owner/repo.git SSH URLs
- Prevents 404 errors from malformed repository references

### 3. Applied normalization consistently
- Updated repository-handlers.ts to normalize repo refs before API calls
- Updated issue-handlers.ts to normalize repo refs before API calls
- All GitHub API calls now use normalized repository format

## Testing
- Verified with organization repository: imaginationeverywhere/ppsv-charities
- Tested with various URL formats
- GitHub CLI authentication continues to work seamlessly

## Related Issues
Fixes #20: Auto Claude doesn't work with GitHub Organization repositories
2025-12-19 05:22:41 -05:00
AndyMik90 948db57763 chore: code cleanup and test fixture updates
- Apply ruff formatting to workspace_commands.py
- Remove unnecessary f-string in workspace.py
- Remove unused import get_phase_config from spec_runner.py
- Add phase_name parameter to mock_run_agent_fn fixture

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 11:13:35 +01:00
AndyMik90 f98a13eaa0 refactor: change default agent profile from 'balanced' to 'auto'
Update TaskCreationWizard to use 'auto' as the default agent profile
when no profile is explicitly selected.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 11:13:25 +01:00
AndyMik90 24ff491d3c security: prevent command injection in GitHub API calls
- Use execFileSync instead of execSync to avoid shell interpretation
- Add regex validation for repo format (owner/repo pattern)
- Reject requests with invalid characters that could enable injection

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 11:13:16 +01:00
AndyMik90 a8f2d0b110 fix: resolve CI failures (lint, format, test)
- Fix import sorting issues caught by ruff (I001)
- Apply ruff formatting to auto-claude modules
- Update test to match default model (sonnet-4-5 not opus-4-5)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 11:11:36 +01:00
AndyMik90 46d2536600 fix: use git diff count for totalFiles in merge preview
The merge preview was showing incorrect file counts because it only
counted files tracked by the semantic evolution tracker. Many files
(test files, config files, etc.) weren't being tracked, leading to
misleading "Files to merge: 0" displays when there were actually
multiple files changed.

Changes:
- Add _get_changed_files_from_git() helper to get actual changed files
- Use git diff count as authoritative totalFiles instead of tracker count
- Use git diff file list for the files array in preview response
- Always compare against 'main' branch (worktrees are created from main)

This ensures the UI shows the correct number of files that will be
merged, matching the git diff stats shown elsewhere in the UI.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 11:01:34 +01:00
AndyMik90 71535581c2 feat: enhance stage-only merge handling with verification checks
This commit improves the handling of stage-only merges by adding verification to ensure that actual changes are staged before proceeding. Key changes include:
- Implementation of checks to determine if there are staged changes or if the merge has already been committed.
- Updated status handling based on the verification results, allowing for more accurate task status updates.
- Enhanced debug logging for better traceability of merge outcomes.

These enhancements provide a more robust user experience by preventing false positives in stage-only scenarios and ensuring accurate task management.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-12-19 10:50:09 +01:00
AndyMik90 26725286d5 feat: introduce phase configuration module and enhance agent profiles
This commit adds a new phase configuration module that manages model and thinking level settings for different execution phases. It reads configurations from `task_metadata.json` and provides resolved model IDs for various phases, including spec creation, planning, coding, and QA.

Key changes include:
- New `phase_config.py` file to handle model ID mappings and thinking budgets.
- Updates to agent files (`coder.py`, `planner.py`, `loop.py`) to utilize phase-specific models and thinking levels.
- Modifications to the CLI and UI components to support per-phase configuration, enhancing the user experience for task creation and editing.

The new structure allows for optimized model selection and thinking depth based on the phase, improving overall task execution efficiency.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-12-19 10:24:44 +01:00
AndyMik90 569e921759 fix: preserve roadmap generation state when switching projects
Previously, roadmap generation would stop or appear stopped when users
navigated between projects. This fix ensures generation continues in
the background and the UI properly reflects the generation state.

Changes:
- Add ROADMAP_GET_STATUS IPC endpoint to query if generation is running
- Update loadRoadmap() to query backend status when switching projects
- Restore generation UI state when returning to a project with active gen
- Remove aggressive stopRoadmap() call that killed generation on switch

The fix allows users to start roadmap generation, navigate to other
projects, and return to see the correct progress/completion state.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 10:16:30 +01:00
AndyMik90 03ccce5cc1 feat: add required GitHub setup flow after Auto Claude initialization
This ensures users properly configure GitHub before using Auto Claude,
which is necessary for the branch-based workflow to function correctly.

Changes:
- Add GitHubSetupModal component with 3-step flow:
  1. GitHub OAuth authentication (via gh CLI)
  2. Auto-detect repository from git remote
  3. Select base branch for task worktrees (with recommended default)
- Add IPC handlers for detectGitHubRepo and getGitHubBranches
- Integrate modal into App.tsx to show after Auto Claude init
- Update ElectronAPI types and browser mocks

The flow now is:
1. User adds project
2. Git must be initialized (GitSetupModal if not)
3. Auto Claude initialized (creates .auto-claude folder)
4. GitHub setup required (new GitHubSetupModal)
5. Project ready for task creation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 08:00:17 +01:00
AndyMik90 64d5170c94 chore: remove redundant auto-claude/specs directory
Specs are stored in .auto-claude/specs/ (per-project, gitignored).
The auto-claude/specs/ folder was legacy and no longer used.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 01:30:27 +01:00
AndyMik90 0710c13964 chore: untrack .auto-claude directory (should be gitignored)
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 01:29:28 +01:00
AndyMik90 56cedec2ae fix: prevent dialog skip during project initialization
- Added checks to ensure the initialization dialog does not trigger skip logic while a project is being initialized.
- Refactored project ID handling in the initialization process for consistency across components.
- Improved user experience by preventing unintended dialog closures during initialization.

This change enhances the reliability of the project initialization workflow in the application.
2025-12-19 01:23:56 +01:00
AndyMik90 c0c8067bc5 feat: enhance merge workflow by detecting current branch
- Added functionality to detect the current Git branch before merging spec changes.
- Prevent merging into the same branch by providing user guidance to switch branches.
- Updated WorktreeManager initialization to use the detected branch as the merge target.

This improves the user experience by ensuring that merges are performed correctly and reduces the risk of accidental merges into the spec branch.
2025-12-19 01:02:12 +01:00
AndyMik90 db3a034d75 Merge auto-claude/040: Add auth failure detection to prevent premature human_review status 2025-12-19 00:58:38 +01:00
AndyMik90 059315d6ab fix: update model IDs for Sonnet and Haiku
Updated the model IDs in the MODEL_ID_MAP to reflect the latest versions for Sonnet and Haiku. This change ensures that the application uses the correct identifiers for these models moving forward.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-12-19 00:43:29 +01:00
AndyMik90 8df7ba4f16 qa: Sign off - all verification passed
- Unit tests: 365/365 passing
- Auth-specific tests: 48/48 passing
- TypeScript type-check: passed
- Security review: passed (no vulnerabilities)
- Pattern compliance: passed
- No regressions found

All acceptance criteria verified:
- Pre-flight auth checks implemented
- Auth failure detection patterns comprehensive
- Clear error messages directing users to Settings > Claude Profiles
- Status transition validation prevents premature human_review
- Code follows established patterns

🤖 QA Agent Session 1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 00:26:34 +01:00
Andy 2bffea842b Fix discord link 2025-12-19 00:15:24 +01:00
AndyMik90 99cf21e61b feat: add comprehensive DEBUG logging and fix lint errors
DEBUG logging additions:
- agents/session.py: SDK invocation logging with tool calls/results
- qa/loop.py: QA iteration tracking and verdict logging
- qa/reviewer.py: Review session lifecycle logging
- qa/fixer.py: Fix session lifecycle logging
- runners/spec_runner.py: Spec creation orchestrator logging

Python lint fixes:
- Remove f-string without placeholders (qa/loop.py)
- Add noqa: UP036 for intentional version checks (run.py, spec_runner.py)
- Format 5 files with ruff

TypeScript fixes:
- Add InsightsAPI to ElectronAPI interface composition
- Fix sendInsightsMessage signature to include modelConfig param
- Add updateInsightsModelConfig method to ipc.ts types
- Add updateInsightsModelConfig to browser mock

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 00:07:55 +01:00
AndyMik90 da5e26b923 feat: implement atomic log saving to prevent corruption
Enhance log storage functionality by saving logs to a temporary file first, followed by an atomic rename to the final log file. This change mitigates the risk of log corruption during concurrent reads, particularly when the UI accesses the log file mid-write. Additionally, update the log loading mechanism to return cached logs if the file is detected as corrupted.

Files updated:
- auto-claude/task_logger/storage.py: Implement atomic log saving
- auto-claude-ui/src/main/task-log-service.ts: Handle potential log file corruption by returning cached logs

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-12-18 23:56:20 +01:00
AndyMik90 c957eaa3a1 Add better github issue tracking and UX 2025-12-18 23:56:08 +01:00
AndyMik90 73d01c0103 feat: add comprehensive DEBUG logging to Claude SDK invocation points
Add detailed debug logging throughout the spec creation and QA validation
pipeline to help diagnose issues during autonomous builds.

Files updated:
- agents/session.py: Log session start, SDK queries, message types,
  tool calls (with inputs), tool results (success/error/blocked),
  and session completion status
- spec/pipeline/agent_runner.py: Log agent run lifecycle, prompt loading,
  message processing, and tool execution
- qa/loop.py: Log iteration progress, reviewer/fixer session status,
  QA verdicts, recurring issues detection, and final summary
- qa/reviewer.py: Log QA reviewer session lifecycle and verdicts
- qa/fixer.py: Log QA fixer session lifecycle and fix status
- runners/spec_runner.py: Log orchestrator creation, run status,
  build approval, and command execution

Usage: Set DEBUG=true and optionally DEBUG_LEVEL=1|2|3 for verbosity:
  DEBUG=true DEBUG_LEVEL=2 python auto-claude/run.py --spec 001

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 23:54:35 +01:00
AndyMik90 41a507fe8b feat: auto-download prebuilt node-pty binaries for Windows
Eliminates the need for Visual Studio Build Tools on Windows by:

1. GitHub Actions workflow (.github/workflows/build-prebuilds.yml)
   - Builds node-pty for Windows x64 with correct Electron ABI
   - Uploads prebuilt binaries as release assets
   - Triggered on releases and manual dispatch

2. Smart postinstall script (auto-claude-ui/scripts/postinstall.js)
   - On Windows: tries to download prebuilts first
   - Falls back to electron-rebuild if prebuilts unavailable
   - Shows clear instructions if compilation fails

3. Download helper (auto-claude-ui/scripts/download-prebuilds.js)
   - Fetches prebuilt binaries from GitHub releases
   - Extracts and installs to node_modules/node-pty

Windows users can now run `npm install` without installing Visual Studio
Build Tools, as long as prebuilt binaries exist for their Electron version.

Fixes #8

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 23:53:06 +01:00
AndyMik90 e02aa597f2 feat(insights): add per-session model and thinking level selection
- Add model selector dropdown in Insights chat header with agent profiles:
  - Complex (Opus + ultrathink)
  - Balanced (Sonnet + medium) - new default
  - Quick (Haiku + low)
  - Custom option for direct model + thinking level selection
- Change default from slow Opus to Sonnet for faster responses
- Persist model configuration per-session
- Fix missing event forwarding from insightsService to renderer
  (was causing responses to not appear without hard refresh)
- Fix insights_runner.py path (was looking in auto-claude/ instead of
  auto-claude/runners/)
- Add --model and --thinking-level CLI args to insights_runner.py

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 23:37:09 +01:00
AndyMik90 909305c82b auto-claude: subtask-5-1 - Add unit tests for auth failure detection patterns
Added comprehensive unit tests for the rate-limit-detector module covering:
- Rate limit detection with reset times and secondary indicators
- Auth failure detection for all 13 patterns (authentication required, not
  authenticated, login required, oauth token invalid/expired/missing,
  unauthorized, invalid credentials, session expired, access denied, etc.)
- Failure type classification (missing, invalid, expired, unknown)
- Profile ID handling and user-friendly message generation
- Edge cases: multiline output, case-insensitivity, JSON errors, stack traces
- Mutual exclusivity between rate limit and auth failure detection

All 48 tests pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 23:31:27 +01:00
AndyMik90 121b2b294f auto-claude: subtask-4-1 - Add status transition validation to prevent premature human_review status
Adds validation in TASK_UPDATE_STATUS handler to prevent tasks from being
moved to human_review status prematurely when execution fails.

Changes:
- Check if spec.md exists and has meaningful content (at least 100 chars)
  before allowing transition to human_review status
- Return error with actionable message if spec is missing or empty
- Log warning for debugging when blocked

This prevents the issue where tasks incorrectly appear in human_review
when spec creation fails silently (e.g., due to auth issues).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 23:23:08 +01:00
AndyMik90 c2fe3322a7 auto-claude: subtask-3-1 - Add auth failure detection to agent-process.ts exit handler
Added authentication failure detection to the process exit handler in agent-process.ts:
- Import detectAuthFailure from rate-limit-detector
- In exit handler, when process fails (code !== 0) and is not rate limited,
  check for authentication failures using detectAuthFailure(allOutput)
- If auth failure detected, emit 'auth-failure' event with taskId and
  detection details (profileId, failureType, message, originalError)

This enables proper detection and reporting of authentication issues that
occur during spec creation or task execution.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 23:21:03 +01:00
AndyMik90 aac6b106aa auto-claude: subtask-2-2 - Add auth validation in execution-handlers.ts with proper error messaging
Added pre-flight authentication checks before task execution:
- Import getClaudeProfileManager for auth validation
- Check hasValidAuth() in TASK_START handler before calling agentManager
- Check hasValidAuth() in TASK_UPDATE_STATUS handler before auto-starting tasks
- Check hasValidAuth() in TASK_RECOVER_STUCK handler before auto-restarting tasks
- Emit TASK_ERROR with actionable message when auth is missing
- Return early without changing task status when auth fails

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 23:19:07 +01:00
AndyMik90 7f6beba3ad auto-claude: subtask-2-1 - Add pre-flight auth check in agent-manager.ts
Added pre-flight authentication validation before spawning processes:
- Import getClaudeProfileManager from claude-profile-manager
- In startSpecCreation(): Check hasValidAuth() before spawning spec_runner.py
- In startTaskExecution(): Check hasValidAuth() before spawning run.py
- Emit clear error message if auth is missing, preventing task from starting

This ensures tasks cannot start without valid Claude authentication,
addressing GitHub Issue #11 where tasks would skip to human_review
when spec creation fails silently due to missing authentication.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 23:16:35 +01:00
AndyMik90 4b354e7b9f auto-claude: subtask-1-2 - Add hasValidAuth method to ClaudeProfileManager
Add hasValidAuth(profileId?: string): boolean method to check if a profile
has valid authentication for starting tasks. A profile is considered
authenticated if it has a valid OAuth token (not expired) OR has an
authenticated configDir with credential files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 23:13:54 +01:00
AndyMik90 eed5297e9d auto-claude: subtask-1-1 - Add authentication failure detection patterns
Add AUTH_FAILURE_PATTERNS array with regex patterns to detect various
authentication error messages from Claude CLI/SDK output, including:
- Authentication required messages
- Invalid/expired token errors
- Unauthorized/access denied errors
- Login required messages

Also add:
- AuthFailureDetectionResult interface for structured detection results
- detectAuthFailure() function to detect auth failures in process output
- isAuthFailureError() helper for simple boolean checks
- classifyAuthFailureType() to categorize failures (missing/invalid/expired)
- getAuthFailureMessage() for user-friendly error messages

This enables detecting when tasks fail silently due to authentication
issues, allowing proper error feedback to users instead of incorrectly
skipping to human review status.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 23:12:03 +01:00
AndyMik90 9a5ca8c78f fix: require Python 3.10+ and add version check
The codebase uses Python 3.10+ type hint syntax (e.g., `str | list[str]`)
which causes TypeError on Python 3.9 and earlier.

Changes:
- Update README.md to document Python 3.10+ requirement
- Add runtime version check in run.py and spec_runner.py
- Provides clear error message with upgrade instructions

Fixes #5

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 23:00:42 +01:00
AndyMik90 63a1d3c138 fix: detect branch namespace conflict blocking worktree creation
Add detection for when a branch named 'auto-claude' exists, which blocks
creating branches in the 'auto-claude/*' namespace due to Git's file-based
ref storage system.

Now provides a clear error message explaining the issue and how to fix it
by renaming the conflicting branch.

Fixes #3

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 22:58:12 +01:00
Andy 3caf9cf18e Merge pull request #7 from wignerStan/feature/multi-auth-token-support
feat: Add multi-auth token support and ANTHROPIC_BASE_URL passthrough (CLI only)
2025-12-18 21:50:09 +01:00
Jacob 7d351e3422 fix: Remove duplicate LINEAR_API_KEY check and consolidate imports
Addresses CodeRabbit review comment:
- Consolidated split imports from core.auth
- Removed unreachable duplicate LINEAR_API_KEY validation
2025-12-18 21:40:04 +01:00
Jacob 9dea155505 feat: Add multi-auth token support and ANTHROPIC_BASE_URL passthrough
Implements support for multiple authentication environment variables:
- CLAUDE_CODE_OAUTH_TOKEN (original, highest priority)
- ANTHROPIC_AUTH_TOKEN (for proxies like CCR)
- ANTHROPIC_API_KEY (direct Anthropic API)

Also adds ANTHROPIC_BASE_URL and related env vars passthrough to SDK.

Changes:
- New core/auth.py with centralized auth logic
- Updated core/client.py to use auth helpers
- Updated cli/utils.py to show auth source and base URL
- Updated all modules using auth tokens
- Updated .env.example with documentation
2025-12-18 21:40:04 +01:00
Andy d3cdd3a1c7 Merge pull request #13 from AndyMik90/release/version2.5
chore: update CHANGELOG for version 2.5.0 with new features, improvem…
2025-12-18 21:36:14 +01:00
AndyMik90 a9d1ddb84f chore: update CHANGELOG for version 2.5.0 with new features, improvements, and bug fixes 2025-12-18 21:34:54 +01:00
Andy 6985934825 Merge pull request #10 from AndyMik90/feature/recent-updates
Recent updates: roadmap enhancements, bug fixes, and drag-and-drop support
2025-12-18 20:53:05 +01:00
AndyMik90 4f1766b501 fix: correct CompetitorAnalysisViewer to match type definitions
Fix TypeScript errors by using correct property names from types:
- Replace userQuotes with source and frequency fields
- Change opportunityScore to opportunity
- Replace summary with insightsSummary structure
- Display top pain points, differentiator opportunities, and market trends

All properties now match the CompetitorPainPoint and CompetitorAnalysis
type definitions in roadmap.ts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 20:49:46 +01:00
AndyMik90 7ff326d898 feat: add interactive competitor analysis viewer for roadmap
Add comprehensive competitor analysis viewing capabilities:

- Create CompetitorAnalysisViewer component with detailed insights display
  * Shows competitor names, descriptions, and market positions
  * Displays pain points with severity badges (high/medium/low)
  * Includes user quotes from reviews/forums
  * Shows opportunity scores for prioritization
  * Provides visit links to competitor products

- Make Competitor Analysis badge interactive
  * Click to open detailed viewer modal
  * Tooltip shows summary (competitor count, pain points)
  * Visual feedback with hover state

- Enhance persona visibility in roadmap header
  * Make "+N more personas" clickable with dotted underline
  * Show all secondary personas in tooltip on hover

- Fix modal scrolling in CompetitorAnalysisViewer
  * Add flex layout constraints for proper scrolling
  * Set max-height with calculation for header space
  * Add bottom padding to prevent content cutoff

This enables users to view detailed competitive insights generated
during roadmap creation, including specific pain points identified
in competitor products and opportunities to address market gaps.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 20:46:31 +01:00
AndyMik90 48f7c3cc61 fix: address multiple CodeRabbit review feedback items
Changes included:

1. **InvestigationDialog.tsx** - Prevent state updates after unmount:
   - Add isMounted flag to prevent state updates after component unmounts
   - Add fetchCommentsError state to surface API errors to the user
   - Display error state in UI with styled error message
   - Ensure cleanup function properly sets isMounted = false

2. **EnvConfigModal.tsx** - Improve type safety:
   - Replace `any` type with proper `ClaudeProfile` type in filter callback

3. **GenerationProgressScreen.tsx** & **RoadmapGenerationProgress.tsx**:
   - Add double-click prevention for stop button
   - Add isStopping state with proper error handling
2025-12-18 20:41:30 +01:00
AndyMik90 892e01d608 fix: use stable React keys instead of array indices in RoadmapHeader
Replace array index keys with content-based stable keys in two mapped lists:

- Competitor analysis: use `comp.id` instead of index, and simplify
  type annotation by relying on TypeScript inference
- Secondary personas: use `persona` string value instead of index

Using stable keys improves React's reconciliation efficiency and prevents
potential rendering issues when list items are reordered or modified.

Addresses CodeRabbit review feedback.
2025-12-18 20:40:50 +01:00
AndyMik90 54501cbd73 fix: additional fixes for http error handling and path resolution
- http-client.ts: Limit error response data collection to 10KB and add error handlers
- RoadmapGenerationProgress.tsx, GenerationProgressScreen.tsx: Allow onStop to return Promise<void>
- insights_runner.py: Fix path resolution and load .env from auto-claude directory

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 20:30:17 +01:00
AndyMik90 f1d578fd18 fix: update worktree test to match intended branch detection behavior
The WorktreeManager is designed to prefer main/master branches over the
current branch when detecting the base branch. Updated the test to
reflect this intended behavior:

- Renamed test_init_detects_current_branch to test_init_prefers_main_over_current_branch
- Added new test_init_falls_back_to_current_branch to verify fallback when main/master don't exist

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 20:23:45 +01:00
AndyMik90 2e3a5d9de5 fix: resolve CI lint and TypeScript errors
- Fix Python formatting (ruff) in workspace.py, display.py, menu.py
- Fix TypeScript errors:
  - Add missing CompetitorAnalysis import in types.ts
  - Add type annotations to RoadmapHeader.tsx map callback
  - Add cn import and fix EnvConfigModal OAuth token handling
  - Add type annotations to InvestigationDialog.tsx
  - Add missing stopRoadmap and onRoadmapStopped to browser-mock
  - Add getIssueComments to ElectronAPI type and mocks
  - Update investigateGitHubIssue to accept optional selectedCommentIds
  - Fix CLAUDE_CODE_OAUTH_TOKEN access in agent-queue.ts
- Include pending bug fixes:
  - Add .trim() to git status parsing in worktree-handlers.ts
  - Change Accept header to application/octet-stream in http-client.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 20:22:55 +01:00
AndyMik90 a6dad428e9 feat: enhance roadmap generation with stop functionality and debug logging
- Added stop functionality for roadmap generation, allowing users to halt the process.
- Implemented debug logging throughout the roadmap generation process for better traceability.
- Updated IPC channels to support stopping roadmap generation and added corresponding handlers.
- Enhanced UI components to include stop buttons and feedback for the stop action.

This update improves user control over the roadmap generation process and aids in debugging.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2025-12-18 20:09:44 +01:00
AndyMik90 3d24f8f59e fix: correct path resolution in runners for module imports and .env loading
The runners in auto-claude/runners/ were using incorrect relative paths
that only went up one directory level instead of two, causing:
- ModuleNotFoundError for 'debug' module
- Missing .env file (CLAUDE_CODE_OAUTH_TOKEN not found)
- Script not found errors for analyzer.py
- Prompt files not found for agent execution

Fixed paths in:
- roadmap_runner.py: sys.path and .env now resolve to auto-claude/
- ideation_runner.py: sys.path and .env now resolve to auto-claude/
- roadmap/executor.py: scripts_base_dir and prompts_dir now resolve
  correctly from the nested roadmap/ subdirectory

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 20:03:46 +01:00
AndyMik90 9106038a17 fix: resolve React key warning in PhaseProgressIndicator
- Add explicit key to overflow count span that shows "+N" when more
  than 10 subtasks exist (sibling to mapped elements needed a key)
- Add fallback key using index for subtask indicators in case
  subtask.id is undefined

Fixes console warning: "Each child in a list should have a unique
'key' prop"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 19:31:34 +01:00
AndyMik90 895ed9f605 fix: enable stuck task detection for ai_review status
Previously, stuck detection only checked tasks with status='in_progress',
causing tasks stuck in 'ai_review' status to never show the recovery option.

When a task enters QA review phase, its status changes to 'ai_review'. If
the process crashes during this phase, the status remains 'ai_review' with
no active process, but the stuck detection was skipped because isRunning
only checked for 'in_progress' status.

This fix extends the isRunning check to include both 'in_progress' and
'ai_review' statuses, ensuring stuck tasks in AI Review can be detected
and recovered.

Fixes: Task #838 stuck in AI Review with no recovery option

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 18:59:28 +01:00
AndyMik90 cbe14fda9b feat: map GitHub issue labels to task categories
## Changes
- Automatically categorize tasks based on GitHub issue labels
- Added label-to-category mapping function with comprehensive coverage

## Category Mapping
- **bug_fix**: Issues labeled with bug, defect, error, fix
- **security**: Issues labeled with security, vulnerability, cve
- **performance**: Issues labeled with performance, optimization, speed
- **ui_ux**: Issues labeled with ui, ux, design, styling
- **infrastructure**: Issues labeled with infrastructure, devops, deployment, ci, cd
- **testing**: Issues labeled with test, testing, qa
- **refactoring**: Issues labeled with refactor, cleanup, maintenance, chore, tech-debt
- **documentation**: Issues labeled with documentation, docs
- **feature**: Default for enhancement, feature, improvement, or unlabeled issues

## Implementation
- Updated `determineCategoryFromLabels()` to return proper TaskCategory types
- Modified `createSpecForIssue()` to accept labels array parameter
- Updated both investigation and import handlers to pass labels
- Tasks now display with correct category badge in Kanban board

## Example
- GitHub issue with "bug" label → Task category: "bug_fix"
- GitHub issue with "enhancement" label → Task category: "feature"
- GitHub issue with no labels → Task category: "feature" (default)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 18:31:12 +01:00
AndyMik90 4c1dd89840 feat: add GitHub issue comment selection and fix auto-start bug
## Features
- Add comment selection UI when creating tasks from GitHub issues
  - Fetch and display all comments with author, timestamp, and preview
  - Allow users to select/deselect individual comments via checkboxes
  - Include "Select All" / "Deselect All" toggle functionality
  - Show selected comment count (e.g., "3/5 comments selected")
  - Only selected comments are included in the task description

- Fix auto-start bug where GitHub issues were immediately executed
  - Tasks now stay in "backlog" status after creation
  - Users must manually start tasks from the Kanban board

## Implementation Details

### Backend
- Added `getIssueComments` IPC handler to fetch comments separately
- Modified `investigateGitHubIssue` to accept selectedCommentIds parameter
- Updated comment filtering logic in buildIssueContext
- Removed automatic startSpecCreation call to prevent auto-execution

### Frontend
- Enhanced InvestigationDialog with scrollable comment list UI
- Updated GitHubAPI interface with getIssueComments method
- Modified hooks and stores to pass selected comment IDs through the chain
- Added projectId prop to InvestigationDialog for comment fetching

### Files Changed
- Backend handlers: investigation-handlers.ts, issue-handlers.ts, types.ts
- API layer: github-api.ts
- UI components: InvestigationDialog.tsx, GitHubIssues.tsx
- State management: github-store.ts, useGitHubInvestigation.ts
- Type definitions: types/index.ts, ipc.ts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 18:27:01 +01:00
AndyMik90 d93eefe806 feat: enhance TaskCreationWizard with drag-and-drop support for file references and inline @mentions
- Added a drop zone for file references and a separate drop zone for inline @mentions in the description textarea.
- Updated drag-and-drop handling to allow inserting @mentions directly into the description or adding files to the referenced files list.
- Implemented parsing of @mentions from the description to create ReferencedFile entries, avoiding duplicates.
- Improved visual feedback for drag-and-drop interactions, including indicators for maximum file capacity and drop zones.
2025-12-18 17:45:23 +01:00
AndyMik90 e11f5fcd50 v2.4.0 changelogs 2025-12-18 17:41:32 +01:00
AndyMik90 8e891dfcfe cleanup docs 2025-12-18 16:42:00 +01:00
AndyMik90 c721dc23b6 fix: correct git status parsing in merge preview
Fixed parsing bug where .trim() on entire output removed leading space
from git status --porcelain format, causing filenames to be truncated.

- Removed .trim() from git status output (line 536)
- Check for empty status using gitStatus.trim() in condition
- Correctly parse XY<space>filename format without truncation
- Removed diagnostic logging

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-18 16:37:41 +01:00
AndyMik90 1a2b7a1bbb Update TaskReview component to refine conditional rendering for staged tasks, ensuring proper display when staging is unsuccessful. 2025-12-18 16:29:01 +01:00
AndyMik90 b194c0e11f Merge branch 'auto-claude/033-add-drag-and-drop-file-upload' 2025-12-18 16:27:20 +01:00
AndyMik90 a20b8cf12a Enhance task status handling to allow 'done' status in limbo state. Added worktree existence check to enforce merge workflow unless no worktree is found, enabling direct status updates in specific scenarios. 2025-12-18 16:24:40 +01:00
AndyMik90 0ed6afb805 Improvement/Worktree needs to be manually deleted for early access safety (not delete work that has introduced spend) 2025-12-18 16:18:05 +01:00
AndyMik90 914a09d0da feat/claude account oauth implementation on onboarding instead of manual token 2025-12-18 16:06:43 +01:00
AndyMik90 e44202a066 Better handling of lock files from worktress upon merging 2025-12-18 16:00:30 +01:00
AndyMik90 42496446bc new oauth github integration upon onboarding. 2025-12-18 16:00:17 +01:00
AndyMik90 b0fc497583 lock update 2025-12-18 15:57:32 +01:00
AndyMik90 462edcdd93 improved readme and build process 2025-12-18 15:07:25 +01:00
AndyMik90 affbc48cbe fix ESLint warnings and failing tests 2025-12-18 14:49:07 +01:00
AndyMik90 d7fd1a24da Big upgrade to windows and linux compability, also introduced a auto upgrading functionality to work cross platform with also the posiblity for Git init on app startup and checking when adding new projects. 2025-12-18 13:41:57 +01:00
AndyMik90 96dd04d411 feat: Add debug logging to app updater
Improved logging for app updates to help diagnose update issues:

- Added DEBUG_UPDATER env var for verbose electron-updater logging

- Better console output showing update check status

- Clear message when running in dev mode (updates disabled)

- Option to force updater init in dev mode for testing logs
2025-12-18 11:21:13 +01:00
AndyMik90 1d0566fce7 feat: Auto-open settings to updates section when app update is ready
When an app update is downloaded and ready to install, automatically opens the Settings dialog to the Updates section so users can easily install the update.

Changes:

- App.tsx: Listen for onAppUpdateDownloaded event and open settings

- AdvancedSettings.tsx: Add Electron app update UI with download/install buttons

- ipc.ts: Add app update methods to ElectronAPI interface

- settings-mock.ts: Add browser mocks for app update methods
2025-12-18 10:59:25 +01:00
AndyMik90 7f3cd5969d feat: Add integrated release workflow with AI version suggestion
Adds a streamlined release workflow that uses AI (Claude Haiku) to analyze git commits and suggest semantic version bumps (major/minor/patch). Automatically updates package.json, commits, and pushes using a safe git workflow that preserves user's current work.

New features:

- RELEASE_SUGGEST_VERSION IPC for AI-powered version suggestions

- bumpVersion() with safe git workflow (stash/checkout/commit/restore)

- VersionSuggestion type with bumpType and reasoning

- Updated ReleaseProgress to include bumping_version stage

Also replaces VERSION file detection with requirements.txt across the codebase.
2025-12-18 10:32:55 +01:00
AndyMik90 0ef0e1588b fix for fixing windows/linux python handling 2025-12-18 10:18:34 +01:00
AndyMik90 efc112a313 Implement Electron app auto-updater (Phase 1 & 2)
Phase 1: Update Notifications & Download
- Install electron-updater dependency
- Add GitHub publish configuration to package.json

Phase 2: Auto-Download & Install
- Backend: Main process auto-updater with electron-updater
- Frontend: AppUpdateNotification UI component
- IPC: Full update workflow (check/download/install/events)

Backend Implementation:
- Created app-updater.ts with autoUpdater configuration
- Auto-download enabled, checks every 4 hours
- Events: update-available, update-downloaded, download-progress
- Created app-update-handlers.ts with IPC handlers
- Integrated into main/index.ts (production only)

Frontend Implementation:
- Created AppUpdateNotification.tsx with modal dialog
- Shows version, release notes, download progress
- Download workflow: Available → Downloading → Downloaded → Install
- Created app-update-api.ts preload bindings
- Integrated into App.tsx root level

Configuration:
- Added 8 IPC channels: APP_UPDATE_* operations & events
- Created AppUpdateInfo, AppUpdateProgress, AppUpdate*Event types
- GitHub release publishing: provider=github, repo=Auto-Claude

Features:
 Automatic update checking (3s after launch, every 4 hours)
 Auto-download updates in background with progress bar
 User notification with version & release notes
 One-click install and restart
 Dismissible with "Remind Me Later"
 Error handling & visual feedback
 Production-only (disabled in dev mode)

Non-technical users can now update the Electron app with one click!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-18 09:38:20 +01:00
AndyMik90 d33a0aaff6 Fix Windows/Linux source path detection
- Enhanced detectAutoBuildSourcePath() to work across all platforms
- Separated dev vs production mode path resolution
- Added comprehensive path checking for Windows/Linux packaged apps
- Added debug logging (enable with AUTO_CLAUDE_DEBUG=1)
- Updated both settings-handlers.ts and project-handlers.ts
- Fixes 'Source path not configured' error on Windows/Linux

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-18 09:24:44 +01:00
AndyMik90 6cff4420c9 auto-claude: subtask-2-3 - Refine visual drop zone feedback to be more subtle
- Simplified main content area feedback to subtle background tint only
- Added dashed border hint when dragging but not over drop zone
- Made drop zone indicator more compact with smaller text/icons
- Added smooth transitions (150ms ease-out) for polish
- Reduced overlay opacity for less intrusive visual feedback
- Removed heavy ring effects that interfered with modal interactions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 23:19:27 +01:00
AndyMik90 12bf69def6 auto-claude: subtask-2-1 - Remove showFiles auto-expand on draft restore
Since the Referenced Files section is now always visible, remove the
conditional setShowFiles(true) in the useEffect that loads drafts.

Changes:
- Remove unused showFiles state variable
- Remove conditional that auto-expanded files section when restoring drafts
- Remove auto-expand call in handleDragEnd (section is always visible)
- Remove showFiles reset in resetForm

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 23:16:30 +01:00
AndyMik90 3818b4641f auto-claude: subtask-1-3 - Create an always-visible referenced files section
- Made referenced files section always visible in Create Task modal
- Added header with FolderTree icon and "Referenced Files" label
- Added count badge showing current/max files when files are present
- Added empty state hint: "Drag files from the file explorer to add references"
- Removed conditional showFiles rendering wrapper
- Section now shows before the Review Requirement Toggle

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 23:13:43 +01:00
AndyMik90 219b66dcc6 auto-claude: subtask-1-2 - Add drop zone wrapper around main modal content area
- Applied useDroppable ref to main form content div for drag-and-drop
- Added visual feedback (ring highlight, background change) when dragging files over the modal
- Visual states: blue ring when dragging over (can add), yellow ring when at max capacity
- Subtle ring indication when dragging but not over the drop zone
- Updated Referenced Files section to show visual feedback only during active drag
- Removed the compact collapsed drop zone (now redundant with main wrapper drop zone)
2025-12-17 23:11:23 +01:00
AndyMik90 4e63e8559d auto-claude: subtask-1-1 - Remove Reference Files toggle button
Remove the 'Reference Files (optional)' toggle button that controlled
the showFiles state for the collapsible section. The FolderTree icon
toggle with chevron is now removed from TaskCreationWizard.tsx.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 23:08:53 +01:00
AndyMik90 2fa3c51659 Update README.md to include git repository initialization and folder structure explanations
- Added instructions for initializing a git repository as a prerequisite for using Auto Claude.
- Included a section detailing the purpose of various folders created during the Auto Claude process, enhancing user understanding of the framework's structure.
2025-12-17 22:47:09 +01:00
AndyMik90 59b091a79f V 2.3.2 2025-12-17 22:37:52 +01:00
AndyMik90 a0c775f690 Merge branch 'auto-claude/028-fix-kanban-view-task-display-styling' 2025-12-17 22:19:09 +01:00
AndyMik90 9babdc23c1 fix to spec runner paths 2025-12-17 22:18:11 +01:00
AndyMik90 dc886dce44 auto-claude: subtask-1-1 - Restructure SortableFeatureCard badge layout
- Reorganize layout for better visual hierarchy: title first, then description, then metadata
- Make badges more compact with smaller text (text-[10px]) and reduced padding (px-1.5 py-0)
- Separate priority badge in header from complexity/impact badges in footer
- Replace competitor insight text with icon-only badge (with tooltip)
- Reduce card padding from p-4 to p-3
- Change title from truncate to line-clamp-2 for better readability
- Move complexity and impact badges to dedicated metadata row at bottom
- Remove " impact" text suffix for cleaner look
- Shorten "Go to Task" button text to "Task"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 22:04:47 +01:00
AndyMik90 32760348ae Fix to linux path issue 2025-12-17 21:42:53 +01:00
AndyMik90 395ba60098 Improvement/Terminal session persistence over app restart 2025-12-17 18:23:47 +01:00
AndyMik90 d85a1b4f63 V2.3.0 release for terminals 2025-12-17 17:28:02 +01:00
AndyMik90 43a593c1e1 Bug fix: dont let tasks slip by human review if the task was set as done. 2025-12-17 17:21:55 +01:00
AndyMik90 5078191d74 Added a release title for the github format - changelog functionality 2025-12-17 17:15:28 +01:00
AndyMik90 99850512e6 Implement PTY Daemon and Buffer Management
- Introduced a new PTY Daemon to handle terminal processes, ensuring session continuity and efficient resource management.
- Added session persistence for terminal states, allowing recovery across app restarts.
- Implemented buffer management to optimize terminal output handling, reducing React re-renders.
- Enhanced flow control and scroll management for better user experience during high-velocity terminal output.
- Refactored terminal store to utilize the new buffer manager, improving performance and memory management.
- Added WebGL context management for enhanced rendering capabilities in terminals.

This update significantly improves terminal performance and reliability, especially during intensive operations.
2025-12-17 17:05:37 +01:00
AndyMik90 f92fcfa075 Version 2.2.0 2025-12-17 16:23:00 +01:00
AndyMik90 f201f7e3a8 hotfix/spec-runner path location 2025-12-17 16:19:49 +01:00
1167 changed files with 57998 additions and 36651 deletions
+65
View File
@@ -0,0 +1,65 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
# CodeRabbit Configuration
# Documentation: https://docs.coderabbit.ai/reference/configuration
language: "en-US"
reviews:
# Review profile: "chill" for fewer comments, "assertive" for more thorough feedback
profile: "assertive"
# Generate high-level summary in PR description
high_level_summary: true
# Automatic review settings
auto_review:
enabled: true
auto_incremental_review: true
# Target branches for review (in addition to default branch)
base_branches:
- develop
- "release/*"
- "hotfix/*"
# Skip review for PRs with these title keywords (case-insensitive)
ignore_title_keywords:
- "[WIP]"
- "WIP:"
- "DO NOT MERGE"
# Don't review draft PRs
drafts: false
# Path filters - exclude generated/vendor files
path_filters:
- "!**/node_modules/**"
- "!**/.venv/**"
- "!**/dist/**"
- "!**/build/**"
- "!**/*.lock"
- "!**/package-lock.json"
- "!**/*.min.js"
- "!**/*.min.css"
# Path-specific review instructions
path_instructions:
- path: "apps/backend/**/*.py"
instructions: |
Focus on Python best practices, type hints, and async patterns.
Check for proper error handling and security considerations.
Verify compatibility with Python 3.12+.
- path: "apps/frontend/**/*.{ts,tsx}"
instructions: |
Review React patterns and TypeScript type safety.
Check for proper state management and component composition.
- path: "tests/**"
instructions: |
Ensure tests are comprehensive and follow pytest conventions.
Check for proper mocking and test isolation.
chat:
auto_reply: true
knowledge_base:
opt_out: false
learnings:
scope: "auto"
+2544
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+39
View File
@@ -0,0 +1,39 @@
/**
* Centralized Icon Exports for Design System
*
* This file serves as the single source of truth for all lucide-react icons used
* throughout the design system demo app. By consolidating imports here, we enable:
*
* 1. Better tracking of which icons are actually used
* 2. Potential code-splitting opportunities
* 3. Easier future migration to alternative icon solutions
* 4. Reduced bundle size through optimized tree-shaking
*
* Usage:
* import { Check, ChevronLeft, X } from '../lib/icons';
*
* When adding new icons:
* 1. Import the icon from 'lucide-react'
* 2. Add it to the export statement in alphabetical order
*/
export {
Check,
ChevronLeft,
ChevronRight,
Github,
Heart,
MessageSquare,
Minus,
Moon,
MoreVertical,
Plus,
RotateCcw,
Slack,
Sparkles,
Star,
Sun,
Video,
X,
Zap,
} from 'lucide-react';
+50 -77
View File
@@ -1,75 +1,27 @@
name: Bug Report
description: Report a bug or unexpected behavior
labels: ["bug", "triage"]
name: 🐛 Bug Report
description: Something isn't working
labels: ["bug", "needs-triage"]
body:
- type: markdown
- type: checkboxes
id: checklist
attributes:
value: |
Thanks for taking the time to report a bug! Please fill out the sections below.
- type: textarea
id: description
attributes:
label: Bug Description
description: A clear and concise description of the bug.
placeholder: What happened?
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected Behavior
description: What did you expect to happen?
placeholder: What should have happened?
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: Steps to Reproduce
description: Steps to reproduce the behavior.
placeholder: |
1. Run command '...'
2. Click on '...'
3. See error
validations:
required: true
- type: textarea
id: logs
attributes:
label: Error Messages / Logs
description: If applicable, paste any error messages or logs.
render: shell
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: If applicable, add screenshots to help explain the problem.
label: Checklist
options:
- label: I searched existing issues and this hasn't been reported
required: true
- type: dropdown
id: component
id: area
attributes:
label: Component
description: Which part of Auto Claude is affected?
label: Area
options:
- Python Backend (auto-claude/)
- Electron UI (auto-claude-ui/)
- Both
- Frontend
- Backend
- Fullstack
- Not sure
validations:
required: true
- type: input
id: version
attributes:
label: Auto Claude Version
description: What version are you running? (check package.json or git tag)
placeholder: "v2.0.1"
- type: dropdown
id: os
attributes:
@@ -78,26 +30,47 @@ body:
- macOS
- Windows
- Linux
- Other
validations:
required: true
- type: input
id: python-version
id: version
attributes:
label: Python Version
description: Output of `python --version`
placeholder: "3.12.0"
- type: input
id: node-version
attributes:
label: Node.js Version (for UI issues)
description: Output of `node --version`
placeholder: "20.10.0"
label: Version
placeholder: "e.g., 2.5.5"
validations:
required: true
- type: textarea
id: additional
id: description
attributes:
label: Additional Context
description: Any other context about the problem.
label: What happened?
placeholder: Describe the bug clearly and concisely. Include any error messages you encountered.
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce
placeholder: |
1. Run command '...' or click on '...'
2. Observe behavior '...'
3. See error or unexpected result
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
placeholder: What did you expect to happen instead? Describe the correct behavior.
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs / Screenshots
description: Required for UI bugs. Attach relevant logs, screenshots, or error output.
render: shell
+6 -6
View File
@@ -1,8 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Questions & Discussions
url: https://github.com/AndyMik90/Auto-Claude/discussions
about: Ask questions and discuss ideas with the community
- name: Documentation
url: https://github.com/AndyMik90/Auto-Claude#readme
about: Check the documentation before opening an issue
- name: 💡 Feature Request
url: https://github.com/AndyMik90/Auto-Claude/discussions/new?category=ideas
about: Suggest new features in GitHub Discussions
- name: 💬 Discord Community
url: https://discord.gg/KCXaPBr4Dj
about: Questions and discussions - join our Discord!
+37
View File
@@ -0,0 +1,37 @@
name: 📚 Documentation
description: Improvements or additions to documentation
labels: ["documentation", "needs-triage", "help wanted"]
body:
- type: dropdown
id: type
attributes:
label: Type
options:
- Missing documentation
- Incorrect/outdated info
- Improvement suggestion
- Typo/grammar fix
validations:
required: true
- type: input
id: location
attributes:
label: Location
description: Which file or page?
placeholder: "e.g., README.md or guides/setup.md"
- type: textarea
id: description
attributes:
label: Description
description: What needs to change?
validations:
required: true
- type: checkboxes
id: contribute
attributes:
label: Contribution
options:
- label: I'm willing to submit a PR for this
@@ -1,70 +0,0 @@
name: Feature Request
description: Suggest a new feature or enhancement
labels: ["enhancement", "triage"]
body:
- type: markdown
attributes:
value: |
Thanks for suggesting a feature! Please describe your idea below.
- type: textarea
id: problem
attributes:
label: Problem Statement
description: What problem does this feature solve? Is this related to a frustration?
placeholder: I'm always frustrated when...
validations:
required: true
- type: textarea
id: solution
attributes:
label: Proposed Solution
description: Describe the solution you'd like to see.
placeholder: I would like Auto Claude to...
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives Considered
description: Have you considered any alternative solutions or workarounds?
placeholder: I've tried...
- type: dropdown
id: component
attributes:
label: Component
description: Which part of Auto Claude would this affect?
options:
- Python Backend (auto-claude/)
- Electron UI (auto-claude-ui/)
- Both
- New component
- Not sure
validations:
required: true
- type: dropdown
id: priority
attributes:
label: How important is this feature to you?
options:
- Nice to have
- Important for my workflow
- Critical / Blocking my use
- type: checkboxes
id: contribution
attributes:
label: Contribution
description: Would you be willing to help implement this?
options:
- label: I'm willing to submit a PR for this feature
- type: textarea
id: additional
attributes:
label: Additional Context
description: Add any other context, mockups, or screenshots about the feature request.
+61
View File
@@ -0,0 +1,61 @@
name: ❓ Question
description: Needs clarification
labels: ["question", "needs-triage"]
body:
- type: markdown
attributes:
value: |
**Before asking:** Check [Discord](https://discord.gg/KCXaPBr4Dj) - your question may already be answered there!
- type: checkboxes
id: checklist
attributes:
label: Checklist
options:
- label: I searched existing issues and Discord for similar questions
required: true
- type: dropdown
id: area
attributes:
label: Area
options:
- Setup/Installation
- Frontend
- Backend
- Configuration
- Other
validations:
required: true
- type: input
id: version
attributes:
label: Version
description: Which version are you using?
placeholder: "e.g., 2.7.1"
validations:
required: true
- type: textarea
id: question
attributes:
label: Question
placeholder: "Describe your question in detail..."
validations:
required: true
- type: textarea
id: context
attributes:
label: Context
description: What are you trying to achieve?
validations:
required: true
- type: textarea
id: attempts
attributes:
label: What have you already tried?
description: What steps have you taken to resolve this?
placeholder: "e.g., I tried reading the docs, searched for..."
+59 -27
View File
@@ -1,44 +1,76 @@
## Summary
## Base Branch
<!-- Brief description of what this PR does -->
- [ ] This PR targets the `develop` branch (required for all feature/fix PRs)
- [ ] This PR targets `main` (hotfix only - maintainers)
## Description
<!-- What does this PR do? 2-3 sentences -->
## Related Issue
Closes #
## Type of Change
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Documentation update
- [ ] Refactoring (no functional changes)
- [ ] Tests (adding or updating tests)
- [ ] 🐛 Bug fix
- [ ] New feature
- [ ] 📚 Documentation
- [ ] ♻️ Refactor
- [ ] 🧪 Test
## Related Issues
## Area
<!-- Link any related issues: Fixes #123, Closes #456 -->
- [ ] Frontend
- [ ] Backend
- [ ] Fullstack
## Changes Made
## Commit Message Format
<!-- List the main changes in this PR -->
Follow conventional commits: `<type>: <subject>`
-
-
-
**Types:** feat, fix, docs, style, refactor, test, chore
## Screenshots
<!-- If applicable, add screenshots for UI changes -->
**Example:** `feat: add user authentication system`
## Checklist
- [ ] I have run `pre-commit run --all-files` and fixed any issues
- [ ] I have added tests for my changes (if applicable)
- [ ] All existing tests pass locally
- [ ] I have updated documentation (if applicable)
- [ ] My code follows the project's code style
- [ ] I've synced with `develop` branch
- [ ] I've tested my changes locally
- [ ] I've followed the code principles (SOLID, DRY, KISS)
- [ ] My PR is small and focused (< 400 lines ideally)
## Testing
## CI/Testing Requirements
<!-- Describe how you tested these changes -->
- [ ] All CI checks pass
- [ ] All existing tests pass
- [ ] New features include test coverage
- [ ] Bug fixes include regression tests
## Additional Notes
## Screenshots
<!-- Any additional context or notes for reviewers -->
<!-- Required for UI changes. Delete if not applicable. -->
| Before | After |
|--------|-------|
| | |
## Feature Toggle
<!-- If feature is incomplete or experimental, how is it hidden from users? -->
<!-- This ensures incomplete work can be merged without affecting production. -->
- [ ] Behind localStorage flag: `use_feature_name`
- [ ] Behind settings toggle
- [ ] Behind environment variable/config
- [ ] N/A - Feature is complete and ready for all users
## Breaking Changes
<!-- Does this PR introduce breaking changes? If yes, describe what breaks and migration steps. -->
<!-- Delete this section if not applicable. -->
**Breaking:** Yes / No
**Details:**
<!-- What breaks? What do users/developers need to change? -->
+35
View File
@@ -0,0 +1,35 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '## New Features'
labels:
- 'feature'
- 'enhancement'
- title: '## Bug Fixes'
labels:
- 'bug'
- 'fix'
- title: '## Improvements'
labels:
- 'improvement'
- 'refactor'
- title: '## Documentation'
labels:
- 'documentation'
- title: '## Other Changes'
labels:
- '*'
change-template: '* $TITLE (#$NUMBER) @$AUTHOR'
sort-by: merged_at
sort-direction: ascending
template: |
$CHANGES
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION
## Contributors
$CONTRIBUTORS
+53
View File
@@ -0,0 +1,53 @@
name: Auto Label
on:
issues:
types: [opened]
jobs:
label-area:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add area label from form
uses: actions/github-script@v7
with:
script: |
const issue = context.payload.issue;
const body = issue.body || '';
console.log(`Processing issue #${issue.number}: ${issue.title}`);
// Map form selection to label
const areaMap = {
'Frontend': 'area/frontend',
'Backend': 'area/backend',
'Fullstack': 'area/fullstack'
};
const labels = [];
for (const [key, label] of Object.entries(areaMap)) {
if (body.includes(key)) {
console.log(`Found area: ${key}, adding label: ${label}`);
labels.push(label);
break;
}
}
if (labels.length > 0) {
try {
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
labels: labels
});
console.log(`Successfully added labels: ${labels.join(', ')}`);
} catch (error) {
core.setFailed(`Failed to add labels: ${error.message}`);
}
} else {
console.log('No matching area found in issue body');
}
+389
View File
@@ -0,0 +1,389 @@
name: Beta Release
# Manual trigger for beta releases from develop branch
on:
workflow_dispatch:
inputs:
version:
description: 'Beta version (e.g., 2.8.0-beta.1)'
required: true
type: string
dry_run:
description: 'Test build without creating release'
required: false
default: false
type: boolean
jobs:
validate-version:
name: Validate beta version format
runs-on: ubuntu-latest
steps:
- name: Validate version format
run: |
VERSION="${{ github.event.inputs.version }}"
# Check if version matches beta semver pattern
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+-(beta|alpha|rc)\.[0-9]+$ ]]; then
echo "::error::Invalid version format: $VERSION"
echo "Version must match pattern: X.Y.Z-beta.N (e.g., 2.8.0-beta.1)"
exit 1
fi
echo "Valid beta version: $VERSION"
update-version:
name: Update package.json version
needs: validate-version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
ref: develop
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Update package.json version
id: version
run: |
VERSION="${{ github.event.inputs.version }}"
# Update frontend package.json
cd apps/frontend
npm version "$VERSION" --no-git-tag-version
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Updated package.json to version $VERSION"
- name: Commit version bump
if: ${{ github.event.inputs.dry_run != 'true' }}
run: |
VERSION="${{ github.event.inputs.version }}"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Stage all changed files in frontend directory (handles package-lock.json if it exists)
git add -A apps/frontend/
git commit -m "chore: bump version to $VERSION for beta release"
git push origin develop
- name: Create and push tag
if: ${{ github.event.inputs.dry_run != 'true' }}
run: |
VERSION="${{ github.event.inputs.version }}"
git tag -a "v$VERSION" -m "Beta release v$VERSION"
git push origin "v$VERSION"
echo "Created tag v$VERSION"
# Intel build on Intel runner for native compilation
build-macos-intel:
needs: update-version
runs-on: macos-15-intel
steps:
- uses: actions/checkout@v4
with:
ref: v${{ needs.update-version.outputs.version }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Get npm cache directory
id: npm-cache
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install dependencies
run: cd apps/frontend && npm ci
- name: Build application
run: cd apps/frontend && npm run build
- name: Package macOS (Intel)
run: cd apps/frontend && npm run package:mac -- --arch=x64
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.MAC_CERTIFICATE }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }}
- name: Notarize macOS Intel app
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: |
if [ -z "$APPLE_ID" ]; then
echo "Skipping notarization: APPLE_ID not configured"
exit 0
fi
cd apps/frontend
for dmg in dist/*.dmg; do
echo "Notarizing $dmg..."
xcrun notarytool submit "$dmg" \
--apple-id "$APPLE_ID" \
--password "$APPLE_APP_SPECIFIC_PASSWORD" \
--team-id "$APPLE_TEAM_ID" \
--wait
xcrun stapler staple "$dmg"
echo "Successfully notarized and stapled $dmg"
done
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: macos-intel-builds
path: |
apps/frontend/dist/*.dmg
apps/frontend/dist/*.zip
# Apple Silicon build on ARM64 runner for native compilation
build-macos-arm64:
needs: update-version
runs-on: macos-15
steps:
- uses: actions/checkout@v4
with:
ref: v${{ needs.update-version.outputs.version }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Get npm cache directory
id: npm-cache
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install dependencies
run: cd apps/frontend && npm ci
- name: Build application
run: cd apps/frontend && npm run build
- name: Package macOS (Apple Silicon)
run: cd apps/frontend && npm run package:mac -- --arch=arm64
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.MAC_CERTIFICATE }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }}
- name: Notarize macOS ARM64 app
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: |
if [ -z "$APPLE_ID" ]; then
echo "Skipping notarization: APPLE_ID not configured"
exit 0
fi
cd apps/frontend
for dmg in dist/*.dmg; do
echo "Notarizing $dmg..."
xcrun notarytool submit "$dmg" \
--apple-id "$APPLE_ID" \
--password "$APPLE_APP_SPECIFIC_PASSWORD" \
--team-id "$APPLE_TEAM_ID" \
--wait
xcrun stapler staple "$dmg"
echo "Successfully notarized and stapled $dmg"
done
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: macos-arm64-builds
path: |
apps/frontend/dist/*.dmg
apps/frontend/dist/*.zip
build-windows:
needs: update-version
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: v${{ needs.update-version.outputs.version }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Get npm cache directory
id: npm-cache
shell: bash
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install dependencies
run: cd apps/frontend && npm ci
- name: Build application
run: cd apps/frontend && npm run build
- name: Package Windows
run: cd apps/frontend && npm run package:win
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.WIN_CERTIFICATE }}
CSC_KEY_PASSWORD: ${{ secrets.WIN_CERTIFICATE_PASSWORD }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: windows-builds
path: |
apps/frontend/dist/*.exe
build-linux:
needs: update-version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: v${{ needs.update-version.outputs.version }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Get npm cache directory
id: npm-cache
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install dependencies
run: cd apps/frontend && npm ci
- name: Build application
run: cd apps/frontend && npm run build
- name: Package Linux
run: cd apps/frontend && npm run package:linux
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux-builds
path: |
apps/frontend/dist/*.AppImage
apps/frontend/dist/*.deb
create-release:
needs: [update-version, build-macos-intel, build-macos-arm64, build-windows, build-linux]
runs-on: ubuntu-latest
if: ${{ github.event.inputs.dry_run != 'true' }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: v${{ needs.update-version.outputs.version }}
fetch-depth: 0
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: dist
- name: Flatten and validate artifacts
run: |
mkdir -p release-assets
find dist -type f \( -name "*.dmg" -o -name "*.zip" -o -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" \) -exec cp {} release-assets/ \;
# Validate that at least one artifact was copied
artifact_count=$(find release-assets -type f \( -name "*.dmg" -o -name "*.zip" -o -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" \) | wc -l)
if [ "$artifact_count" -eq 0 ]; then
echo "::error::No build artifacts found! Expected .dmg, .zip, .exe, .AppImage, or .deb files."
exit 1
fi
echo "Found $artifact_count artifact(s):"
ls -la release-assets/
- name: Generate checksums
run: |
cd release-assets
sha256sum ./* > checksums.sha256
cat checksums.sha256
- name: Create Beta Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ needs.update-version.outputs.version }}
name: v${{ needs.update-version.outputs.version }} (Beta)
body: |
## Beta Release v${{ needs.update-version.outputs.version }}
This is a **beta release** for testing new features. It may contain bugs or incomplete functionality.
### How to opt-in to beta updates
1. Open Auto Claude
2. Go to Settings > Updates
3. Enable "Beta Updates" toggle
### Reporting Issues
Please report any issues at https://github.com/AndyMik90/Auto-Claude/issues
---
**Full Changelog**: https://github.com/${{ github.repository }}/compare/main...v${{ needs.update-version.outputs.version }}
files: release-assets/*
draft: false
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
dry-run-summary:
needs: [update-version, build-macos-intel, build-macos-arm64, build-windows, build-linux]
runs-on: ubuntu-latest
if: ${{ github.event.inputs.dry_run == 'true' }}
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: dist
- name: Dry run summary
run: |
echo "## Beta Release Dry Run Complete" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Version:** ${{ needs.update-version.outputs.version }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Build artifacts created successfully:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
find dist -type f \( -name "*.dmg" -o -name "*.zip" -o -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" \) >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "To create a real release, run this workflow again with dry_run unchecked." >> $GITHUB_STEP_SUMMARY
+127
View File
@@ -0,0 +1,127 @@
name: Build Native Module Prebuilds
on:
# Build on releases
release:
types: [published]
# Manual trigger for testing
workflow_dispatch:
inputs:
electron_version:
description: 'Electron version to build for'
required: false
default: '39.2.6'
env:
# Default Electron version - update when upgrading Electron in package.json
ELECTRON_VERSION: ${{ github.event.inputs.electron_version || '39.2.6' }}
jobs:
build-windows:
runs-on: windows-latest
strategy:
matrix:
arch: [x64]
# Add arm64 when GitHub Actions supports Windows ARM runners
# arch: [x64, arm64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Install Visual Studio Build Tools
uses: microsoft/setup-msbuild@v2
- name: Install node-pty and rebuild for Electron
working-directory: apps/frontend
shell: pwsh
run: |
# Install only node-pty
npm install node-pty@1.1.0-beta42
# Get Electron ABI version
$electronAbi = (npx electron-abi $env:ELECTRON_VERSION)
Write-Host "Building for Electron $env:ELECTRON_VERSION (ABI: $electronAbi)"
# Rebuild node-pty for Electron
npx @electron/rebuild --version $env:ELECTRON_VERSION --module-dir node_modules/node-pty --arch ${{ matrix.arch }}
- name: Package prebuilt binaries
working-directory: apps/frontend
shell: pwsh
run: |
$electronAbi = (npx electron-abi $env:ELECTRON_VERSION)
$prebuildDir = "prebuilds/win32-${{ matrix.arch }}-electron-$electronAbi"
New-Item -ItemType Directory -Force -Path $prebuildDir
# Copy all built native files
$buildDir = "node_modules/node-pty/build/Release"
if (Test-Path $buildDir) {
Copy-Item "$buildDir/*.node" $prebuildDir/ -Force
Copy-Item "$buildDir/*.dll" $prebuildDir/ -Force -ErrorAction SilentlyContinue
Copy-Item "$buildDir/*.exe" $prebuildDir/ -Force -ErrorAction SilentlyContinue
# Also copy conpty files if they exist in subdirectory
if (Test-Path "$buildDir/conpty") {
Copy-Item "$buildDir/conpty/*" $prebuildDir/ -Force
}
}
# List what we packaged
Write-Host "Packaged prebuilds:"
Get-ChildItem $prebuildDir
- name: Create archive
working-directory: apps/frontend
shell: pwsh
run: |
$electronAbi = (npx electron-abi $env:ELECTRON_VERSION)
$archiveName = "node-pty-win32-${{ matrix.arch }}-electron-$electronAbi.zip"
Compress-Archive -Path "prebuilds/*" -DestinationPath $archiveName
Write-Host "Created archive: $archiveName"
Get-ChildItem $archiveName
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: node-pty-win32-${{ matrix.arch }}
path: apps/frontend/node-pty-*.zip
retention-days: 90
- name: Upload to release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
files: apps/frontend/node-pty-*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Create a combined prebuilds package
package-prebuilds:
needs: build-windows
runs-on: ubuntu-latest
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: List artifacts
run: |
echo "Downloaded artifacts:"
find artifacts -type f -name "*.zip"
- name: Upload combined artifact
uses: actions/upload-artifact@v4
with:
name: node-pty-prebuilds-all
path: artifacts/**/*.zip
retention-days: 90
+39 -18
View File
@@ -2,9 +2,9 @@ name: CI
on:
push:
branches: [main]
branches: [main, develop]
pull_request:
branches: [main]
branches: [main, develop]
jobs:
# Python tests
@@ -29,35 +29,39 @@ jobs:
version: "latest"
- name: Install dependencies
working-directory: auto-claude
working-directory: apps/backend
run: |
uv venv
uv pip install -r requirements.txt
uv pip install -r ../tests/requirements-test.txt
uv pip install -r ../../tests/requirements-test.txt
- name: Run tests
working-directory: auto-claude
working-directory: apps/backend
env:
PYTHONPATH: ${{ github.workspace }}/apps/backend
run: |
source .venv/bin/activate
pytest ../tests/ -v --tb=short -x
pytest ../../tests/ -v --tb=short -x
- name: Run tests with coverage
if: matrix.python-version == '3.12'
working-directory: auto-claude
working-directory: apps/backend
env:
PYTHONPATH: ${{ github.workspace }}/apps/backend
run: |
source .venv/bin/activate
pytest ../tests/ -v --cov=. --cov-report=xml --cov-report=term-missing
pytest ../../tests/ -v --cov=. --cov-report=xml --cov-report=term-missing
- name: Upload coverage reports
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@v4
with:
file: ./auto-claude/coverage.xml
file: ./apps/backend/coverage.xml
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# Frontend tests
# Frontend lint, typecheck, test, and build
test-frontend:
runs-on: ubuntu-latest
steps:
@@ -67,17 +71,34 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '24'
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Get npm cache directory
id: npm-cache
run: echo "dir=$(npm config get cache)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v4
with:
version: 9
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install dependencies
working-directory: auto-claude-ui
run: pnpm install --frozen-lockfile --ignore-scripts
working-directory: apps/frontend
run: npm ci --ignore-scripts
- name: Lint
working-directory: apps/frontend
run: npm run lint
- name: Type check
working-directory: apps/frontend
run: npm run typecheck
- name: Run tests
working-directory: auto-claude-ui
run: pnpm test
working-directory: apps/frontend
run: npm run test
- name: Build
working-directory: apps/frontend
run: npm run build
+1 -2
View File
@@ -15,11 +15,10 @@ jobs:
uses: SethCohen/github-releases-to-discord@v1.19.0
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}
color: "5865F2"
color: "5793266"
username: "Auto Claude Releases"
avatar_url: "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"
footer_title: "Auto Claude Changelog"
footer_timestamp: true
reduce_headings: true
remove_github_reference_links: true
+11 -16
View File
@@ -2,9 +2,9 @@ name: Lint
on:
push:
branches: [main]
branches: [main, develop]
pull_request:
branches: [main]
branches: [main, develop]
jobs:
# Python linting
@@ -23,10 +23,10 @@ jobs:
run: pip install ruff
- name: Run ruff check
run: ruff check auto-claude/ --output-format=github
run: ruff check apps/backend/ --output-format=github
- name: Run ruff format check
run: ruff format auto-claude/ --check --diff
run: ruff format apps/backend/ --check --diff
# TypeScript/React linting
frontend:
@@ -38,21 +38,16 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
node-version: '24'
- name: Install dependencies
working-directory: auto-claude-ui
run: pnpm install --frozen-lockfile --ignore-scripts
working-directory: apps/frontend
run: npm ci --ignore-scripts
- name: Run ESLint
working-directory: auto-claude-ui
run: pnpm lint
working-directory: apps/frontend
run: npm run lint
- name: Run TypeScript check
working-directory: auto-claude-ui
run: pnpm typecheck
working-directory: apps/frontend
run: npm run typecheck
+109
View File
@@ -0,0 +1,109 @@
name: Prepare Release
# Triggers when code is pushed to main (e.g., merging develop → main)
# If package.json version is newer than the latest tag, creates a new tag
# which then triggers the release.yml workflow
on:
push:
branches: [main]
paths:
- 'apps/frontend/package.json'
- 'package.json'
jobs:
check-and-tag:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
should_release: ${{ steps.check.outputs.should_release }}
new_version: ${{ steps.check.outputs.new_version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Get package version
id: package
run: |
VERSION=$(node -p "require('./apps/frontend/package.json').version")
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Package version: $VERSION"
- name: Get latest tag version
id: latest_tag
run: |
# Get the latest version tag (v*)
LATEST_TAG=$(git tag -l 'v*' --sort=-version:refname | head -n1)
if [ -z "$LATEST_TAG" ]; then
echo "No existing tags found"
echo "version=0.0.0" >> $GITHUB_OUTPUT
else
# Remove 'v' prefix
LATEST_VERSION=${LATEST_TAG#v}
echo "version=$LATEST_VERSION" >> $GITHUB_OUTPUT
echo "Latest tag: $LATEST_TAG (version: $LATEST_VERSION)"
fi
- name: Check if release needed
id: check
run: |
PACKAGE_VERSION="${{ steps.package.outputs.version }}"
LATEST_VERSION="${{ steps.latest_tag.outputs.version }}"
echo "Comparing: package=$PACKAGE_VERSION vs latest_tag=$LATEST_VERSION"
# Use sort -V for version comparison
HIGHER=$(printf '%s\n%s' "$PACKAGE_VERSION" "$LATEST_VERSION" | sort -V | tail -n1)
if [ "$HIGHER" = "$PACKAGE_VERSION" ] && [ "$PACKAGE_VERSION" != "$LATEST_VERSION" ]; then
echo "should_release=true" >> $GITHUB_OUTPUT
echo "new_version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
echo "✅ New release needed: v$PACKAGE_VERSION"
else
echo "should_release=false" >> $GITHUB_OUTPUT
echo "⏭️ No release needed (package version not newer than latest tag)"
fi
- name: Create and push tag
if: steps.check.outputs.should_release == 'true'
run: |
VERSION="${{ steps.check.outputs.new_version }}"
TAG="v$VERSION"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
echo "Creating tag: $TAG"
git tag -a "$TAG" -m "Release $TAG"
git push origin "$TAG"
echo "✅ Tag $TAG created and pushed"
echo "🚀 This will trigger the release workflow"
- name: Summary
run: |
if [ "${{ steps.check.outputs.should_release }}" = "true" ]; then
echo "## 🚀 Release Triggered" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Version:** v${{ steps.check.outputs.new_version }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "The release workflow has been triggered and will:" >> $GITHUB_STEP_SUMMARY
echo "1. Build binaries for all platforms" >> $GITHUB_STEP_SUMMARY
echo "2. Generate changelog from PRs" >> $GITHUB_STEP_SUMMARY
echo "3. Create GitHub release" >> $GITHUB_STEP_SUMMARY
echo "4. Update README with new version" >> $GITHUB_STEP_SUMMARY
else
echo "## ⏭️ No Release Needed" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Package version:** ${{ steps.package.outputs.version }}" >> $GITHUB_STEP_SUMMARY
echo "**Latest tag:** v${{ steps.latest_tag.outputs.version }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "The package version is not newer than the latest tag." >> $GITHUB_STEP_SUMMARY
echo "To trigger a release, bump the version using:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
echo "node scripts/bump-version.js patch # or minor/major" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
fi
+482
View File
@@ -0,0 +1,482 @@
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
dry_run:
description: 'Test build without creating release'
required: false
default: true
type: boolean
jobs:
# Intel build on Intel runner for native compilation
# Note: macos-15-intel is the last Intel runner, supported until Fall 2027
build-macos-intel:
runs-on: macos-15-intel
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Get npm cache directory
id: npm-cache
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install dependencies
run: cd apps/frontend && npm ci
- name: Build application
run: cd apps/frontend && npm run build
- name: Package macOS (Intel)
run: cd apps/frontend && npm run package:mac -- --arch=x64
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.MAC_CERTIFICATE }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }}
- name: Notarize macOS Intel app
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: |
if [ -z "$APPLE_ID" ]; then
echo "Skipping notarization: APPLE_ID not configured"
exit 0
fi
cd apps/frontend
for dmg in dist/*.dmg; do
echo "Notarizing $dmg..."
xcrun notarytool submit "$dmg" \
--apple-id "$APPLE_ID" \
--password "$APPLE_APP_SPECIFIC_PASSWORD" \
--team-id "$APPLE_TEAM_ID" \
--wait
xcrun stapler staple "$dmg"
echo "Successfully notarized and stapled $dmg"
done
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: macos-intel-builds
path: |
apps/frontend/dist/*.dmg
apps/frontend/dist/*.zip
# Apple Silicon build on ARM64 runner for native compilation
build-macos-arm64:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Get npm cache directory
id: npm-cache
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install dependencies
run: cd apps/frontend && npm ci
- name: Build application
run: cd apps/frontend && npm run build
- name: Package macOS (Apple Silicon)
run: cd apps/frontend && npm run package:mac -- --arch=arm64
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.MAC_CERTIFICATE }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }}
- name: Notarize macOS ARM64 app
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: |
if [ -z "$APPLE_ID" ]; then
echo "Skipping notarization: APPLE_ID not configured"
exit 0
fi
cd apps/frontend
for dmg in dist/*.dmg; do
echo "Notarizing $dmg..."
xcrun notarytool submit "$dmg" \
--apple-id "$APPLE_ID" \
--password "$APPLE_APP_SPECIFIC_PASSWORD" \
--team-id "$APPLE_TEAM_ID" \
--wait
xcrun stapler staple "$dmg"
echo "Successfully notarized and stapled $dmg"
done
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: macos-arm64-builds
path: |
apps/frontend/dist/*.dmg
apps/frontend/dist/*.zip
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Get npm cache directory
id: npm-cache
shell: bash
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install dependencies
run: cd apps/frontend && npm ci
- name: Build application
run: cd apps/frontend && npm run build
- name: Package Windows
run: cd apps/frontend && npm run package:win
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.WIN_CERTIFICATE }}
CSC_KEY_PASSWORD: ${{ secrets.WIN_CERTIFICATE_PASSWORD }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: windows-builds
path: |
apps/frontend/dist/*.exe
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Get npm cache directory
id: npm-cache
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-
- name: Install dependencies
run: cd apps/frontend && npm ci
- name: Build application
run: cd apps/frontend && npm run build
- name: Package Linux
run: cd apps/frontend && npm run package:linux
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux-builds
path: |
apps/frontend/dist/*.AppImage
apps/frontend/dist/*.deb
create-release:
needs: [build-macos-intel, build-macos-arm64, build-windows, build-linux]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: dist
- name: Flatten and validate artifacts
run: |
mkdir -p release-assets
find dist -type f \( -name "*.dmg" -o -name "*.zip" -o -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" \) -exec cp {} release-assets/ \;
# Validate that at least one artifact was copied
artifact_count=$(find release-assets -type f \( -name "*.dmg" -o -name "*.zip" -o -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" \) | wc -l)
if [ "$artifact_count" -eq 0 ]; then
echo "::error::No build artifacts found! Expected .dmg, .zip, .exe, .AppImage, or .deb files."
exit 1
fi
echo "Found $artifact_count artifact(s):"
ls -la release-assets/
- name: Generate checksums
run: |
cd release-assets
sha256sum ./* > checksums.sha256
cat checksums.sha256
- name: Scan with VirusTotal
id: virustotal
continue-on-error: true
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.dry_run != true) }}
env:
VT_API_KEY: ${{ secrets.VIRUSTOTAL_API_KEY }}
run: |
if [ -z "$VT_API_KEY" ]; then
echo "::warning::VIRUSTOTAL_API_KEY not configured, skipping scan"
echo "vt_results=" >> $GITHUB_OUTPUT
exit 0
fi
echo "## VirusTotal Scan Results" > vt_results.md
echo "" >> vt_results.md
for file in release-assets/*.{exe,dmg,AppImage,deb}; do
[ -f "$file" ] || continue
filename=$(basename "$file")
filesize=$(stat -c%s "$file" 2>/dev/null || stat -f%z "$file")
echo "Scanning $filename (${filesize} bytes)..."
# For files > 32MB, get a special upload URL first
if [ "$filesize" -gt 33554432 ]; then
echo " Large file detected, requesting upload URL..."
upload_url_response=$(curl -s --request GET \
--url "https://www.virustotal.com/api/v3/files/upload_url" \
--header "x-apikey: $VT_API_KEY")
upload_url=$(echo "$upload_url_response" | jq -r '.data // empty')
if [ -z "$upload_url" ]; then
echo "::warning::Failed to get upload URL for large file $filename"
echo "Response: $upload_url_response"
echo "- $filename - ⚠️ Upload failed (large file)" >> vt_results.md
continue
fi
api_url="$upload_url"
else
api_url="https://www.virustotal.com/api/v3/files"
fi
# Upload file to VirusTotal
response=$(curl -s --request POST \
--url "$api_url" \
--header "x-apikey: $VT_API_KEY" \
--form "file=@$file")
# Check if response is valid JSON before parsing
if ! echo "$response" | jq -e . >/dev/null 2>&1; then
echo "::warning::VirusTotal returned invalid JSON for $filename"
echo "Response (first 500 chars): ${response:0:500}"
echo "- $filename - ⚠️ Scan failed (invalid response)" >> vt_results.md
continue
fi
# Check for API error response
error_code=$(echo "$response" | jq -r '.error.code // empty')
if [ -n "$error_code" ]; then
error_msg=$(echo "$response" | jq -r '.error.message // "Unknown error"')
echo "::warning::VirusTotal API error for $filename: $error_code - $error_msg"
echo "- $filename - ⚠️ Scan failed ($error_code)" >> vt_results.md
continue
fi
# Extract analysis ID
analysis_id=$(echo "$response" | jq -r '.data.id // empty')
if [ -z "$analysis_id" ]; then
echo "::warning::Failed to upload $filename to VirusTotal"
echo "Response: $response"
echo "- $filename - ⚠️ Upload failed" >> vt_results.md
continue
fi
echo "Uploaded $filename, analysis ID: $analysis_id"
# Wait for analysis to complete (max 5 minutes per file)
analysis=""
for i in {1..30}; do
sleep 10
analysis=$(curl -s --request GET \
--url "https://www.virustotal.com/api/v3/analyses/$analysis_id" \
--header "x-apikey: $VT_API_KEY")
# Validate JSON response
if ! echo "$analysis" | jq -e . >/dev/null 2>&1; then
echo " Warning: Invalid JSON response on attempt $i, retrying..."
continue
fi
status=$(echo "$analysis" | jq -r '.data.attributes.status // "unknown"')
echo " Status: $status (attempt $i/30)"
if [ "$status" = "completed" ]; then
break
fi
done
# Final validation that we have valid analysis data
if ! echo "$analysis" | jq -e '.data.attributes.stats' >/dev/null 2>&1; then
echo "::warning::Could not get complete analysis for $filename, using local hash"
file_hash=$(sha256sum "$file" | cut -d' ' -f1)
echo "- [$filename](https://www.virustotal.com/gui/file/$file_hash) - ⚠️ Analysis incomplete" >> vt_results.md
continue
fi
# Get file hash for permanent URL
file_hash=$(echo "$analysis" | jq -r '.meta.file_info.sha256 // empty')
if [ -z "$file_hash" ]; then
# Fallback: calculate hash locally
file_hash=$(sha256sum "$file" | cut -d' ' -f1)
fi
# Get detection stats
malicious=$(echo "$analysis" | jq -r '.data.attributes.stats.malicious // 0')
suspicious=$(echo "$analysis" | jq -r '.data.attributes.stats.suspicious // 0')
undetected=$(echo "$analysis" | jq -r '.data.attributes.stats.undetected // 0')
vt_url="https://www.virustotal.com/gui/file/$file_hash"
if [ "$malicious" -gt 0 ] || [ "$suspicious" -gt 0 ]; then
echo "::warning::$filename has $malicious malicious and $suspicious suspicious detections (likely false positives)"
echo "- [$filename]($vt_url) - ⚠️ **$malicious malicious, $suspicious suspicious** detections (review recommended)" >> vt_results.md
else
echo "$filename is clean ($undetected engines, 0 detections)"
echo "- [$filename]($vt_url) - ✅ Clean ($undetected engines, 0 detections)" >> vt_results.md
fi
done
echo "" >> vt_results.md
# Save results for release notes
cat vt_results.md
echo "vt_results<<EOF" >> $GITHUB_OUTPUT
cat vt_results.md >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Dry run summary
if: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run == true }}
run: |
echo "## Dry Run Complete" >> $GITHUB_STEP_SUMMARY
echo "Build artifacts created successfully:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
ls -la release-assets/ >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "### Checksums" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
cat release-assets/checksums.sha256 >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
- name: Generate changelog
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.dry_run != true) }}
id: changelog
uses: release-drafter/release-drafter@v6
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.dry_run != true) }}
uses: softprops/action-gh-release@v2
with:
body: |
${{ steps.changelog.outputs.body }}
${{ steps.virustotal.outputs.vt_results }}
files: release-assets/*
draft: false
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Update README with new version after successful release
update-readme:
needs: [create-release]
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.dry_run != true) }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.GITHUB_TOKEN }}
- name: Extract version from tag
id: version
run: |
# Extract version from tag (v2.7.2 -> 2.7.2)
VERSION=${GITHUB_REF_NAME#v}
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Updating README to version: $VERSION"
- name: Update README.md
run: |
VERSION="${{ steps.version.outputs.version }}"
# Update version badge: version-X.Y.Z-blue
sed -i "s/version-[0-9]*\.[0-9]*\.[0-9]*-blue/version-${VERSION}-blue/g" README.md
# Update download links: Auto-Claude-X.Y.Z
sed -i "s/Auto-Claude-[0-9]*\.[0-9]*\.[0-9]*/Auto-Claude-${VERSION}/g" README.md
echo "README.md updated to version $VERSION"
grep -E "(version-|Auto-Claude-)" README.md | head -10
- name: Commit and push README update
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Check if there are changes to commit
if git diff --quiet README.md; then
echo "No changes to README.md, skipping commit"
exit 0
fi
git add README.md
git commit -m "docs: update README to v${{ steps.version.outputs.version }} [skip ci]"
git push origin main
+25
View File
@@ -0,0 +1,25 @@
name: Stale Issues
on:
schedule:
- cron: '0 0 * * 0' # Every Sunday
workflow_dispatch:
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v9
with:
stale-issue-message: |
This issue has been inactive for 60 days. It will be closed in 14 days if there's no activity.
- If this is still relevant, please comment or update the issue
- If you're working on this, add the `in-progress` label
close-issue-message: 'Closed due to inactivity. Feel free to reopen if still relevant.'
stale-issue-label: 'stale'
days-before-stale: 60
days-before-close: 14
exempt-issue-labels: 'priority/critical,priority/high,in-progress,blocked'
+11 -14
View File
@@ -28,17 +28,19 @@ jobs:
version: "latest"
- name: Install dependencies
working-directory: auto-claude
working-directory: apps/backend
run: |
uv venv
uv pip install -r requirements.txt
uv pip install -r ../tests/requirements-test.txt
uv pip install -r ../../tests/requirements-test.txt
- name: Run tests
working-directory: auto-claude
working-directory: apps/backend
env:
PYTHONPATH: ${{ github.workspace }}/apps/backend
run: |
source .venv/bin/activate
pytest ../tests/ -v --tb=short
pytest ../../tests/ -v --tb=short
# Frontend tests
test-frontend:
@@ -50,17 +52,12 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
node-version: '24'
- name: Install dependencies
working-directory: auto-claude-ui
run: pnpm install --frozen-lockfile --ignore-scripts
working-directory: apps/frontend
run: npm ci --ignore-scripts
- name: Run tests
working-directory: auto-claude-ui
run: pnpm test
working-directory: apps/frontend
run: npm run test
+71
View File
@@ -0,0 +1,71 @@
name: Validate Version
on:
push:
tags:
- 'v*'
jobs:
validate-version:
name: Validate package.json version matches tag
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract version from tag
id: tag_version
run: |
# Extract version from tag (e.g., v2.5.5 -> 2.5.5)
TAG_VERSION=${GITHUB_REF#refs/tags/v}
echo "version=$TAG_VERSION" >> $GITHUB_OUTPUT
echo "Tag version: $TAG_VERSION"
- name: Extract version from package.json
id: package_version
run: |
# Read version from package.json
PACKAGE_VERSION=$(node -p "require('./apps/frontend/package.json').version")
echo "version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
echo "Package.json version: $PACKAGE_VERSION"
- name: Compare versions
run: |
TAG_VERSION="${{ steps.tag_version.outputs.version }}"
PACKAGE_VERSION="${{ steps.package_version.outputs.version }}"
echo "=========================================="
echo "Version Validation"
echo "=========================================="
echo "Git tag version: v$TAG_VERSION"
echo "package.json version: $PACKAGE_VERSION"
echo "=========================================="
if [ "$TAG_VERSION" != "$PACKAGE_VERSION" ]; then
echo ""
echo "❌ ERROR: Version mismatch detected!"
echo ""
echo "The version in package.json ($PACKAGE_VERSION) does not match"
echo "the git tag version ($TAG_VERSION)."
echo ""
echo "To fix this:"
echo " 1. Delete this tag: git tag -d v$TAG_VERSION"
echo " 2. Update package.json version to $TAG_VERSION"
echo " 3. Commit the change"
echo " 4. Recreate the tag: git tag -a v$TAG_VERSION -m 'Release v$TAG_VERSION'"
echo ""
echo "Or use the automated script:"
echo " node scripts/bump-version.js $TAG_VERSION"
echo ""
exit 1
fi
echo ""
echo "✅ SUCCESS: Versions match!"
echo ""
- name: Version validation result
if: success()
run: |
echo "::notice::Version validation passed - package.json version matches tag v${{ steps.tag_version.outputs.version }}"
+33
View File
@@ -0,0 +1,33 @@
name: Welcome
on:
pull_request_target:
types: [opened]
issues:
types: [opened]
jobs:
welcome:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
👋 Thanks for opening your first issue!
A maintainer will triage this soon. In the meantime:
- Make sure you've provided all the requested info
- Join our [Discord](https://discord.gg/KCXaPBr4Dj) for faster help
pr-message: |
🎉 Thanks for your first PR!
A maintainer will review it soon. Please make sure:
- Your branch is synced with `main`
- CI checks pass
- You've followed our [contribution guide](CONTRIBUTING.md)
Welcome to the Auto-Claude community!
+111 -35
View File
@@ -1,31 +1,69 @@
# OS
# ===========================
# OS Files
# ===========================
.DS_Store
.DS_Store?
._*
Thumbs.db
ehthumbs.db
Desktop.ini
# Environment files (contain API keys)
# ===========================
# Security - Environment & Secrets
# ===========================
.env
.env.local
.env.*
!.env.example
*.pem
*.key
*.crt
*.p12
*.pfx
.secrets
secrets/
credentials/
# Git worktrees (used by auto-build parallel mode)
.worktrees/
# IDE
# ===========================
# IDE & Editors
# ===========================
.idea/
.vscode/
*.swp
*.swo
*.sublime-workspace
*.sublime-project
.project
.classpath
.settings/
# ===========================
# Logs
# ===========================
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Personal notes
OPUS_ANALYSIS_AND_IDEAS.md
# ===========================
# Git Worktrees (parallel builds)
# ===========================
.worktrees/
# Documentation
docs/
# ===========================
# Auto Claude Generated
# ===========================
.auto-claude/
.auto-build-security.json
.auto-claude-security.json
.auto-claude-status
.claude_settings.json
.update-metadata.json
# Python
# ===========================
# Python (apps/backend)
# ===========================
__pycache__/
*.py[cod]
*$py.class
@@ -33,25 +71,19 @@ __pycache__/
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
/lib/
/lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# Virtual environments
.venv/
venv/
ENV/
env/
.conda/
# Testing
.pytest_cache/
@@ -64,25 +96,69 @@ coverage.xml
*.py,cover
.hypothesis/
# mypy
# Type checking
.mypy_cache/
.dmypy.json
dmypy.json
.pytype/
.pyre/
# Auto-build generated files
.auto-build-security.json
.auto-claude-security.json
.auto-claude-status
.claude_settings.json
# ===========================
# Node.js (apps/frontend)
# ===========================
node_modules/
.npm
.yarn/
.pnp.*
# Development of Auto Build with Auto Build
# Build output
dist/
out/
*.tsbuildinfo
# Cache
.cache/
.parcel-cache/
.turbo/
.eslintcache
.prettiercache
# ===========================
# Electron
# ===========================
apps/frontend/dist/
apps/frontend/out/
*.asar
*.blockmap
*.snap
*.deb
*.rpm
*.AppImage
*.dmg
*.exe
*.msi
# ===========================
# Testing
# ===========================
coverage/
.nyc_output/
test-results/
playwright-report/
playwright/.cache/
# ===========================
# Misc
# ===========================
*.local
*.bak
*.tmp
*.temp
# Development
dev/
.auto-claude/
_bmad/
_bmad-output/
.claude/
/docs
_bmad
_bmad-output
.claude
OPUS_ANALYSIS_AND_IDEAS.md
+73
View File
@@ -0,0 +1,73 @@
#!/bin/sh
# Commit message validation
# Enforces conventional commit format: type(scope): description
#
# Valid types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert
# Examples:
# feat(tasks): add drag and drop support
# fix(terminal): resolve scroll position issue
# docs: update README with setup instructions
# chore: update dependencies
commit_msg_file=$1
commit_msg=$(cat "$commit_msg_file")
# Regex for conventional commits
# Format: type(optional-scope): description
pattern="^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([a-z0-9-]+\))?: .{1,100}$"
# Allow merge commits
if echo "$commit_msg" | grep -qE "^Merge "; then
exit 0
fi
# Allow revert commits
if echo "$commit_msg" | grep -qE "^Revert "; then
exit 0
fi
# Check first line against pattern
first_line=$(echo "$commit_msg" | head -n 1)
if ! echo "$first_line" | grep -qE "$pattern"; then
echo ""
echo "ERROR: Invalid commit message format!"
echo ""
echo "Your message: $first_line"
echo ""
echo "Expected format: type(scope): description"
echo ""
echo "Valid types:"
echo " feat - A new feature"
echo " fix - A bug fix"
echo " docs - Documentation changes"
echo " style - Code style changes (formatting, semicolons, etc.)"
echo " refactor - Code refactoring (no feature/fix)"
echo " perf - Performance improvements"
echo " test - Adding or updating tests"
echo " build - Build system or dependencies"
echo " ci - CI/CD configuration"
echo " chore - Other changes (maintenance)"
echo " revert - Reverting a previous commit"
echo ""
echo "Examples:"
echo " feat(tasks): add drag and drop support"
echo " fix(terminal): resolve scroll position issue"
echo " docs: update README"
echo " chore: update dependencies"
echo ""
exit 1
fi
# Check description length (max 100 chars for first line)
if [ ${#first_line} -gt 100 ]; then
echo ""
echo "ERROR: Commit message first line is too long!"
echo "Maximum: 100 characters"
echo "Current: ${#first_line} characters"
echo ""
exit 1
fi
exit 0
+155 -3
View File
@@ -1,6 +1,158 @@
#!/bin/sh
# Run lint-staged in auto-claude-ui if there are staged files there
if git diff --cached --name-only | grep -q "^auto-claude-ui/"; then
cd auto-claude-ui && pnpm exec lint-staged
echo "Running pre-commit checks..."
# =============================================================================
# VERSION SYNC - Keep all version references in sync with root package.json
# =============================================================================
# Check if package.json is staged
if git diff --cached --name-only | grep -q "^package.json$"; then
echo "package.json changed, syncing version to all files..."
# Extract version from root package.json
VERSION=$(node -p "require('./package.json').version")
if [ -n "$VERSION" ]; then
# Sync to apps/frontend/package.json
if [ -f "apps/frontend/package.json" ]; then
node -e "
const fs = require('fs');
const pkg = require('./apps/frontend/package.json');
if (pkg.version !== '$VERSION') {
pkg.version = '$VERSION';
fs.writeFileSync('./apps/frontend/package.json', JSON.stringify(pkg, null, 2) + '\n');
console.log(' Updated apps/frontend/package.json to $VERSION');
}
"
git add apps/frontend/package.json
fi
# Sync to apps/backend/__init__.py
if [ -f "apps/backend/__init__.py" ]; then
sed -i.bak "s/__version__ = \"[^\"]*\"/__version__ = \"$VERSION\"/" apps/backend/__init__.py
rm -f apps/backend/__init__.py.bak
git add apps/backend/__init__.py
echo " Updated apps/backend/__init__.py to $VERSION"
fi
# Sync to README.md
if [ -f "README.md" ]; then
# Update version badge
sed -i.bak "s/version-[0-9]*\.[0-9]*\.[0-9]*-blue/version-$VERSION-blue/g" README.md
# Update download links
sed -i.bak "s/Auto-Claude-[0-9]*\.[0-9]*\.[0-9]*/Auto-Claude-$VERSION/g" README.md
rm -f README.md.bak
git add README.md
echo " Updated README.md to $VERSION"
fi
echo "Version sync complete: $VERSION"
fi
fi
# =============================================================================
# BACKEND CHECKS (Python) - Run first, before frontend
# =============================================================================
# Check if there are staged Python files in apps/backend
if git diff --cached --name-only | grep -q "^apps/backend/.*\.py$"; then
echo "Python changes detected, running backend checks..."
# Determine ruff command (venv or global)
RUFF=""
if [ -f "apps/backend/.venv/bin/ruff" ]; then
RUFF="apps/backend/.venv/bin/ruff"
elif [ -f "apps/backend/.venv/Scripts/ruff.exe" ]; then
RUFF="apps/backend/.venv/Scripts/ruff.exe"
elif command -v ruff >/dev/null 2>&1; then
RUFF="ruff"
fi
if [ -n "$RUFF" ]; then
# Run ruff linting (auto-fix)
echo "Running ruff lint..."
$RUFF check apps/backend/ --fix
if [ $? -ne 0 ]; then
echo "Ruff lint failed. Please fix Python linting errors before committing."
exit 1
fi
# Run ruff format (auto-fix)
echo "Running ruff format..."
$RUFF format apps/backend/
# Stage any files that were auto-fixed by ruff (POSIX-compliant)
find apps/backend -name "*.py" -type f -exec git add {} + 2>/dev/null || true
else
echo "Warning: ruff not found, skipping Python linting. Install with: uv pip install ruff"
fi
# Run pytest (skip slow/integration tests and Windows-incompatible tests for pre-commit speed)
echo "Running Python tests..."
cd apps/backend
# Tests to skip: graphiti (external deps), merge_file_tracker/service_orchestrator/worktree/workspace (Windows path/git issues)
IGNORE_TESTS="--ignore=../../tests/test_graphiti.py --ignore=../../tests/test_merge_file_tracker.py --ignore=../../tests/test_service_orchestrator.py --ignore=../../tests/test_worktree.py --ignore=../../tests/test_workspace.py"
if [ -d ".venv" ]; then
# Use venv if it exists
if [ -f ".venv/bin/pytest" ]; then
PYTHONPATH=. .venv/bin/pytest ../../tests/ -v --tb=short -x -m "not slow and not integration" $IGNORE_TESTS
elif [ -f ".venv/Scripts/pytest.exe" ]; then
# Windows
PYTHONPATH=. .venv/Scripts/pytest.exe ../../tests/ -v --tb=short -x -m "not slow and not integration" $IGNORE_TESTS
else
PYTHONPATH=. python -m pytest ../../tests/ -v --tb=short -x -m "not slow and not integration" $IGNORE_TESTS
fi
else
PYTHONPATH=. python -m pytest ../../tests/ -v --tb=short -x -m "not slow and not integration" $IGNORE_TESTS
fi
if [ $? -ne 0 ]; then
echo "Python tests failed. Please fix failing tests before committing."
exit 1
fi
cd ../..
echo "Backend checks passed!"
fi
# =============================================================================
# FRONTEND CHECKS (TypeScript/React)
# =============================================================================
# Check if there are staged files in apps/frontend
if git diff --cached --name-only | grep -q "^apps/frontend/"; then
echo "Frontend changes detected, running frontend checks..."
cd apps/frontend
# Run lint-staged (handles staged .ts/.tsx files)
npm exec lint-staged
# Run TypeScript type check
echo "Running type check..."
npm run typecheck
if [ $? -ne 0 ]; then
echo "Type check failed. Please fix TypeScript errors before committing."
exit 1
fi
# Run linting
echo "Running lint..."
npm run lint
if [ $? -ne 0 ]; then
echo "Lint failed. Run 'npm run lint:fix' to auto-fix issues."
exit 1
fi
# Check for vulnerabilities (only high severity)
echo "Checking for vulnerabilities..."
npm audit --audit-level=high
if [ $? -ne 0 ]; then
echo "High severity vulnerabilities found. Run 'npm audit fix' to resolve."
exit 1
fi
cd ../..
echo "Frontend checks passed!"
fi
echo "All pre-commit checks passed!"
+42 -8
View File
@@ -1,29 +1,62 @@
repos:
# Python linting (auto-claude/)
# Version sync - propagate root package.json version to all files
- repo: local
hooks:
- id: version-sync
name: Version Sync
entry: bash -c '
VERSION=$(node -p "require(\"./package.json\").version");
if [ -n "$VERSION" ]; then
# Sync to apps/frontend/package.json
node -e "const fs=require(\"fs\");const p=require(\"./apps/frontend/package.json\");if(p.version!==\"$VERSION\"){p.version=\"$VERSION\";fs.writeFileSync(\"./apps/frontend/package.json\",JSON.stringify(p,null,2)+\"\n\");}";
# Sync to apps/backend/__init__.py
sed -i.bak "s/__version__ = \"[^\"]*\"/__version__ = \"$VERSION\"/" apps/backend/__init__.py && rm -f apps/backend/__init__.py.bak;
# Sync to README.md
sed -i.bak "s/version-[0-9]*\.[0-9]*\.[0-9]*-blue/version-$VERSION-blue/g" README.md;
sed -i.bak "s/Auto-Claude-[0-9]*\.[0-9]*\.[0-9]*/Auto-Claude-$VERSION/g" README.md && rm -f README.md.bak;
git add apps/frontend/package.json apps/backend/__init__.py README.md 2>/dev/null || true;
fi
'
language: system
files: ^package\.json$
pass_filenames: false
# Python linting (apps/backend/)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.3
hooks:
- id: ruff
args: [--fix]
files: ^auto-claude/
files: ^apps/backend/
- id: ruff-format
files: ^auto-claude/
files: ^apps/backend/
# Frontend linting (auto-claude-ui/)
# Python tests (apps/backend/) - skip slow/integration tests for pre-commit speed
# Tests to skip: graphiti (external deps), merge_file_tracker/service_orchestrator/worktree/workspace (Windows path/git issues)
- repo: local
hooks:
- id: pytest
name: Python Tests
entry: bash -c 'cd apps/backend && PYTHONPATH=. python -m pytest ../../tests/ -v --tb=short -x -m "not slow and not integration" --ignore=../../tests/test_graphiti.py --ignore=../../tests/test_merge_file_tracker.py --ignore=../../tests/test_service_orchestrator.py --ignore=../../tests/test_worktree.py --ignore=../../tests/test_workspace.py'
language: system
files: ^(apps/backend/.*\.py$|tests/.*\.py$)
pass_filenames: false
# Frontend linting (apps/frontend/)
- repo: local
hooks:
- id: eslint
name: ESLint
entry: bash -c 'cd auto-claude-ui && pnpm lint'
entry: bash -c 'cd apps/frontend && npm run lint'
language: system
files: ^auto-claude-ui/.*\.(ts|tsx|js|jsx)$
files: ^apps/frontend/.*\.(ts|tsx|js|jsx)$
pass_filenames: false
- id: typecheck
name: TypeScript Check
entry: bash -c 'cd auto-claude-ui && pnpm typecheck'
entry: bash -c 'cd apps/frontend && npm run typecheck'
language: system
files: ^auto-claude-ui/.*\.(ts|tsx)$
files: ^apps/frontend/.*\.(ts|tsx)$
pass_filenames: false
# General checks
@@ -33,4 +66,5 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: pnpm-lock\.yaml$
- id: check-added-large-files
+727 -1
View File
@@ -1,3 +1,729 @@
## 2.7.1 - Build Pipeline Enhancements
### 🛠️ Improvements
- Enhanced VirusTotal scan error handling in release workflow with graceful failure recovery and improved reporting visibility
- Refactored macOS build workflow to support both Intel and ARM64 architectures with notarization for Intel builds and improved artifact handling
- Streamlined CI/CD processes with updated caching strategies and enhanced error handling for external API interactions
### 📚 Documentation
- Clarified README documentation
---
## What's Changed
- chore: Enhance VirusTotal scan error handling in release workflow by @AndyMik90 in d23fcd8
- chore: Refactor macOS build workflow to support Intel and ARM64 architectures by @AndyMik90 in 326118b
- docs: readme clarification by @AndyMik90 in 6afcc92
- fix: version by @AndyMik90 in 2c93890
## Thanks to all contributors
@AndyMik90
## 2.7.0 - Tab Persistence & Memory System Modernization
### ✨ New Features
- Project tab bar with persistent tab management and GitHub organization initialization on project creation
- Task creation enhanced with @ autocomplete for agent profiles and improved drag-and-drop support
- Keyboard shortcuts and tooltips added to project tabs for better navigation
- Agent task restart functionality with new profile support for flexible task recovery
- Ollama embedding model support with automatic dimension detection for self-hosted deployments
### 🛠️ Improvements
- Memory system completely redesigned with embedded LadybugDB, eliminating Docker/FalkorDB dependency and improving performance
- Tab persistence implemented via IPC-based mechanism for reliable session state management
- Terminal environment improved by using virtual environment Python for proper terminal name generation
- AI merge operations timeout increased from 2 to 10 minutes for reliability with larger changes
- Merge operations now use stored baseBranch metadata for consistent branch targeting
- Memory configuration UI simplified and rebranded with improved Ollama integration and detection
- CI/CD workflows enhanced with code signing support and automated release process
- Cross-platform compatibility improved by replacing Unix shell syntax with portable git commands
- Python venv created in userData for packaged applications to ensure proper environment isolation
### 🐛 Bug Fixes
- Task title no longer blocks edit/close buttons in UI
- Tab persistence and terminal shortcuts properly scoped to prevent conflicts
- Agent profile fallback corrected from 'Balanced' to 'Auto (Optimized)'
- macOS notarization made optional and improved with private artifact storage
- Embedding provider changes now properly detected during migration
- Memory query CLI respects user's memory enabled flag
- CodeRabbit review issues and linting errors resolved across codebase
- F-string prefixes removed from strings without placeholders
- Import ordering fixed for ruff compliance
- Preview panel now receives projectPath prop correctly for image component functionality
- Default database path unified to ~/.auto-claude/memories for consistency
- @lydell/node-pty build scripts compatibility improved for pnpm v10
---
## What's Changed
- feat(ui): add project tab bar from PR #101 by @AndyMik90 in c400fe9
- feat: improve task creation UX with @ autocomplete and better drag-drop by @AndyMik90 in 20d1487
- feat(ui): add keyboard shortcuts and tooltips for project tabs by @AndyMik90 in ed73265
- feat(agent): enhance task restart functionality with new profile support by @AndyMik90 in c8452a5
- feat: add Ollama embedding model support with auto-detected dimensions by @AndyMik90 in 45901f3
- feat(memory): replace FalkorDB with LadybugDB embedded database by @AndyMik90 in 87d0b52
- feat: add automated release workflow with code signing by @AndyMik90 in 6819b00
- feat: add embedding provider change detection and fix import ordering by @AndyMik90 in 36f8006
- fix(tests): update tab management tests for IPC-based persistence by @AndyMik90 in ea25d6e
- fix(ui): address CodeRabbit PR review issues by @AndyMik90 in 39ce754
- fix: address CodeRabbit review issues by @AndyMik90 in 95ae0b0
- fix: prevent task title from blocking edit/close buttons by @AndyMik90 in 8a0fb26
- fix: use venv Python for terminal name generation by @AndyMik90 in 325cb54
- fix(merge): increase AI merge timeout from 2 to 10 minutes by @AndyMik90 in 4477538
- fix(merge): use stored baseBranch from task metadata for merge operations by @AndyMik90 in 8d56474
- fix: unify default database path to ~/.auto-claude/memories by @AndyMik90 in 684e3f9
- fix(ui): fix tab persistence and scope terminal shortcuts by @AndyMik90 in 2d1168b
- fix: create Python venv in userData for packaged apps by @AndyMik90 in b83377c
- fix(ui): change agent profile fallback from 'Balanced' to 'Auto (Optimized)' by @AndyMik90 in 385dcc1
- fix: check APPLE_ID in shell instead of workflow if condition by @AndyMik90 in 9eece01
- fix: allow @lydell/node-pty build scripts in pnpm v10 by @AndyMik90 in 1f6963f
- fix: use shell guard for notarization credentials check by @AndyMik90 in 4cbddd3
- fix: improve migrate_embeddings robustness and correctness by @AndyMik90 in 61f0238
- fix: respect user's memory enabled flag in query_memory CLI by @AndyMik90 in 45b2c83
- fix: save notarization logs to private artifact instead of public logs by @AndyMik90 in a82525d
- fix: make macOS notarization optional by @AndyMik90 in f2b7b56
- fix: add author email for Linux builds by @AndyMik90 in 5f66127
- fix: add GH_TOKEN and homepage for release workflow by @AndyMik90 in 568ea18
- fix(ci): quote GITHUB_OUTPUT for shell safety by @AndyMik90 in 1e891e1
- fix: address CodeRabbit review feedback by @AndyMik90 in 8e4b1da
- fix: update test and apply ruff formatting by @AndyMik90 in a087ba3
- fix: address additional CodeRabbit review comments by @AndyMik90 in 461fad6
- fix: sort imports in memory.py for ruff I001 by @AndyMik90 in b3c257d
- fix: address CodeRabbit review comments from PR #100 by @AndyMik90 in 1ed237a
- fix: remove f-string prefixes from strings without placeholders by @AndyMik90 in bcd453a
- fix: resolve remaining CI failures by @AndyMik90 in cfbccda
- fix: resolve all CI failures in PR #100 by @AndyMik90 in c493d6c
- fix(cli): update graphiti status display for LadybugDB by @AndyMik90 in 049c60c
- fix(ui): replace Unix shell syntax with cross-platform git commands by @AndyMik90 in 83aa3f0
- fix: correct model name and release workflow conditionals by @AndyMik90 in de41dfc
- style: fix ruff linting errors in graphiti queries by @AndyMik90 in 127559f
- style: apply ruff formatting to 4 files by @AndyMik90 in 9d5d075
- refactor: update memory test suite for LadybugDB by @AndyMik90 in f0b5efc
- refactor(ui): simplify reference files and images handling in task modal by @AndyMik90 in 1975e4d
- refactor: rebrand memory system UI and simplify configuration by @AndyMik90 in 2b3cd49
- refactor: replace Docker/FalkorDB with embedded LadybugDB for memory system by @AndyMik90 in 325458d
- docs: add CodeRabbit review response tracking by @AndyMik90 in 3452548
- chore: use GitHub noreply email for author field by @AndyMik90 in 18f2045
- chore: simplify notarization step after successful setup by @AndyMik90 in e4fe7cd
- chore: update CI and release workflows, remove changelog config by @AndyMik90 in 6f891b7
- chore: remove docker-compose.yml (FalkorDB no longer used) by @AndyMik90 in 68f3f06
- fix: Replace space with hyphen in productName to fix PTY daemon spawn (#65) by @Craig Van in 8f1f7a7
- fix: update npm scripts to use hyphenated product name by @AndyMik90 in 89978ed
- fix(ui): improve Ollama UX in memory settings by @AndyMik90 in dea1711
- auto-claude: subtask-1-1 - Add projectPath prop to PreviewPanel and implement custom img component by @AndyMik90 in e6529e0
- Project tab persistence and github org init on project creation by @AndyMik90 in ae1dac9
- Readme for installors by @AndyMik90 in 1855d7d
---
## Thanks to all contributors
@AndyMik90, @Craig Van
## 2.6.0 - Improved User Experience and Agent Configuration
### ✨ New Features
- Add customizable phase configuration in app settings, allowing users to tailor the AI build pipeline to their workflow
- Implement parallel AI merge functionality for faster integration of completed builds
- Add Google AI as LLM and embedding provider for Graphiti memory system
- Implement device code authentication flow with timeout handling, browser launch fallback, and comprehensive testing
### 🛠️ Improvements
- Move Agent Profiles from dashboard to Settings for better organization and discoverability
- Default agent profile to 'Auto (Optimized)' for streamlined out-of-the-box experience
- Enhance WorkspaceStatus component UI with improved visual design
- Refactor task management from sidebar to modal interface for cleaner navigation
- Add comprehensive theme system with multiple color schemes (Forest, Neo, Retro, Dusk, Ocean, Lime) and light/dark mode support
- Extract human-readable feature titles from spec.md for better task identification
- Improve task description display for specs with compact markdown formatting
### 🐛 Bug Fixes
- Fix asyncio coroutine creation in worker threads to properly support async operations
- Improve UX for phase configuration in task creation workflow
- Address CodeRabbit PR #69 feedback and additional review comments
- Fix auto-close behavior for task modal when marking tasks as done
- Resolve Python lint errors and import sorting issues (ruff I001 compliance)
- Ensure planner agent properly writes implementation_plan.json
- Add platform detection for terminal profile commands on Windows
- Set default selected agent profile to 'auto' across all users
- Fix display of correct merge target branch in worktree UI
- Add validation for invalid colorTheme fallback to prevent UI errors
- Remove outdated Sun/Moon toggle button from sidebar
---
## What's Changed
- feat: add customizable phase configuration in app settings by @AndyMik90 in aee0ba4
- feat: implement parallel AI merge functionality by @AndyMik90 in 458d4bb
- feat(graphiti): add Google AI as LLM and embedding provider by @adryserage in fe69106
- fix: create coroutine inside worker thread for asyncio.run by @AndyMik90 in f89e4e6
- fix: improve UX for phase configuration in task creation by @AndyMik90 in b9797cb
- fix: address CodeRabbit PR #69 feedback by @AndyMik90 in cc38a06
- fix: sort imports in workspace.py to pass ruff I001 check by @AndyMik90 in 9981ee4
- fix(ui): auto-close task modal when marking task as done by @AndyMik90 in 297d380
- fix: resolve Python lint errors in workspace.py by @AndyMik90 in 0506256
- refactor: move Agent Profiles from dashboard to Settings by @AndyMik90 in 1094990
- fix(planning): ensure planner agent writes implementation_plan.json by @AndyMik90 in 9ab5a4f
- fix(windows): add platform detection for terminal profile commands by @AndyMik90 in f0a6a0a
- fix: default agent profile to 'Auto (Optimized)' for all users by @AndyMik90 in 08aa2ff
- fix: update default selected agent profile to 'auto' by @AndyMik90 in 37ace0a
- style: enhance WorkspaceStatus component UI by @AndyMik90 in 3092155
- fix: display correct merge target branch in worktree UI by @AndyMik90 in 2b96160
- Improvement/refactor task sidebar to task modal by @AndyMik90 in 2a96f85
- fix: extract human-readable title from spec.md when feature field is spec ID by @AndyMik90 in 8b59375
- fix: task descriptions not showing for specs with compact markdown by @AndyMik90 in 7f12ef0
- Add comprehensive theme system with Forest, Neo, Retro, Dusk, Ocean, and Lime color schemes by @AndyMik90 in ba776a3, e2b24e2, 7589046, e248256, 76c1bd7, bcbced2
- Add ColorTheme type and configuration to app settings by @AndyMik90 in 2ca89ce, c505d6e, a75c0a9
- Implement device code authentication flow with timeout handling and fallback URL display by @AndyMik90 in 5f26d39, 81e1536, 1a7cf40, 4a4ad6b, 6a4c1b4, b75a09c, e134c4c
- fix(graphiti): address CodeRabbit review comments by @adryserage in 679b8cd
- fix(lint): sort imports in Google provider files by @adryserage in 1a38a06
## 2.6.0 - Multi-Provider Graphiti Support & Platform Fixes
### ✨ New Features
- **Google AI Provider for Graphiti**: Full Google AI (Gemini) support for both LLM and embeddings in the Memory Layer
- Add GoogleLLMClient with gemini-2.0-flash default model
- Add GoogleEmbedder with text-embedding-004 default model
- UI integration for Google API key configuration with link to Google AI Studio
- **Ollama LLM Provider in UI**: Add Ollama as an LLM provider option in Graphiti onboarding wizard
- Ollama runs locally and doesn't require an API key
- Configure Base URL instead of API key for local inference
- **LLM Provider Selection UI**: Add provider selection dropdown to Graphiti setup wizard for flexible backend configuration
- **Per-Project GitHub Configuration**: UI clarity improvements for per-project GitHub org/repo settings
### 🛠️ Improvements
- Enhanced Graphiti provider factory to support Google AI alongside existing providers
- Updated env-handlers to properly populate graphitiProviderConfig from .env files
- Improved type definitions with proper Graphiti provider config properties in AppSettings
- Better API key loading when switching between providers in settings
### 🐛 Bug Fixes
- **node-pty Migration**: Replaced node-pty with @lydell/node-pty for prebuilt Windows binaries
- Updated all imports to use @lydell/node-pty directly
- Fixed "Cannot find module 'node-pty'" startup error
- **GitHub Organization Support**: Fixed repository support for GitHub organization accounts
- Add defensive array validation for GitHub issues API response
- **Asyncio Deprecation**: Fixed asyncio deprecation warning by using get_running_loop() instead of get_event_loop()
- Applied ruff formatting and fixed import sorting (I001) in Google provider files
### 🔧 Other Changes
- Added google-generativeai dependency to requirements.txt
- Updated provider validation to include Google/Groq/HuggingFace type assertions
---
## What's Changed
- fix(graphiti): address CodeRabbit review comments by @adryserage in 679b8cd
- fix(lint): sort imports in Google provider files by @adryserage in 1a38a06
- feat(graphiti): add Google AI as LLM and embedding provider by @adryserage in fe69106
- fix: GitHub organization repository support by @mojaray2k in 873cafa
- feat(ui): add LLM provider selection to Graphiti onboarding by @adryserage in 4750869
- fix(types): add missing AppSettings properties for Graphiti providers by @adryserage in 6680ed4
- feat(ui): add Ollama as LLM provider option for Graphiti by @adryserage in a3eee92
- fix(ui): address PR review feedback for Graphiti provider selection by @adryserage in b8a419a
- fix(deps): update imports to use @lydell/node-pty directly by @adryserage in 2b61ebb
- fix(deps): replace node-pty with @lydell/node-pty for prebuilt binaries by @adryserage in e1aee6a
- fix: add UI clarity for per-project GitHub configuration by @mojaray2k in c9745b6
- fix: add defensive array validation for GitHub issues API response by @mojaray2k in b3636a5
---
## 2.5.5 - Enhanced Agent Reliability & Build Workflow
### ✨ New Features
- Required GitHub setup flow after Auto Claude initialization to ensure proper configuration
- Atomic log saving mechanism to prevent log file corruption during concurrent operations
- Per-session model and thinking level selection in insights management
- Multi-auth token support and ANTHROPIC_BASE_URL passthrough for flexible authentication
- Comprehensive DEBUG logging at Claude SDK invocation points for improved troubleshooting
- Auto-download of prebuilt node-pty binaries for Windows environments
- Enhanced merge workflow with current branch detection for accurate change previews
- Phase configuration module and enhanced agent profiles for improved flexibility
- Stage-only merge handling with comprehensive verification checks
- Authentication failure detection system with patterns and validation checks across agent pipeline
### 🛠️ Improvements
- Changed default agent profile from 'balanced' to 'auto' for more adaptive behavior
- Better GitHub issue tracking and improved user experience in issue management
- Improved merge preview accuracy using git diff counts for file statistics
- Preserved roadmap generation state when switching between projects
- Enhanced agent profiles with phase configuration support
### 🐛 Bug Fixes
- Resolved CI test failures and improved merge preview reliability
- Fixed CI failures related to linting, formatting, and tests
- Prevented dialog skip during project initialization flow
- Updated model IDs for Sonnet and Haiku to match current Claude versions
- Fixed branch namespace conflict detection to prevent worktree creation failures
- Removed duplicate LINEAR_API_KEY checks and consolidated imports
- Python 3.10+ version requirement enforced with proper version checking
- Prevented command injection vulnerabilities in GitHub API calls
### 🔧 Other Changes
- Code cleanup and test fixture updates
- Removed redundant auto-claude/specs directory structure
- Untracked .auto-claude directory to respect gitignore rules
---
## What's Changed
- fix: resolve CI test failures and improve merge preview by @AndyMik90 in de2eccd
- chore: code cleanup and test fixture updates by @AndyMik90 in 948db57
- refactor: change default agent profile from 'balanced' to 'auto' by @AndyMik90 in f98a13e
- security: prevent command injection in GitHub API calls by @AndyMik90 in 24ff491
- fix: resolve CI failures (lint, format, test) by @AndyMik90 in a8f2d0b
- fix: use git diff count for totalFiles in merge preview by @AndyMik90 in 46d2536
- feat: enhance stage-only merge handling with verification checks by @AndyMik90 in 7153558
- feat: introduce phase configuration module and enhance agent profiles by @AndyMik90 in 2672528
- fix: preserve roadmap generation state when switching projects by @AndyMik90 in 569e921
- feat: add required GitHub setup flow after Auto Claude initialization by @AndyMik90 in 03ccce5
- chore: remove redundant auto-claude/specs directory by @AndyMik90 in 64d5170
- chore: untrack .auto-claude directory (should be gitignored) by @AndyMik90 in 0710c13
- fix: prevent dialog skip during project initialization by @AndyMik90 in 56cedec
- feat: enhance merge workflow by detecting current branch by @AndyMik90 in c0c8067
- fix: update model IDs for Sonnet and Haiku by @AndyMik90 in 059315d
- feat: add comprehensive DEBUG logging and fix lint errors by @AndyMik90 in 99cf21e
- feat: implement atomic log saving to prevent corruption by @AndyMik90 in da5e26b
- feat: add better github issue tracking and UX by @AndyMik90 in c957eaa
- feat: add comprehensive DEBUG logging to Claude SDK invocation points by @AndyMik90 in 73d01c0
- feat: auto-download prebuilt node-pty binaries for Windows by @AndyMik90 in 41a507f
- feat(insights): add per-session model and thinking level selection by @AndyMik90 in e02aa59
- fix: require Python 3.10+ and add version check by @AndyMik90 in 9a5ca8c
- fix: detect branch namespace conflict blocking worktree creation by @AndyMik90 in 63a1d3c
- fix: remove duplicate LINEAR_API_KEY check and consolidate imports by @Jacob in 7d351e3
- feat: add multi-auth token support and ANTHROPIC_BASE_URL passthrough by @Jacob in 9dea155
## 2.5.0 - Roadmap Intelligence & Workflow Refinements
### ✨ New Features
- Interactive competitor analysis viewer for roadmap planning with real-time data visualization
- GitHub issue label mapping to task categories for improved organization and tracking
- GitHub issue comment selection in task creation workflow for better context integration
- TaskCreationWizard enhanced with drag-and-drop support for file references and inline @mentions
- Roadmap generation now includes stop functionality and comprehensive debug logging
### 🛠️ Improvements
- Refined visual drop zone feedback in file reference system for more subtle user guidance
- Remove auto-expand behavior for referenced files on draft restore to improve UX
- Always-visible referenced files section in TaskCreationWizard for better discoverability
- Drop zone wrapper added around main modal content area for improved drag-and-drop ergonomics
- Stuck task detection now enabled for ai_review status to better track blocked work
- Enhanced React component stability with proper key usage in RoadmapHeader and PhaseProgressIndicator
### 🐛 Bug Fixes
- Corrected CompetitorAnalysisViewer type definitions for proper TypeScript compliance
- Fixed multiple CodeRabbit review feedback items for improved code quality
- Resolved React key warnings in PhaseProgressIndicator component
- Fixed git status parsing in merge preview for accurate worktree state detection
- Corrected path resolution in runners for proper module imports and .env loading
- Resolved CI lint and TypeScript errors across codebase
- Fixed HTTP error handling and path resolution issues in core modules
- Corrected worktree test to match intended branch detection behavior
- Refined TaskReview component conditional rendering for proper staged task display
---
## What's Changed
- feat: add interactive competitor analysis viewer for roadmap by @AndyMik90 in 7ff326d
- fix: correct CompetitorAnalysisViewer to match type definitions by @AndyMik90 in 4f1766b
- fix: address multiple CodeRabbit review feedback items by @AndyMik90 in 48f7c3c
- fix: use stable React keys instead of array indices in RoadmapHeader by @AndyMik90 in 892e01d
- fix: additional fixes for http error handling and path resolution by @AndyMik90 in 54501cb
- fix: update worktree test to match intended branch detection behavior by @AndyMik90 in f1d578f
- fix: resolve CI lint and TypeScript errors by @AndyMik90 in 2e3a5d9
- feat: enhance roadmap generation with stop functionality and debug logging by @AndyMik90 in a6dad42
- fix: correct path resolution in runners for module imports and .env loading by @AndyMik90 in 3d24f8f
- fix: resolve React key warning in PhaseProgressIndicator by @AndyMik90 in 9106038
- fix: enable stuck task detection for ai_review status by @AndyMik90 in 895ed9f
- feat: map GitHub issue labels to task categories by @AndyMik90 in cbe14fd
- feat: add GitHub issue comment selection and fix auto-start bug by @AndyMik90 in 4c1dd89
- feat: enhance TaskCreationWizard with drag-and-drop support for file references and inline @mentions by @AndyMik90 in d93eefe
- cleanup docs by @AndyMik90 in 8e891df
- fix: correct git status parsing in merge preview by @AndyMik90 in c721dc2
- Update TaskReview component to refine conditional rendering for staged tasks, ensuring proper display when staging is unsuccessful by @AndyMik90 in 1a2b7a1
- auto-claude: subtask-2-3 - Refine visual drop zone feedback to be more subtle by @AndyMik90 in 6cff442
- auto-claude: subtask-2-1 - Remove showFiles auto-expand on draft restore by @AndyMik90 in 12bf69d
- auto-claude: subtask-1-3 - Create an always-visible referenced files section by @AndyMik90 in 3818b46
- auto-claude: subtask-1-2 - Add drop zone wrapper around main modal content area by @AndyMik90 in 219b66d
- auto-claude: subtask-1-1 - Remove Reference Files toggle button by @AndyMik90 in 4e63e85
## 2.4.0 - Enhanced Cross-Platform Experience with OAuth & Auto-Updates
### ✨ New Features
- Claude account OAuth implementation on onboarding for seamless token setup
- Integrated release workflow with AI-powered version suggestion capabilities
- Auto-upgrading functionality supporting Windows, Linux, and macOS with automatic app updates
- Git repository initialization on app startup with project addition checks
- Debug logging for app updater to track update processes
- Auto-open settings to updates section when app update is ready
### 🛠️ Improvements
- Major Windows and Linux compatibility enhancements for cross-platform reliability
- Enhanced task status handling to support 'done' status in limbo state with worktree existence checks
- Better handling of lock files from worktrees upon merging
- Improved README documentation and build process
- Refined visual drop zone feedback for more subtle user experience
- Removed showFiles auto-expand on draft restore for better UX consistency
- Created always-visible referenced files section in task creation wizard
- Removed Reference Files toggle button for streamlined interface
- Worktree manual deletion enforcement for early access safety (prevents accidental work loss)
### 🐛 Bug Fixes
- Corrected git status parsing in merge preview functionality
- Fixed ESLint warnings and failing tests
- Fixed Windows/Linux Python handling for cross-platform compatibility
- Fixed Windows/Linux source path detection
- Refined TaskReview component conditional rendering for proper staged task display
---
## What's Changed
- docs: cleanup docs by @AndyMik90 in 8e891df
- fix: correct git status parsing in merge preview by @AndyMik90 in c721dc2
- refactor: Update TaskReview component to refine conditional rendering for staged tasks by @AndyMik90 in 1a2b7a1
- feat: Enhance task status handling to allow 'done' status in limbo state by @AndyMik90 in a20b8cf
- improvement: Worktree needs to be manually deleted for early access safety by @AndyMik90 in 0ed6afb
- feat: Claude account OAuth implementation on onboarding by @AndyMik90 in 914a09d
- fix: Better handling of lock files from worktrees upon merging by @AndyMik90 in e44202a
- feat: GitHub OAuth integration upon onboarding by @AndyMik90 in 4249644
- chore: lock update by @AndyMik90 in b0fc497
- improvement: Improved README and build process by @AndyMik90 in 462edcd
- fix: ESLint warnings and failing tests by @AndyMik90 in affbc48
- feat: Major Windows and Linux compatibility enhancements with auto-upgrade by @AndyMik90 in d7fd1a2
- feat: Add debug logging to app updater by @AndyMik90 in 96dd04d
- feat: Auto-open settings to updates section when app update is ready by @AndyMik90 in 1d0566f
- feat: Add integrated release workflow with AI version suggestion by @AndyMik90 in 7f3cd59
- fix: Windows/Linux Python handling by @AndyMik90 in 0ef0e15
- feat: Implement Electron app auto-updater by @AndyMik90 in efc112a
- fix: Windows/Linux source path detection by @AndyMik90 in d33a0aa
- refactor: Refine visual drop zone feedback to be more subtle by @AndyMik90 in 6cff442
- refactor: Remove showFiles auto-expand on draft restore by @AndyMik90 in 12bf69d
- feat: Create always-visible referenced files section by @AndyMik90 in 3818b46
- feat: Add drop zone wrapper around main modal content by @AndyMik90 in 219b66d
- feat: Remove Reference Files toggle button by @AndyMik90 in 4e63e85
- docs: Update README with git initialization and folder structure by @AndyMik90 in 2fa3c51
- chore: Version bump to 2.3.2 by @AndyMik90 in 59b091a
## 2.3.2 - UI Polish & Build Improvements
### 🛠️ Improvements
- Restructured SortableFeatureCard badge layout for improved visual presentation
Bug Fixes:
- Fixed spec runner path configuration for more reliable task execution
---
## What's Changed
- fix: fix to spec runner paths by @AndyMik90 in 9babdc2
- feat: auto-claude: subtask-1-1 - Restructure SortableFeatureCard badge layout by @AndyMik90 in dc886dc
## 2.3.1 - Linux Compatibility Fix
### 🐛 Bug Fixes
- Resolved path handling issues on Linux systems for improved cross-platform compatibility
---
## What's Changed
- fix: Fix to linux path issue by @AndyMik90 in 3276034
## 2.2.0 - 2025-12-17
### ✨ New Features
- Add usage monitoring with profile swap detection to prevent cascading resource issues
- Option to stash changes before merge operations for safer branch integration
- Add hideCloseButton prop to DialogContent component for improved UI flexibility
### 🛠️ Improvements
- Enhance AgentManager to manage task context cleanup and preserve swapCount on restarts
- Improve changelog feature with version tracking, markdown/preview, and persistent styling options
- Refactor merge conflict handling to use branch names instead of commit hashes for better clarity
- Streamline usage monitoring logic by removing unnecessary dynamic imports
- Better handling of lock files during merge conflicts
- Refactor code for improved readability and maintainability
- Refactor IdeationHeader and update handleDeleteSelected logic
### 🐛 Bug Fixes
- Fix worktree merge logic to correctly handle branch operations
- Fix spec_runner.py path resolution after move to runners/ directory
- Fix Discord release webhook failing on large changelogs
- Fix branch logic for merge AI operations
- Hotfix for spec-runner path location
---
## What's Changed
- fix: hotfix/spec-runner path location by @AndyMik90 in f201f7e
- refactor: Remove unnecessary dynamic imports of getUsageMonitor in terminal-handlers.ts to streamline usage monitoring logic by @AndyMik90 in 0da4bc4
- feat: Improve changelog feature, version tracking, markdown/preview, persistent styling options by @AndyMik90 in a0d142b
- refactor: Refactor code for improved readability and maintainability by @AndyMik90 in 473b045
- feat: Enhance AgentManager to manage task context cleanup and preserve swapCount on restarts. Update UsageMonitor to delay profile usage checks to prevent cascading swaps by @AndyMik90 in e5b9488
- feat: Usage-monitoring by @AndyMik90 in de33b2c
- feat: option to stash changes before merge by @AndyMik90 in 7e09739
- refactor: Refactor merge conflict check to use branch names instead of commit hashes by @AndyMik90 in e6d6cea
- fix: worktree merge logic by @AndyMik90 in dfb5cf9
- test: Sign off - all verification passed by @AndyMik90 in 34631c3
- feat: Pass hideCloseButton={showFileExplorer} to DialogContent by @AndyMik90 in 7c327ed
- feat: Add hideCloseButton prop to DialogContent component by @AndyMik90 in 5f9653a
- fix: branch logic for merge AI by @AndyMik90 in 2d2a813
- fix: spec_runner.py path resolution after move to runners/ directory by @AndyMik90 in ce9c2cd
- refactor: Better handling of lock files during merge conflicts by @AndyMik90 in 460c76d
- fix: Discord release webhook failing on large changelogs by @AndyMik90 in 4eb66f5
- chore: Update CHANGELOG with new features, improvements, bug fixes, and other changes by @AndyMik90 in 788b8d0
- refactor: Enhance merge conflict handling by excluding lock files by @AndyMik90 in 957746e
- refactor: Refactor IdeationHeader and update handleDeleteSelected logic by @AndyMik90 in 36338f3
## What's New
### ✨ New Features
@@ -198,4 +924,4 @@
- **Draft Auto-Save**: Task creation state is now automatically saved when you navigate away, preventing accidental loss of work-in-progress.
### Bug Fixes
- Fixed task editing to support the same comprehensive options available in new task creation
- Fixed task editing to support the same comprehensive options available in new task creation
+90 -43
View File
@@ -9,78 +9,118 @@ Auto Claude is a multi-agent autonomous coding framework that builds software th
## Commands
### Setup
**Requirements:**
- Python 3.12+ (required for backend)
- Node.js (for frontend)
```bash
# Install dependencies (from auto-claude/)
uv venv && uv pip install -r requirements.txt
# Or: python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
# Install all dependencies from root
npm run install:all
# Or install separately:
# Backend (from apps/backend/)
cd apps/backend && uv venv && uv pip install -r requirements.txt
# Frontend (from apps/frontend/)
cd apps/frontend && npm install
# Set up OAuth token
claude setup-token
# Add to auto-claude/.env: CLAUDE_CODE_OAUTH_TOKEN=your-token
# Add to apps/backend/.env: CLAUDE_CODE_OAUTH_TOKEN=your-token
```
### Creating and Running Specs
```bash
cd apps/backend
# Create a spec interactively
python auto-claude/spec_runner.py --interactive
python spec_runner.py --interactive
# Create spec from task description
python auto-claude/spec_runner.py --task "Add user authentication"
python spec_runner.py --task "Add user authentication"
# Force complexity level (simple/standard/complex)
python auto-claude/spec_runner.py --task "Fix button" --complexity simple
python spec_runner.py --task "Fix button" --complexity simple
# Run autonomous build
python auto-claude/run.py --spec 001
python run.py --spec 001
# List all specs
python auto-claude/run.py --list
python run.py --list
```
### Workspace Management
```bash
cd apps/backend
# Review changes in isolated worktree
python auto-claude/run.py --spec 001 --review
python run.py --spec 001 --review
# Merge completed build into project
python auto-claude/run.py --spec 001 --merge
python run.py --spec 001 --merge
# Discard build
python auto-claude/run.py --spec 001 --discard
python run.py --spec 001 --discard
```
### QA Validation
```bash
cd apps/backend
# Run QA manually
python auto-claude/run.py --spec 001 --qa
python run.py --spec 001 --qa
# Check QA status
python auto-claude/run.py --spec 001 --qa-status
python run.py --spec 001 --qa-status
```
### Testing
```bash
# Install test dependencies (required first time)
cd auto-claude && uv pip install -r ../tests/requirements-test.txt
cd apps/backend && uv pip install -r ../../tests/requirements-test.txt
# Run all tests (use virtual environment pytest)
auto-claude/.venv/bin/pytest tests/ -v
apps/backend/.venv/bin/pytest tests/ -v
# Run single test file
auto-claude/.venv/bin/pytest tests/test_security.py -v
apps/backend/.venv/bin/pytest tests/test_security.py -v
# Run specific test
auto-claude/.venv/bin/pytest tests/test_security.py::test_bash_command_validation -v
apps/backend/.venv/bin/pytest tests/test_security.py::test_bash_command_validation -v
# Skip slow tests
auto-claude/.venv/bin/pytest tests/ -m "not slow"
apps/backend/.venv/bin/pytest tests/ -m "not slow"
# Or from root
npm run test:backend
```
### Spec Validation
```bash
python auto-claude/validate_spec.py --spec-dir auto-claude/specs/001-feature --checkpoint all
python apps/backend/validate_spec.py --spec-dir apps/backend/specs/001-feature --checkpoint all
```
### Releases
```bash
# 1. Bump version on your branch (creates commit, no tag)
node scripts/bump-version.js patch # 2.8.0 -> 2.8.1
node scripts/bump-version.js minor # 2.8.0 -> 2.9.0
node scripts/bump-version.js major # 2.8.0 -> 3.0.0
# 2. Push and create PR to main
git push origin your-branch
gh pr create --base main
# 3. Merge PR → GitHub Actions automatically:
# - Creates tag
# - Builds all platforms
# - Creates release with changelog
# - Updates README
```
See [RELEASE.md](RELEASE.md) for detailed release process documentation.
## Architecture
### Core Pipeline
@@ -96,18 +136,18 @@ python auto-claude/validate_spec.py --spec-dir auto-claude/specs/001-feature --c
3. QA Reviewer validates acceptance criteria
4. QA Fixer resolves issues in a loop
### Key Components
### Key Components (apps/backend/)
- **client.py** - Claude SDK client with security hooks and tool permissions
- **security.py** + **project_analyzer.py** - Dynamic command allowlisting based on detected project stack
- **worktree.py** - Git worktree isolation for safe feature development
- **memory.py** - File-based session memory (primary, always-available storage)
- **graphiti_memory.py** - Optional graph-based cross-session memory with semantic search
- **graphiti_providers.py** - Multi-provider factory for Graphiti (OpenAI, Anthropic, Azure, Ollama)
- **graphiti_memory.py** - Graph-based cross-session memory with semantic search
- **graphiti_providers.py** - Multi-provider factory for Graphiti (OpenAI, Anthropic, Azure, Ollama, Google AI)
- **graphiti_config.py** - Configuration and validation for Graphiti integration
- **linear_updater.py** - Optional Linear integration for progress tracking
### Agent Prompts (auto-claude/prompts/)
### Agent Prompts (apps/backend/prompts/)
| Prompt | Purpose |
|--------|---------|
@@ -124,7 +164,7 @@ python auto-claude/validate_spec.py --spec-dir auto-claude/specs/001-feature --c
### Spec Directory Structure
Each spec in `auto-claude/specs/XXX-name/` contains:
Each spec in `.auto-claude/specs/XXX-name/` contains:
- `spec.md` - Feature specification
- `requirements.json` - Structured user requirements
- `context.json` - Discovered codebase context
@@ -173,29 +213,36 @@ Dual-layer memory architecture:
- Human-readable files in `specs/XXX/memory/`
- Session insights, patterns, gotchas, codebase map
**Graphiti Memory (Optional Enhancement)** - `graphiti_memory.py`
- Graph database with semantic search (FalkorDB)
**Graphiti Memory** - `graphiti_memory.py`
- Graph database with semantic search (LadybugDB - embedded, no Docker)
- Cross-session context retrieval
- Multi-provider support (V2):
- LLM: OpenAI, Anthropic, Azure OpenAI, Ollama
- Embedders: OpenAI, Voyage AI, Azure OpenAI, Ollama
Enable with: `GRAPHITI_ENABLED=true` + provider credentials. See `.env.example`.
- Multi-provider support:
- LLM: OpenAI, Anthropic, Azure OpenAI, Ollama, Google AI (Gemini)
- Embedders: OpenAI, Voyage AI, Azure OpenAI, Ollama, Google AI
- Configure with provider credentials in `.env.example`
## Project Structure
Auto Claude can be used in two ways:
**As a standalone CLI tool** (original project):
```bash
python auto-claude/run.py --spec 001
```
auto-claude/
├── apps/
│ ├── backend/ # Python backend/CLI (the framework code)
│ └── frontend/ # Electron desktop UI
├── guides/ # Documentation
├── tests/ # Test suite
└── scripts/ # Build and utility scripts
```
**With the optional Electron frontend** (`auto-claude-ui/`):
- Provides a GUI for task management and progress tracking
- Wraps the CLI commands - the backend works independently
**As a standalone CLI tool**:
```bash
cd apps/backend
python run.py --spec 001
```
**With the Electron frontend**:
```bash
npm start # Build and run desktop app
npm run dev # Run in development mode
```
**Directory layout:**
- `auto-claude/` - Python backend/CLI (the framework code)
- `auto-claude-ui/` - Optional Electron frontend
- `.auto-claude/specs/` - Per-project data (specs, plans, QA reports) - gitignored
+331 -53
View File
@@ -5,15 +5,23 @@ Thank you for your interest in contributing to Auto Claude! This document provid
## Table of Contents
- [Prerequisites](#prerequisites)
- [Quick Start](#quick-start)
- [Development Setup](#development-setup)
- [Python Backend](#python-backend)
- [Electron Frontend](#electron-frontend)
- [Running from Source](#running-from-source)
- [Pre-commit Hooks](#pre-commit-hooks)
- [Code Style](#code-style)
- [Testing](#testing)
- [Continuous Integration](#continuous-integration)
- [Git Workflow](#git-workflow)
- [Branch Overview](#branch-overview)
- [Main Branches](#main-branches)
- [Supporting Branches](#supporting-branches)
- [Branch Naming](#branch-naming)
- [Where to Branch From](#where-to-branch-from)
- [Pull Request Targets](#pull-request-targets)
- [Release Process](#release-process-maintainers)
- [Commit Messages](#commit-messages)
- [Pull Request Process](#pull-request-process)
- [Issue Reporting](#issue-reporting)
@@ -23,38 +31,77 @@ Thank you for your interest in contributing to Auto Claude! This document provid
Before contributing, ensure you have the following installed:
- **Python 3.8+** - For the backend framework
- **Node.js 18+** - For the Electron frontend
- **pnpm** - Package manager for the frontend (`npm install -g pnpm`)
- **Python 3.12+** - For the backend framework
- **Node.js 24+** - For the Electron frontend
- **npm 10+** - Package manager for the frontend (comes with Node.js)
- **uv** (recommended) or **pip** - Python package manager
- **Git** - Version control
- **Docker** (optional) - For running FalkorDB if using Graphiti memory
### Installing Python 3.12
**Windows:**
```bash
winget install Python.Python.3.12
```
**macOS:**
```bash
brew install python@3.12
```
**Linux (Ubuntu/Debian):**
```bash
sudo apt install python3.12 python3.12-venv
```
## Quick Start
The fastest way to get started:
```bash
# Clone the repository
git clone https://github.com/AndyMik90/Auto-Claude.git
cd Auto-Claude
# Install all dependencies (cross-platform)
npm run install:all
# Run in development mode
npm run dev
# Or build and run production
npm start
```
## Development Setup
The project consists of two main components:
1. **Python Backend** (`auto-claude/`) - The core autonomous coding framework
2. **Electron Frontend** (`auto-claude-ui/`) - Optional desktop UI
1. **Python Backend** (`apps/backend/`) - The core autonomous coding framework
2. **Electron Frontend** (`apps/frontend/`) - Optional desktop UI
### Python Backend
The recommended way is to use `npm run install:backend`, but you can also set up manually:
```bash
# Navigate to the auto-claude directory
cd auto-claude
# Navigate to the backend directory
cd apps/backend
# Create virtual environment (using uv - recommended)
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -r requirements.txt
# Create virtual environment
# Windows:
py -3.12 -m venv .venv
.venv\Scripts\activate
# Or using standard Python
python3 -m venv .venv
# macOS/Linux:
python3.12 -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Install test dependencies
pip install -r ../tests/requirements-test.txt
pip install -r ../../tests/requirements-test.txt
# Set up environment
cp .env.example .env
@@ -64,22 +111,75 @@ cp .env.example .env
### Electron Frontend
```bash
# Navigate to the UI directory
cd auto-claude-ui
# Navigate to the frontend directory
cd apps/frontend
# Install dependencies
pnpm install
npm install
# Start development server
pnpm dev
npm run dev
# Build for production
pnpm build
npm run build
# Package for distribution
pnpm package
npm run package
```
## Running from Source
If you want to run Auto Claude from source (for development or testing unreleased features), follow these steps:
### Step 1: Clone and Set Up
```bash
git clone https://github.com/AndyMik90/Auto-Claude.git
cd Auto-Claude/apps/backend
# Using uv (recommended)
uv venv && uv pip install -r requirements.txt
# Or using standard Python
python3 -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
# Set up environment
cd apps/backend
cp .env.example .env
# Edit .env and add your CLAUDE_CODE_OAUTH_TOKEN (get it via: claude setup-token)
```
### Step 2: Run the Desktop UI
```bash
cd ../frontend
# Install dependencies
npm install
# Development mode (hot reload)
npm run dev
# Or production build
npm run build && npm run start
```
<details>
<summary><b>Windows users:</b> If installation fails with node-gyp errors, click here</summary>
Auto Claude automatically downloads prebuilt binaries for Windows. If prebuilts aren't available for your Electron version yet, you'll need Visual Studio Build Tools:
1. Download [Visual Studio Build Tools 2022](https://visualstudio.microsoft.com/visual-cpp-build-tools/)
2. Select "Desktop development with C++" workload
3. In "Individual Components", add "MSVC v143 - VS 2022 C++ x64/x86 Spectre-mitigated libs"
4. Restart terminal and run `npm install` again
</details>
> **Note:** For regular usage, we recommend downloading the pre-built releases from [GitHub Releases](https://github.com/AndyMik90/Auto-Claude/releases). Running from source is primarily for contributors and those testing unreleased features.
## Pre-commit Hooks
We use [pre-commit](https://pre-commit.com/) to run linting and formatting checks before each commit. This ensures code quality and consistency across the project.
@@ -100,10 +200,10 @@ When you commit, the following checks run automatically:
| Check | Scope | Description |
|-------|-------|-------------|
| **ruff** | `auto-claude/` | Python linter with auto-fix |
| **ruff-format** | `auto-claude/` | Python code formatter |
| **eslint** | `auto-claude-ui/` | TypeScript/React linter |
| **typecheck** | `auto-claude-ui/` | TypeScript type checking |
| **ruff** | `apps/backend/` | Python linter with auto-fix |
| **ruff-format** | `apps/backend/` | Python code formatter |
| **eslint** | `apps/frontend/` | TypeScript/React linter |
| **typecheck** | `apps/frontend/` | TypeScript type checking |
| **trailing-whitespace** | All files | Removes trailing whitespace |
| **end-of-file-fixer** | All files | Ensures files end with newline |
| **check-yaml** | All files | Validates YAML syntax |
@@ -160,7 +260,7 @@ def gnc(sd):
### TypeScript/React
- Use TypeScript strict mode
- Follow the existing component patterns in `auto-claude-ui/src/`
- Follow the existing component patterns in `apps/frontend/src/`
- Use functional components with hooks
- Prefer named exports over default exports
- Use the UI components from `src/renderer/components/ui/`
@@ -190,20 +290,25 @@ export default function(props) {
### Python Tests
```bash
# Run all tests
pytest tests/ -v
# Run all tests (from repository root)
npm run test:backend
# Or manually with pytest
cd apps/backend
.venv/Scripts/pytest.exe ../tests -v # Windows
.venv/bin/pytest ../tests -v # macOS/Linux
# Run a specific test file
pytest tests/test_security.py -v
npm run test:backend -- tests/test_security.py -v
# Run a specific test
pytest tests/test_security.py::test_bash_command_validation -v
npm run test:backend -- tests/test_security.py::test_bash_command_validation -v
# Skip slow tests
pytest tests/ -m "not slow"
npm run test:backend -- -m "not slow"
# Run with coverage
pytest tests/ --cov=auto-claude --cov-report=html
pytest tests/ --cov=apps/backend --cov-report=html
```
Test configuration is in `tests/pytest.ini`.
@@ -211,26 +316,26 @@ Test configuration is in `tests/pytest.ini`.
### Frontend Tests
```bash
cd auto-claude-ui
cd apps/frontend
# Run unit tests
pnpm test
npm test
# Run tests in watch mode
pnpm test:watch
npm run test:watch
# Run with coverage
pnpm test:coverage
npm run test:coverage
# Run E2E tests (requires built app)
pnpm build
pnpm test:e2e
npm run build
npm run test:e2e
# Run linting
pnpm lint
npm run lint
# Run type checking
pnpm typecheck
npm run typecheck
```
### Testing Requirements
@@ -268,19 +373,50 @@ Before a PR can be merged:
```bash
# Python tests
cd auto-claude
cd apps/backend
source .venv/bin/activate
pytest ../tests/ -v
pytest ../../tests/ -v
# Frontend tests
cd auto-claude-ui
pnpm test
pnpm lint
pnpm typecheck
cd apps/frontend
npm test
npm run lint
npm run typecheck
```
## Git Workflow
We use a **Git Flow** branching strategy to manage releases and parallel development.
### Branch Overview
```
main (stable) ← Only released, tested code (tagged versions)
develop ← Integration branch - all PRs merge here first
├── feature/xxx ← New features
├── fix/xxx ← Bug fixes
├── release/vX.Y.Z ← Release preparation
└── hotfix/xxx ← Emergency production fixes
```
### Main Branches
| Branch | Purpose | Protected |
|--------|---------|-----------|
| `main` | Production-ready code. Only receives merges from `release/*` or `hotfix/*` branches. Every merge is tagged (v2.7.0, v2.8.0, etc.) | ✅ Yes |
| `develop` | Integration branch where all features and fixes are combined. This is the default target for all PRs. | ✅ Yes |
### Supporting Branches
| Branch Type | Branch From | Merge To | Purpose |
|-------------|-------------|----------|---------|
| `feature/*` | `develop` | `develop` | New features and enhancements |
| `fix/*` | `develop` | `develop` | Bug fixes (non-critical) |
| `release/*` | `develop` | `main` + `develop` | Release preparation and final testing |
| `hotfix/*` | `main` | `main` + `develop` | Critical production bug fixes |
### Branch Naming
Use descriptive branch names with a prefix indicating the type of change:
@@ -289,10 +425,146 @@ Use descriptive branch names with a prefix indicating the type of change:
|--------|---------|---------|
| `feature/` | New feature | `feature/add-dark-mode` |
| `fix/` | Bug fix | `fix/memory-leak-in-worker` |
| `hotfix/` | Urgent production fix | `hotfix/critical-crash-fix` |
| `docs/` | Documentation | `docs/update-readme` |
| `refactor/` | Code refactoring | `refactor/simplify-auth-flow` |
| `test/` | Test additions/fixes | `test/add-integration-tests` |
| `chore/` | Maintenance tasks | `chore/update-dependencies` |
| `release/` | Release preparation | `release/v2.8.0` |
| `hotfix/` | Emergency fixes | `hotfix/critical-auth-bug` |
### Where to Branch From
```bash
# For features and bug fixes - ALWAYS branch from develop
git checkout develop
git pull origin develop
git checkout -b feature/my-new-feature
# For hotfixes only - branch from main
git checkout main
git pull origin main
git checkout -b hotfix/critical-fix
```
### Pull Request Targets
> ⚠️ **Important:** All PRs should target `develop`, NOT `main`!
| Your Branch Type | Target Branch |
|------------------|---------------|
| `feature/*` | `develop` |
| `fix/*` | `develop` |
| `docs/*` | `develop` |
| `refactor/*` | `develop` |
| `test/*` | `develop` |
| `chore/*` | `develop` |
| `hotfix/*` | `main` (maintainers only) |
| `release/*` | `main` (maintainers only) |
### Release Process (Maintainers)
When ready to release a new version:
```bash
# 1. Create release branch from develop
git checkout develop
git pull origin develop
git checkout -b release/v2.8.0
# 2. Update version numbers, CHANGELOG, final fixes only
# No new features allowed in release branches!
# 3. Merge to main and tag
git checkout main
git merge release/v2.8.0
git tag v2.8.0
git push origin main --tags
# 4. Merge back to develop (important!)
git checkout develop
git merge release/v2.8.0
git push origin develop
# 5. Delete release branch
git branch -d release/v2.8.0
git push origin --delete release/v2.8.0
```
### Beta Release Process (Maintainers)
Beta releases allow users to test new features before they're included in a stable release. Beta releases are published from the `develop` branch.
**Creating a Beta Release:**
1. Go to **Actions****Beta Release** workflow in GitHub
2. Click **Run workflow**
3. Enter the beta version (e.g., `2.8.0-beta.1`)
4. Optionally enable dry run to test without publishing
5. Click **Run workflow**
The workflow will:
- Validate the version format
- Update `package.json` on develop
- Create and push a tag (e.g., `v2.8.0-beta.1`)
- Build installers for all platforms
- Create a GitHub pre-release
**Version Format:**
```
X.Y.Z-beta.N (e.g., 2.8.0-beta.1, 2.8.0-beta.2)
X.Y.Z-alpha.N (e.g., 2.8.0-alpha.1)
X.Y.Z-rc.N (e.g., 2.8.0-rc.1)
```
**For Users:**
Users can opt into beta updates in Settings → Updates → "Beta Updates" toggle. When enabled, the app will check for and install beta versions. Users can switch back to stable at any time.
### Hotfix Workflow
For urgent production fixes that can't wait for the normal release cycle:
**1. Create hotfix from main**
```bash
git checkout main
git pull origin main
git checkout -b hotfix/150-critical-fix
```
**2. Fix the issue**
```bash
# ... make changes ...
git commit -m "hotfix: fix critical crash on startup"
```
**3. Open PR to main (fast-track review)**
```bash
gh pr create --base main --title "hotfix: fix critical crash on startup"
```
**4. After merge to main, sync to develop**
```bash
git checkout develop
git pull origin develop
git merge main
git push origin develop
```
```
main ─────●─────●─────●─────●───── (production)
↑ ↑ ↑ ↑
develop ──●─────●─────●─────●───── (integration)
↑ ↑ ↑
feature/123 ────●
feature/124 ──────────●
hotfix/125 ─────────────────●───── (from main, merge to both)
```
> **Note:** Hotfixes branch FROM `main` and merge TO `main` first, then sync back to `develop` to keep branches aligned.
### Commit Messages
@@ -326,17 +598,23 @@ git commit -m "WIP"
## Pull Request Process
1. **Fork the repository** and create your branch from `main`
1. **Fork the repository** and create your branch from `develop` (not main!)
```bash
git checkout develop
git pull origin develop
git checkout -b feature/your-feature-name
```
2. **Make your changes** following the code style guidelines
3. **Test thoroughly**:
```bash
# Python
pytest tests/ -v
# Python (from repository root)
npm run test:backend
# Frontend
cd auto-claude-ui && pnpm test && pnpm lint && pnpm typecheck
cd apps/frontend && npm test && npm run lint && npm run typecheck
```
4. **Update documentation** if your changes affect:
@@ -395,7 +673,7 @@ When requesting a feature:
Auto Claude consists of two main parts:
### Python Backend (`auto-claude/`)
### Python Backend (`apps/backend/`)
The core autonomous coding framework:
@@ -405,9 +683,9 @@ The core autonomous coding framework:
- **Memory**: `memory.py` (file-based), `graphiti_memory.py` (graph-based)
- **QA**: `qa_loop.py`, `prompts/qa_*.md`
### Electron Frontend (`auto-claude-ui/`)
### Electron Frontend (`apps/frontend/`)
Optional desktop interface:
Desktop interface:
- **Main Process**: `src/main/` - Electron main process, IPC handlers
- **Renderer**: `src/renderer/` - React UI components
+167 -245
View File
@@ -1,300 +1,222 @@
# Auto Claude
Your AI coding companion. Build features, fix bugs, and ship faster — with autonomous agents that plan, code, and validate for you.
**Autonomous multi-agent coding framework that plans, builds, and validates software for you.**
![Auto Claude Kanban Board](.github/assets/Auto-Claude-Kanban.png)
[![Discord](https://img.shields.io/badge/Discord-Join%20Community-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/maj9EWmY)
## What It Does ✨
**Auto Claude is a desktop app that supercharges your AI coding workflow.** Whether you're a vibe coder just getting started or an experienced developer, Auto Claude meets you where you are.
- **Autonomous Tasks** — Describe what you want to build, and agents handle planning, coding, and validation while you focus on other work
- **Agent Terminals** — Run Claude Code in up to 12 terminals with a clean layout, smart naming based on context, and one-click task context injection
- **Safe by Default** — All work happens in git worktrees, keeping your main branch undisturbed until you're ready to merge
- **Self-Validating** — Built-in QA agents check their own work before you review
**The result?** 10x your output while maintaining code quality.
## Key Features
- **Parallel Agents**: Run multiple builds simultaneously while you focus on other work
- **Context Engineering**: Agents understand your codebase structure before writing code
- **Self-Validating**: Built-in QA loop catches issues before you review
- **Isolated Workspaces**: All work happens in git worktrees — your code stays safe
- **AI Merge Resolution**: Intelligent conflict resolution when merging back to main — no manual conflict fixing
- **Memory Layer**: Agents remember insights across sessions for smarter decisions
- **Cross-Platform**: Desktop app runs on Mac, Windows, and Linux
- **Any Project Type**: Build web apps, APIs, CLIs — works with any software project
## 🚀 Quick Start (Desktop UI)
The Desktop UI is the recommended way to use Auto Claude. It provides visual task management, real-time progress tracking, and a Kanban board interface.
### Prerequisites
1. **Node.js 18+** - [Download Node.js](https://nodejs.org/)
2. **Python 3.9+** - [Download Python](https://www.python.org/downloads/)
3. **Docker Desktop** - Required for the Memory Layer
4. **Claude Code CLI** - `npm install -g @anthropic-ai/claude-code`
5. **Claude Subscription** - Requires [Claude Pro or Max](https://claude.ai/upgrade) for Claude Code access
[![Version](https://img.shields.io/badge/version-2.7.1-blue?style=flat-square)](https://github.com/AndyMik90/Auto-Claude/releases/latest)
[![License](https://img.shields.io/badge/license-AGPL--3.0-green?style=flat-square)](./agpl-3.0.txt)
[![Discord](https://img.shields.io/badge/Discord-Join%20Community-5865F2?style=flat-square&logo=discord&logoColor=white)](https://discord.gg/KCXaPBr4Dj)
[![CI](https://img.shields.io/github/actions/workflow/status/AndyMik90/Auto-Claude/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/AndyMik90/Auto-Claude/actions)
---
### Installing Docker Desktop
## Download
Docker runs the FalkorDB database that powers Auto Claude's cross-session memory.
Get the latest pre-built release for your platform:
| Operating System | Download Link |
|------------------|---------------|
| **Mac (Apple Silicon M1/M2/M3/M4)** | [Download for Apple Chip](https://desktop.docker.com/mac/main/arm64/Docker.dmg) |
| **Mac (Intel)** | [Download for Intel Chip](https://desktop.docker.com/mac/main/amd64/Docker.dmg) |
| **Windows** | [Download for Windows](https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe) |
| **Linux** | [Installation Guide](https://docs.docker.com/desktop/install/linux-install/) |
| Platform | Download | Notes |
|----------|----------|-------|
| **Windows** | [Auto-Claude-2.7.1.exe](https://github.com/AndyMik90/Auto-Claude/releases/latest) | Installer (NSIS) |
| **macOS (Apple Silicon)** | [Auto-Claude-2.7.1-arm64.dmg](https://github.com/AndyMik90/Auto-Claude/releases/latest) | M1/M2/M3 Macs |
| **macOS (Intel)** | [Auto-Claude-2.7.1-x64.dmg](https://github.com/AndyMik90/Auto-Claude/releases/latest) | Intel Macs |
| **Linux** | [Auto-Claude-2.7.1.AppImage](https://github.com/AndyMik90/Auto-Claude/releases/latest) | Universal |
| **Linux (Debian)** | [Auto-Claude-2.7.1.deb](https://github.com/AndyMik90/Auto-Claude/releases/latest) | Ubuntu/Debian |
> **Not sure which Mac?** Click the Apple menu (🍎) → "About This Mac". Look for "Chip" - M1/M2/M3/M4 = Apple Silicon, otherwise Intel.
**After installing:** Open Docker Desktop and wait for the whale icon (🐳) to appear in your menu bar/system tray.
> **Using the Desktop UI?** It automatically detects Docker status and offers one-click FalkorDB setup. No terminal commands needed!
📚 **For detailed installation steps, troubleshooting, and advanced configuration, see [guides/DOCKER-SETUP.md](guides/DOCKER-SETUP.md)**
> All releases include SHA256 checksums and VirusTotal scan results for security verification.
---
### Step 1: Set Up the Python Backend
## Requirements
The Desktop UI runs Python scripts behind the scenes. Set up the Python environment:
```bash
cd auto-claude
# Using uv (recommended)
uv venv && uv pip install -r requirements.txt
# Or using standard Python
python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
```
### Step 2: Start the Memory Layer
The Auto Claude Memory Layer provides cross-session context retention using a graph database:
```bash
# Make sure Docker Desktop is running, then:
docker-compose up -d falkordb
```
### Step 3: Install and Launch the Desktop UI
```bash
cd auto-claude-ui
# Install dependencies (pnpm recommended, npm works too)
pnpm install
# or: npm install
# Build and start the application
pnpm run build && pnpm run start
# or: npm run build && npm run start
```
### Step 4: Start Building
1. Add your project in the UI
2. Create a new task describing what you want to build
3. Watch as Auto Claude creates a spec, plans, and implements your feature
4. Review changes and merge when satisfied
- **Claude Pro/Max subscription** - [Get one here](https://claude.ai/upgrade)
- **Claude Code CLI** - `npm install -g @anthropic-ai/claude-code`
- **Git repository** - Your project must be initialized as a git repo
- **Python 3.12+** - Required for the backend and Memory Layer
---
## 🎯 Features
## Quick Start
1. **Download and install** the app for your platform
2. **Open your project** - Select a git repository folder
3. **Connect Claude** - The app will guide you through OAuth setup
4. **Create a task** - Describe what you want to build
5. **Watch it work** - Agents plan, code, and validate autonomously
---
## Features
| Feature | Description |
|---------|-------------|
| **Autonomous Tasks** | Describe your goal; agents handle planning, implementation, and validation |
| **Parallel Execution** | Run multiple builds simultaneously with up to 12 agent terminals |
| **Isolated Workspaces** | All changes happen in git worktrees - your main branch stays safe |
| **Self-Validating QA** | Built-in quality assurance loop catches issues before you review |
| **AI-Powered Merge** | Automatic conflict resolution when integrating back to main |
| **Memory Layer** | Agents retain insights across sessions for smarter builds |
| **Cross-Platform** | Native desktop apps for Windows, macOS, and Linux |
| **Auto-Updates** | App updates automatically when new versions are released |
---
## Interface
### Kanban Board
Plan tasks and let AI handle the planning, coding, and validation — all in a visual interface. Track progress from "Planning" to "Done" while agents work autonomously.
Visual task management from planning through completion. Create tasks and monitor agent progress in real-time.
### Agent Terminals
AI-powered terminals with one-click task context injection. Spawn multiple agents for parallel work.
Spawn up to 12 AI-powered terminals for hands-on coding. Inject task context with a click, reference files from your project, and work rapidly across multiple sessions.
**Power users:** Connect multiple Claude Code subscriptions to run even more agents in parallel — perfect for teams or heavy workloads.
![Auto Claude Agent Terminals](.github/assets/Auto-Claude-Agents-terminals.png)
### Insights
Have a conversation about your project in a ChatGPT-style interface. Ask questions, get explanations, and explore your codebase through natural dialogue.
![Agent Terminals](.github/assets/Auto-Claude-Agents-terminals.png)
### Roadmap
AI-assisted feature planning with competitor analysis and audience targeting.
Based on your target audience, AI anticipates and plans the most impactful features you should focus on. Prioritize what matters most to your users.
![Roadmap](.github/assets/Auto-Claude-roadmap.png)
![Auto Claude Roadmap](.github/assets/Auto-Claude-roadmap.png)
### Ideation
Let AI help you create a project that shines. Rapidly understand your codebase and discover:
- Code improvements and refactoring opportunities
- Performance bottlenecks
- Security vulnerabilities
- Documentation gaps
- UI/UX enhancements
- Overall code quality issues
### Changelog
Write professional changelogs effortlessly. Generate release notes from completed Auto Claude tasks or integrate with GitHub to create masterclass changelogs automatically.
### Context
See exactly what Auto Claude understands about your project — the tech stack, file structure, patterns, and insights it uses to write better code.
### AI Merge Resolution
When your main branch evolves while a build is in progress, Auto Claude automatically resolves merge conflicts using AI — no manual `<<<<<<< HEAD` fixing required.
**How it works:**
1. **Git Auto-Merge First** — Simple non-conflicting changes merge instantly without AI
2. **Conflict-Only AI** — For actual conflicts, AI receives only the specific conflict regions (not entire files), achieving ~98% prompt reduction
3. **Parallel Processing** — Multiple conflicting files resolve simultaneously for faster merges
4. **Syntax Validation** — Every merge is validated before being applied
**The result:** A build that was 50+ commits behind main merges in seconds instead of requiring manual conflict resolution.
### Additional Features
- **Insights** - Chat interface for exploring your codebase
- **Ideation** - Discover improvements, performance issues, and vulnerabilities
- **Changelog** - Generate release notes from completed tasks
---
## CLI Usage (Terminal-Only)
For terminal-based workflows, headless servers, or CI/CD integration, see **[guides/CLI-USAGE.md](guides/CLI-USAGE.md)**.
## ⚙️ How It Works
Auto Claude focuses on three core principles: **context engineering** (understanding your codebase before writing code), **good coding standards** (following best practices and patterns), and **validation logic** (ensuring code works before you see it).
### The Agent Pipeline
**Phase 1: Spec Creation** (3-8 phases based on complexity)
Before any code is written, agents gather context and create a detailed specification:
1. **Discovery** — Analyzes your project structure and tech stack
2. **Requirements** — Gathers what you want to build through interactive conversation
3. **Research** — Validates external integrations against real documentation
4. **Context Discovery** — Finds relevant files in your codebase
5. **Spec Writer** — Creates a comprehensive specification document
6. **Spec Critic** — Self-critiques using extended thinking to find issues early
7. **Planner** — Breaks work into subtasks with dependencies
8. **Validation** — Ensures all outputs are valid before proceeding
**Phase 2: Implementation**
With a validated spec, coding agents execute the plan:
1. **Planner Agent** — Creates subtask-based implementation plan
2. **Coder Agent** — Implements subtasks one-by-one with verification
3. **QA Reviewer** — Validates all acceptance criteria
4. **QA Fixer** — Fixes issues in a self-healing loop (up to 50 iterations)
Each session runs with a fresh context window. Progress is tracked via `implementation_plan.json` and Git commits.
**Phase 3: Merge**
When you're ready to merge, AI handles any conflicts that arose while you were working:
1. **Conflict Detection** — Identifies files modified in both main and the build
2. **3-Tier Resolution** — Git auto-merge → Conflict-only AI → Full-file AI (fallback)
3. **Parallel Merge** — Multiple files resolve simultaneously
4. **Staged for Review** — Changes are staged but not committed, so you can review before finalizing
### 🔒 Security Model
Three-layer defense keeps your code safe:
- **OS Sandbox** — Bash commands run in isolation
- **Filesystem Restrictions** — Operations limited to project directory
- **Command Allowlist** — Only approved commands based on your project's stack
### 🧠 Memory Layer
The Memory Layer is a **hybrid RAG system** combining graph nodes with semantic search to deliver the best possible context during AI coding. Agents remember insights from previous sessions, discovered codebase patterns persist and are reusable, and historical context helps agents make smarter decisions.
**Architecture:**
- **Backend**: FalkorDB (graph database) via Docker
- **Library**: Graphiti for knowledge graph operations
- **Providers**: OpenAI, Anthropic, Azure OpenAI, or Ollama (local/offline)
| Setup | LLM | Embeddings | Notes |
|-------|-----|------------|-------|
| **OpenAI** | OpenAI | OpenAI | Simplest - single API key |
| **Anthropic + Voyage** | Anthropic | Voyage AI | High quality |
| **Ollama** | Ollama | Ollama | Fully offline |
| **Azure** | Azure OpenAI | Azure OpenAI | Enterprise |
## Project Structure
```
your-project/
├── .worktrees/ # Created during build (git-ignored)
── auto-claude/ # Isolated workspace for AI coding
├── .auto-claude/ # Per-project data (specs, plans, QA reports)
│ ├── specs/ # Task specifications
│ ├── roadmap/ # Project roadmap
│ └── ideation/ # Ideas and planning
├── auto-claude/ # Python backend (framework code)
│ ├── run.py # Build entry point
│ ├── spec_runner.py # Spec creation orchestrator
│ ├── prompts/ # Agent prompt templates
│ └── ...
├── auto-claude-ui/ # Electron desktop application
│ └── ...
└── docker-compose.yml # FalkorDB for Memory Layer
Auto-Claude/
├── apps/
── backend/ # Python agents, specs, QA pipeline
│ └── frontend/ # Electron desktop application
├── guides/ # Additional documentation
├── tests/ # Test suite
└── scripts/ # Build utilities
```
## Environment Variables (CLI Only)
---
> **Desktop UI users:** These are configured through the app settings — no manual setup needed.
## CLI Usage
For headless operation, CI/CD integration, or terminal-only workflows:
```bash
cd apps/backend
# Create a spec interactively
python spec_runner.py --interactive
# Run autonomous build
python run.py --spec 001
# Review and merge
python run.py --spec 001 --review
python run.py --spec 001 --merge
```
See [guides/CLI-USAGE.md](guides/CLI-USAGE.md) for complete CLI documentation.
---
## Configuration
Create `apps/backend/.env` from the example:
```bash
cp apps/backend/.env.example apps/backend/.env
```
| Variable | Required | Description |
|----------|----------|-------------|
| `CLAUDE_CODE_OAUTH_TOKEN` | Yes | OAuth token from `claude setup-token` |
| `AUTO_BUILD_MODEL` | No | Model override (default: claude-opus-4-5-20251101) |
| `GRAPHITI_ENABLED` | Recommended | Set to `true` to enable Memory Layer |
| `GRAPHITI_LLM_PROVIDER` | For Memory | LLM provider: openai, anthropic, azure_openai, ollama |
| `GRAPHITI_EMBEDDER_PROVIDER` | For Memory | Embedder: openai, voyage, azure_openai, ollama |
| `OPENAI_API_KEY` | For OpenAI | Required for OpenAI provider |
| `ANTHROPIC_API_KEY` | For Anthropic | Required for Anthropic LLM |
| `VOYAGE_API_KEY` | For Voyage | Required for Voyage embeddings |
| `GRAPHITI_ENABLED` | No | Enable Memory Layer for cross-session context |
| `AUTO_BUILD_MODEL` | No | Override the default Claude model |
See `auto-claude/.env.example` for complete configuration options.
---
## 💬 Community
## Building from Source
Join our Discord to get help, share what you're building, and connect with other Auto Claude users:
For contributors and development:
[![Discord](https://img.shields.io/badge/Discord-Join%20Community-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/maj9EWmY)
```bash
# Clone the repository
git clone https://github.com/AndyMik90/Auto-Claude.git
cd Auto-Claude
## 🤝 Contributing
# Install all dependencies
npm run install:all
We welcome contributions! Whether it's bug fixes, new features, or documentation improvements.
# Run in development mode
npm run dev
See **[CONTRIBUTING.md](CONTRIBUTING.md)** for guidelines on how to get started.
# Or build and run
npm start
```
## Acknowledgments
**System requirements for building:**
- Node.js 24+
- Python 3.12+
- npm 10+
This framework was inspired by Anthropic's [Autonomous Coding Agent](https://github.com/anthropics/claude-quickstarts/tree/main/autonomous-coding). Thank you to the Anthropic team for their innovative work on autonomous coding systems.
See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed development setup.
---
## Security
Auto Claude uses a three-layer security model:
1. **OS Sandbox** - Bash commands run in isolation
2. **Filesystem Restrictions** - Operations limited to project directory
3. **Dynamic Command Allowlist** - Only approved commands based on detected project stack
All releases are:
- Scanned with VirusTotal before publishing
- Include SHA256 checksums for verification
- Code-signed where applicable (macOS)
---
## Available Scripts
| Command | Description |
|---------|-------------|
| `npm run install:all` | Install backend and frontend dependencies |
| `npm start` | Build and run the desktop app |
| `npm run dev` | Run in development mode with hot reload |
| `npm run package` | Package for current platform |
| `npm run package:mac` | Package for macOS |
| `npm run package:win` | Package for Windows |
| `npm run package:linux` | Package for Linux |
| `npm run lint` | Run linter |
| `npm test` | Run frontend tests |
| `npm run test:backend` | Run backend tests |
---
## Contributing
We welcome contributions! Please read [CONTRIBUTING.md](CONTRIBUTING.md) for:
- Development setup instructions
- Code style guidelines
- Testing requirements
- Pull request process
---
## Community
- **Discord** - [Join our community](https://discord.gg/KCXaPBr4Dj)
- **Issues** - [Report bugs or request features](https://github.com/AndyMik90/Auto-Claude/issues)
- **Discussions** - [Ask questions](https://github.com/AndyMik90/Auto-Claude/discussions)
---
## License
**AGPL-3.0** - GNU Affero General Public License v3.0
This software is licensed under AGPL-3.0, which means:
Auto Claude is free to use. If you modify and distribute it, or run it as a service, your code must also be open source under AGPL-3.0.
- **Attribution Required**: You must give appropriate credit, provide a link to the license, and indicate if changes were made. When using Auto Claude, please credit the project.
- **Open Source Required**: If you modify this software and distribute it or run it as a service, you must release your source code under AGPL-3.0.
- **Network Use (Copyleft)**: If you run this software as a network service (e.g., SaaS), users interacting with it over a network must be able to receive the source code.
- **No Closed-Source Usage**: You cannot use this software in proprietary/closed-source projects without open-sourcing your entire project under AGPL-3.0.
**In simple terms**: You can use Auto Claude freely, but if you build on it, your code must also be open source under AGPL-3.0 and attribute this project. Closed-source commercial use requires a separate license.
For commercial licensing inquiries (closed-source usage), please contact the maintainers.
Commercial licensing available for closed-source use cases.
+188
View File
@@ -0,0 +1,188 @@
# Release Process
This document describes how releases are created for Auto Claude.
## Overview
Auto Claude uses an automated release pipeline that ensures releases are only published after all builds succeed. This prevents version mismatches between documentation and actual releases.
```
┌─────────────────────────────────────────────────────────────────────────────┐
│ RELEASE FLOW │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ develop branch main branch │
│ ────────────── ─────────── │
│ │ │ │
│ │ 1. bump-version.js │ │
│ │ (creates commit) │ │
│ │ │ │
│ ▼ │ │
│ ┌─────────┐ │ │
│ │ v2.8.0 │ 2. Create PR │ │
│ │ commit │ ────────────────────► │ │
│ └─────────┘ │ │
│ │ │
│ 3. Merge PR ▼ │
│ ┌──────────┐ │
│ │ v2.8.0 │ │
│ │ on main │ │
│ └────┬─────┘ │
│ │ │
│ ┌───────────────────┴───────────────────┐ │
│ │ GitHub Actions (automatic) │ │
│ ├───────────────────────────────────────┤ │
│ │ 4. prepare-release.yml │ │
│ │ - Detects version > latest tag │ │
│ │ - Creates tag v2.8.0 │ │
│ │ │ │
│ │ 5. release.yml (triggered by tag) │ │
│ │ - Builds macOS (Intel + ARM) │ │
│ │ - Builds Windows │ │
│ │ - Builds Linux │ │
│ │ - Generates changelog │ │
│ │ - Creates GitHub release │ │
│ │ - Updates README │ │
│ └───────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
```
## For Maintainers: Creating a Release
### Step 1: Bump the Version
On your development branch (typically `develop` or a feature branch):
```bash
# Navigate to project root
cd /path/to/auto-claude
# Bump version (choose one)
node scripts/bump-version.js patch # 2.7.1 -> 2.7.2 (bug fixes)
node scripts/bump-version.js minor # 2.7.1 -> 2.8.0 (new features)
node scripts/bump-version.js major # 2.7.1 -> 3.0.0 (breaking changes)
node scripts/bump-version.js 2.8.0 # Set specific version
```
This will:
- Update `apps/frontend/package.json`
- Update `package.json` (root)
- Update `apps/backend/__init__.py`
- Create a commit with message `chore: bump version to X.Y.Z`
### Step 2: Push and Create PR
```bash
# Push your branch
git push origin your-branch
# Create PR to main (via GitHub UI or gh CLI)
gh pr create --base main --title "Release v2.8.0"
```
### Step 3: Merge to Main
Once the PR is approved and merged to `main`, GitHub Actions will automatically:
1. **Detect the version bump** (`prepare-release.yml`)
2. **Create a git tag** (e.g., `v2.8.0`)
3. **Trigger the release workflow** (`release.yml`)
4. **Build binaries** for all platforms:
- macOS Intel (x64) - code signed & notarized
- macOS Apple Silicon (arm64) - code signed & notarized
- Windows (NSIS installer) - code signed
- Linux (AppImage + .deb)
5. **Generate changelog** from merged PRs (using release-drafter)
6. **Scan binaries** with VirusTotal
7. **Create GitHub release** with all artifacts
8. **Update README** with new version badge and download links
### Step 4: Verify
After merging, check:
- [GitHub Actions](https://github.com/AndyMik90/Auto-Claude/actions) - ensure all workflows pass
- [Releases](https://github.com/AndyMik90/Auto-Claude/releases) - verify release was created
- [README](https://github.com/AndyMik90/Auto-Claude#download) - confirm version updated
## Version Numbering
We follow [Semantic Versioning](https://semver.org/):
- **MAJOR** (X.0.0): Breaking changes, incompatible API changes
- **MINOR** (0.X.0): New features, backwards compatible
- **PATCH** (0.0.X): Bug fixes, backwards compatible
## Changelog Generation
Changelogs are automatically generated from merged PRs using [Release Drafter](https://github.com/release-drafter/release-drafter).
### PR Labels for Changelog Categories
| Label | Category |
|-------|----------|
| `feature`, `enhancement` | New Features |
| `bug`, `fix` | Bug Fixes |
| `improvement`, `refactor` | Improvements |
| `documentation` | Documentation |
| (any other) | Other Changes |
**Tip:** Add appropriate labels to your PRs for better changelog organization.
## Workflows
| Workflow | Trigger | Purpose |
|----------|---------|---------|
| `prepare-release.yml` | Push to `main` | Detects version bump, creates tag |
| `release.yml` | Tag `v*` pushed | Builds binaries, creates release |
| `validate-version.yml` | Tag `v*` pushed | Validates tag matches package.json |
| `update-readme` (in release.yml) | After release | Updates README with new version |
## Troubleshooting
### Release didn't trigger after merge
1. Check if version in `package.json` is greater than latest tag:
```bash
git tag -l 'v*' --sort=-version:refname | head -1
cat apps/frontend/package.json | grep version
```
2. Ensure the merge commit touched `package.json`:
```bash
git diff HEAD~1 --name-only | grep package.json
```
### Build failed after tag was created
- The release won't be published if builds fail
- Fix the issue and create a new patch version
- Don't reuse failed version numbers
### README shows wrong version
- README is only updated after successful release
- If release failed, README keeps the previous version (this is intentional)
- Once you successfully release, README will update automatically
## Manual Release (Emergency Only)
In rare cases where you need to bypass the automated flow:
```bash
# Create tag manually (NOT RECOMMENDED)
git tag -a v2.8.0 -m "Release v2.8.0"
git push origin v2.8.0
# This will trigger release.yml directly
```
**Warning:** Only do this if you're certain the version in package.json matches the tag.
## Security
- All macOS binaries are code signed with Apple Developer certificate
- All macOS binaries are notarized by Apple
- Windows binaries are code signed
- All binaries are scanned with VirusTotal
- SHA256 checksums are generated for all artifacts
+1 -1
View File
@@ -658,4 +658,4 @@ specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.
@@ -1,14 +1,50 @@
# Auto Claude Environment Variables
# Copy this file to .env and fill in your values
# Claude Code OAuth Token (REQUIRED)
# Get this by running: claude setup-token
CLAUDE_CODE_OAUTH_TOKEN=your-oauth-token-here
# =============================================================================
# AUTHENTICATION (REQUIRED)
# =============================================================================
# Auto Claude uses Claude Code OAuth authentication.
# Direct API keys (ANTHROPIC_API_KEY) are NOT supported to prevent silent billing.
#
# Option 1: Run `claude setup-token` to save token to macOS Keychain (recommended)
# Option 2: Set the token explicitly:
# CLAUDE_CODE_OAUTH_TOKEN=your-oauth-token-here
#
# For enterprise/proxy setups (CCR):
# ANTHROPIC_AUTH_TOKEN=sk-zcf-x-ccr
# =============================================================================
# CUSTOM API ENDPOINT (OPTIONAL)
# =============================================================================
# Override the default Anthropic API endpoint. Useful for:
# - Local proxies (ccr, litellm)
# - API gateways
# - Self-hosted Claude instances
#
# ANTHROPIC_BASE_URL=http://127.0.0.1:3456
#
# Related settings (usually set together with ANTHROPIC_BASE_URL):
# NO_PROXY=127.0.0.1
# DISABLE_TELEMETRY=true
# DISABLE_COST_WARNINGS=true
# API_TIMEOUT_MS=600000
# Model override (OPTIONAL)
# Default: claude-opus-4-5-20251101
# AUTO_BUILD_MODEL=claude-opus-4-5-20251101
# =============================================================================
# GIT/WORKTREE SETTINGS (OPTIONAL)
# =============================================================================
# Configure how Auto Claude handles git worktrees for isolated builds.
# Default base branch for worktree creation (OPTIONAL)
# If not set, Auto Claude will auto-detect main/master, or fall back to current branch.
# Common values: main, master, develop
# DEFAULT_BRANCH=main
# =============================================================================
# DEBUG MODE (OPTIONAL)
# =============================================================================
@@ -62,10 +98,11 @@ CLAUDE_CODE_OAUTH_TOKEN=your-oauth-token-here
# 1. Start your Electron app with remote debugging:
# ./YourElectronApp --remote-debugging-port=9222
#
# 2. For auto-claude-ui specifically:
# 2. For auto-claude-ui specifically (use the MCP-enabled scripts):
# cd auto-claude-ui
# pnpm build
# ./dist/mac-arm64/Auto\ Claude.app/Contents/MacOS/Auto\ Claude --remote-debugging-port=9222
# pnpm run dev:mcp # Development mode with MCP debugging
# # OR for production build:
# pnpm run start:mcp # Production mode with MCP debugging
#
# Note: Only QA agents (qa_reviewer, qa_fixer) receive Electron MCP tools.
# Coder and Planner agents do NOT have access to these tools to minimize
@@ -80,24 +117,35 @@ CLAUDE_CODE_OAUTH_TOKEN=your-oauth-token-here
# ELECTRON_DEBUG_PORT=9222
# =============================================================================
# GRAPHITI MEMORY INTEGRATION V2 (OPTIONAL)
# GRAPHITI MEMORY INTEGRATION (REQUIRED)
# =============================================================================
# Enable Graphiti-based persistent memory layer for cross-session context
# retention. Uses FalkorDB as the graph database backend.
# Graphiti-based persistent memory layer for cross-session context
# retention. Uses LadybugDB as the embedded graph database.
#
# V2 supports multiple LLM and embedder providers:
# REQUIREMENTS:
# - Python 3.12 or higher
# - Install: pip install real_ladybug graphiti-core
#
# Supports multiple LLM and embedder providers:
# - OpenAI (default)
# - Anthropic (LLM only, use with Voyage for embeddings)
# - Azure OpenAI
# - Ollama (local, fully offline)
#
# Prerequisites:
# 1. Start FalkorDB: docker-compose up -d falkordb
# 2. Install Graphiti: pip install graphiti-core[falkordb]
# 3. Configure your chosen provider (see below)
# - Google AI (Gemini)
# Enable Graphiti integration (default: false)
# GRAPHITI_ENABLED=true
# Graphiti is enabled by default. Set to false to disable memory features.
GRAPHITI_ENABLED=true
# =============================================================================
# GRAPHITI: Database Settings
# =============================================================================
# LadybugDB stores data in a local directory (no Docker required).
# Database name (default: auto_claude_memory)
# GRAPHITI_DATABASE=auto_claude_memory
# Database storage path (default: ~/.auto-claude/memories)
# GRAPHITI_DB_PATH=~/.auto-claude/memories
# =============================================================================
# GRAPHITI: Provider Selection
@@ -105,10 +153,10 @@ CLAUDE_CODE_OAUTH_TOKEN=your-oauth-token-here
# Choose which providers to use for LLM and embeddings.
# Default is "openai" for both.
# LLM provider: openai | anthropic | azure_openai | ollama
# LLM provider: openai | anthropic | azure_openai | ollama | google
# GRAPHITI_LLM_PROVIDER=openai
# Embedder provider: openai | voyage | azure_openai | ollama
# Embedder provider: openai | voyage | azure_openai | ollama | google
# GRAPHITI_EMBEDDER_PROVIDER=openai
# =============================================================================
@@ -120,8 +168,8 @@ CLAUDE_CODE_OAUTH_TOKEN=your-oauth-token-here
# OpenAI API Key
# OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# OpenAI Model for LLM (default: gpt-5-mini)
# OPENAI_MODEL=gpt-5-mini
# OpenAI Model for LLM (default: gpt-4o-mini)
# OPENAI_MODEL=gpt-4o-mini
# OpenAI Model for embeddings (default: text-embedding-3-small)
# Available: text-embedding-3-small (1536 dim), text-embedding-3-large (3072 dim)
@@ -156,6 +204,23 @@ CLAUDE_CODE_OAUTH_TOKEN=your-oauth-token-here
# Available: voyage-3 (1024 dim), voyage-3-lite (512 dim)
# VOYAGE_EMBEDDING_MODEL=voyage-3
# =============================================================================
# GRAPHITI: Google AI Provider
# =============================================================================
# Use Google AI (Gemini) for both LLM and embeddings.
# Get API key from: https://aistudio.google.com/apikey
#
# Required: GOOGLE_API_KEY
# Google AI API Key
# GOOGLE_API_KEY=AIzaSyxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Google LLM Model (default: gemini-2.0-flash)
# GOOGLE_LLM_MODEL=gemini-2.0-flash
# Google Embedding Model (default: text-embedding-004)
# GOOGLE_EMBEDDING_MODEL=text-embedding-004
# =============================================================================
# GRAPHITI: Azure OpenAI Provider
# =============================================================================
@@ -171,7 +236,7 @@ CLAUDE_CODE_OAUTH_TOKEN=your-oauth-token-here
# AZURE_OPENAI_BASE_URL=https://your-resource.openai.azure.com/openai/deployments/your-deployment
# Azure OpenAI Deployment Names
# AZURE_OPENAI_LLM_DEPLOYMENT=gpt-5
# AZURE_OPENAI_LLM_DEPLOYMENT=gpt-4
# AZURE_OPENAI_EMBEDDING_DEPLOYMENT=text-embedding-3-small
# =============================================================================
@@ -203,66 +268,6 @@ CLAUDE_CODE_OAUTH_TOKEN=your-oauth-token-here
# Common values: nomic-embed-text=768, mxbai-embed-large=1024, all-minilm=384
# OLLAMA_EMBEDDING_DIM=768
# =============================================================================
# GRAPHITI MCP SERVER (OPTIONAL - Agent-accessible knowledge graph)
# =============================================================================
# Enable Graphiti MCP server for direct agent access to knowledge graph.
# This is SEPARATE from GRAPHITI_ENABLED (Python library integration).
#
# With MCP server enabled, Claude agents can directly:
# - Search for relevant context (search_nodes, search_facts)
# - Add discoveries to the graph (add_episode)
# - Retrieve recent sessions (get_episodes)
#
# Quick Start (uses docker-compose.yml in project root):
# 1. Set OPENAI_API_KEY in your .env file (or export it)
# 2. Run: docker-compose up -d
# 3. Set GRAPHITI_MCP_URL below
#
# Manual Docker (alternative):
# docker run -d -p 8000:8000 \
# -e DATABASE_TYPE=falkordb \
# -e OPENAI_API_KEY=$OPENAI_API_KEY \
# -e FALKORDB_URI=redis://host.docker.internal:6379 \
# falkordb/graphiti-knowledge-graph-mcp
#
# See: https://docs.falkordb.com/agentic-memory/graphiti-mcp-server.html
# Graphiti MCP Server URL (setting this enables MCP integration)
# GRAPHITI_MCP_URL=http://localhost:8000/mcp/
# Graphiti MCP Server Port (for docker-compose, default: 8000)
# GRAPHITI_MCP_PORT=8000
# Optional: Override model settings for MCP server
# GRAPHITI_MODEL_NAME=gpt-4o-mini
# GRAPHITI_EMBEDDING_MODEL=text-embedding-3-small
# =============================================================================
# GRAPHITI: FalkorDB Connection Settings
# =============================================================================
# Configure the FalkorDB graph database connection.
# Start FalkorDB: docker run -p 6379:6379 falkordb/falkordb:latest
# FalkorDB Host (default: localhost)
# GRAPHITI_FALKORDB_HOST=localhost
# FalkorDB Port (default: 6379)
# GRAPHITI_FALKORDB_PORT=6379
# FalkorDB Password (default: empty)
# GRAPHITI_FALKORDB_PASSWORD=
# Graph Database Name (default: auto_claude_memory)
# GRAPHITI_DATABASE=auto_claude_memory
# =============================================================================
# GRAPHITI: Miscellaneous Settings
# =============================================================================
# Disable Graphiti telemetry (default: true)
# GRAPHITI_TELEMETRY_ENABLED=false
# =============================================================================
# GRAPHITI: Example Configurations
# =============================================================================
@@ -294,5 +299,11 @@ CLAUDE_CODE_OAUTH_TOKEN=your-oauth-token-here
# GRAPHITI_EMBEDDER_PROVIDER=azure_openai
# AZURE_OPENAI_API_KEY=xxxxxxxx
# AZURE_OPENAI_BASE_URL=https://your-resource.openai.azure.com/...
# AZURE_OPENAI_LLM_DEPLOYMENT=gpt-5
# AZURE_OPENAI_LLM_DEPLOYMENT=gpt-4
# AZURE_OPENAI_EMBEDDING_DEPLOYMENT=text-embedding-3-small
#
# --- Example 5: Google AI (Gemini) ---
# GRAPHITI_ENABLED=true
# GRAPHITI_LLM_PROVIDER=google
# GRAPHITI_EMBEDDER_PROVIDER=google
# GOOGLE_API_KEY=AIzaSyxxxxxxxx
@@ -5,6 +5,7 @@
# Virtual environment
.venv/
.venv*/
venv/
env/
@@ -60,3 +61,6 @@ Thumbs.db
# Tests (development only)
tests/
# Auto Claude data directory
.auto-claude/
+120
View File
@@ -0,0 +1,120 @@
# Auto Claude Backend
Autonomous coding framework powered by Claude AI. Builds software features through coordinated multi-agent sessions.
## Getting Started
### 1. Install
```bash
cd apps/backend
python -m pip install -r requirements.txt
```
### 2. Configure
```bash
cp .env.example .env
```
Set your Claude API token in `.env`:
```
CLAUDE_CODE_OAUTH_TOKEN=your-token-here
```
Get your token by running: `claude setup-token`
### 3. Run
```bash
# List available specs
python run.py --list
# Run a spec
python run.py --spec 001
```
## Requirements
- Python 3.10+
- Claude API token
## Commands
| Command | Description |
|---------|-------------|
| `--list` | List all specs |
| `--spec 001` | Run spec 001 |
| `--spec 001 --isolated` | Run in isolated workspace |
| `--spec 001 --direct` | Run directly in repo |
| `--spec 001 --merge` | Merge completed build |
| `--spec 001 --review` | Review build changes |
| `--spec 001 --discard` | Discard build |
| `--spec 001 --qa` | Run QA validation |
| `--list-worktrees` | List all worktrees |
| `--help` | Show all options |
## Configuration
Optional `.env` settings:
| Variable | Description |
|----------|-------------|
| `AUTO_BUILD_MODEL` | Override Claude model |
| `DEBUG=true` | Enable debug logging |
| `LINEAR_API_KEY` | Enable Linear integration |
| `GRAPHITI_ENABLED=true` | Enable memory system |
## Troubleshooting
**"tree-sitter not available"** - Safe to ignore, uses regex fallback.
**Missing module errors** - Run `python -m pip install -r requirements.txt`
**Debug mode** - Set `DEBUG=true DEBUG_LEVEL=2` before running.
---
## For Developers
### Project Structure
```
backend/
├── agents/ # AI agent execution
├── analysis/ # Code analysis
├── cli/ # Command-line interface
├── core/ # Core utilities
├── integrations/ # External services (Linear, Graphiti)
├── merge/ # Git merge handling
├── project/ # Project detection
├── prompts/ # Prompt templates
├── qa/ # QA validation
├── spec/ # Spec management
└── ui/ # Terminal UI
```
### Design Principles
- **SOLID** - Single responsibility, clean interfaces
- **DRY** - Shared utilities in `core/`
- **KISS** - Simple flat imports via facade modules
### Import Convention
```python
# Use facade modules for clean imports
from debug import debug, debug_error
from progress import count_subtasks
from workspace import setup_workspace
```
### Adding Features
1. Create module in appropriate folder
2. Export API in `__init__.py`
3. Add facade module at root if commonly imported
## License
AGPL-3.0
+23
View File
@@ -0,0 +1,23 @@
"""
Auto Claude Backend - Autonomous Coding Framework
==================================================
Multi-agent autonomous coding framework that builds software through
coordinated AI agent sessions.
This package provides:
- Autonomous agent execution for building features from specs
- Workspace isolation via git worktrees
- QA validation loops
- Memory management (Graphiti + file-based)
- Linear integration for project management
Quick Start:
python run.py --spec 001 # Run a spec
python run.py --list # List all specs
See README.md for full documentation.
"""
__version__ = "2.7.2"
__author__ = "Auto Claude Team"
+92
View File
@@ -0,0 +1,92 @@
"""
Agents Module
=============
Modular agent system for autonomous coding.
This module provides:
- run_autonomous_agent: Main coder agent loop
- run_followup_planner: Follow-up planner for completed specs
- Memory management (Graphiti + file-based fallback)
- Session management and post-processing
- Utility functions for git and plan management
Uses lazy imports to avoid circular dependencies.
"""
__all__ = [
# Main API
"run_autonomous_agent",
"run_followup_planner",
# Memory
"debug_memory_system_status",
"get_graphiti_context",
"save_session_memory",
"save_session_to_graphiti",
# Session
"run_agent_session",
"post_session_processing",
# Utils
"get_latest_commit",
"get_commit_count",
"load_implementation_plan",
"find_subtask_in_plan",
"find_phase_for_subtask",
"sync_plan_to_source",
# Constants
"AUTO_CONTINUE_DELAY_SECONDS",
"HUMAN_INTERVENTION_FILE",
]
def __getattr__(name):
"""Lazy imports to avoid circular dependencies."""
if name in ("AUTO_CONTINUE_DELAY_SECONDS", "HUMAN_INTERVENTION_FILE"):
from .base import AUTO_CONTINUE_DELAY_SECONDS, HUMAN_INTERVENTION_FILE
return locals()[name]
elif name == "run_autonomous_agent":
from .coder import run_autonomous_agent
return run_autonomous_agent
elif name in (
"debug_memory_system_status",
"get_graphiti_context",
"save_session_memory",
"save_session_to_graphiti",
):
from .memory_manager import (
debug_memory_system_status,
get_graphiti_context,
save_session_memory,
save_session_to_graphiti,
)
return locals()[name]
elif name == "run_followup_planner":
from .planner import run_followup_planner
return run_followup_planner
elif name in ("post_session_processing", "run_agent_session"):
from .session import post_session_processing, run_agent_session
return locals()[name]
elif name in (
"find_phase_for_subtask",
"find_subtask_in_plan",
"get_commit_count",
"get_latest_commit",
"load_implementation_plan",
"sync_plan_to_source",
):
from .utils import (
find_phase_for_subtask,
find_subtask_in_plan,
get_commit_count,
get_latest_commit,
load_implementation_plan,
sync_plan_to_source,
)
return locals()[name]
raise AttributeError(f"module 'agents' has no attribute '{name}'")
@@ -9,7 +9,7 @@ import asyncio
import logging
from pathlib import Path
from client import create_client
from core.client import create_client
from linear_updater import (
LinearTaskState,
is_linear_enabled,
@@ -17,6 +17,7 @@ from linear_updater import (
linear_task_started,
linear_task_stuck,
)
from phase_config import get_phase_model, get_phase_thinking_budget
from progress import (
count_subtasks,
count_subtasks_detailed,
@@ -244,8 +245,19 @@ async def run_autonomous_agent(
commit_before = get_latest_commit(project_dir)
commit_count_before = get_commit_count(project_dir)
# Create client (fresh context)
client = create_client(project_dir, spec_dir, model)
# Get the phase-specific model and thinking level (respects task_metadata.json configuration)
# first_run means we're in planning phase, otherwise coding phase
current_phase = "planning" if first_run else "coding"
phase_model = get_phase_model(spec_dir, current_phase, model)
phase_thinking_budget = get_phase_thinking_budget(spec_dir, current_phase)
# Create client (fresh context) with phase-specific model and thinking
client = create_client(
project_dir,
spec_dir,
phase_model,
max_thinking_tokens=phase_thinking_budget,
)
# Generate appropriate prompt
if first_run:
@@ -8,7 +8,8 @@ Handles follow-up planner sessions for adding new subtasks to completed specs.
import logging
from pathlib import Path
from client import create_client
from core.client import create_client
from phase_config import get_phase_thinking_budget
from task_logger import (
LogPhase,
get_task_logger,
@@ -88,8 +89,14 @@ async def run_followup_planner(
task_logger.start_phase(LogPhase.PLANNING, "Starting follow-up planning...")
task_logger.set_session(1)
# Create client (fresh context)
client = create_client(project_dir, spec_dir, model)
# Create client (fresh context) with planning phase thinking budget
planning_thinking_budget = get_phase_thinking_budget(spec_dir, "planning")
client = create_client(
project_dir,
spec_dir,
model,
max_thinking_tokens=planning_thinking_budget,
)
# Generate follow-up planner prompt
prompt = get_followup_planner_prompt(spec_dir)
@@ -10,6 +10,7 @@ import logging
from pathlib import Path
from claude_agent_sdk import ClaudeSDKClient
from debug import debug, debug_detailed, debug_error, debug_section, debug_success
from insight_extractor import extract_session_insights
from linear_updater import (
linear_subtask_completed,
@@ -332,20 +333,40 @@ async def run_agent_session(
- "complete" if all subtasks complete
- "error" if an error occurred
"""
debug_section("session", f"Agent Session - {phase.value}")
debug(
"session",
"Starting agent session",
spec_dir=str(spec_dir),
phase=phase.value,
prompt_length=len(message),
prompt_preview=message[:200] + "..." if len(message) > 200 else message,
)
print("Sending prompt to Claude Agent SDK...\n")
# Get task logger for this spec
task_logger = get_task_logger(spec_dir)
current_tool = None
message_count = 0
tool_count = 0
try:
# Send the query
debug("session", "Sending query to Claude SDK...")
await client.query(message)
debug_success("session", "Query sent successfully")
# Collect response text and show tool use
response_text = ""
debug("session", "Starting to receive response stream...")
async for msg in client.receive_response():
msg_type = type(msg).__name__
message_count += 1
debug_detailed(
"session",
f"Received message #{message_count}",
msg_type=msg_type,
)
# Handle AssistantMessage (text and tool use)
if msg_type == "AssistantMessage" and hasattr(msg, "content"):
@@ -366,6 +387,7 @@ async def run_agent_session(
elif block_type == "ToolUseBlock" and hasattr(block, "name"):
tool_name = block.name
tool_input = None
tool_count += 1
# Extract meaningful tool input for display
if hasattr(block, "input") and block.input:
@@ -386,6 +408,15 @@ async def run_agent_session(
elif "path" in inp:
tool_input = inp["path"]
debug(
"session",
f"Tool call #{tool_count}: {tool_name}",
tool_input=tool_input,
full_input=str(block.input)[:500]
if hasattr(block, "input")
else None,
)
# Log tool start (handles printing too)
if task_logger:
task_logger.tool_start(
@@ -413,6 +444,11 @@ async def run_agent_session(
# Check if command was blocked by security hook
if "blocked" in str(result_content).lower():
debug_error(
"session",
f"Tool BLOCKED: {current_tool}",
result=str(result_content)[:300],
)
print(f" [BLOCKED] {result_content}", flush=True)
if task_logger and current_tool:
task_logger.tool_end(
@@ -425,6 +461,11 @@ async def run_agent_session(
elif is_error:
# Show errors (truncated)
error_str = str(result_content)[:500]
debug_error(
"session",
f"Tool error: {current_tool}",
error=error_str[:200],
)
print(f" [Error] {error_str}", flush=True)
if task_logger and current_tool:
# Store full error in detail for expandable view
@@ -437,6 +478,11 @@ async def run_agent_session(
)
else:
# Tool succeeded
debug_detailed(
"session",
f"Tool success: {current_tool}",
result_length=len(str(result_content)),
)
if verbose:
result_str = str(result_content)[:200]
print(f" [Done] {result_str}", flush=True)
@@ -472,11 +518,32 @@ async def run_agent_session(
# Check if build is complete
if is_build_complete(spec_dir):
debug_success(
"session",
"Session completed - build is complete",
message_count=message_count,
tool_count=tool_count,
response_length=len(response_text),
)
return "complete", response_text
debug_success(
"session",
"Session completed - continuing",
message_count=message_count,
tool_count=tool_count,
response_length=len(response_text),
)
return "continue", response_text
except Exception as e:
debug_error(
"session",
f"Session error: {e}",
exception_type=type(e).__name__,
message_count=message_count,
tool_count=tool_count,
)
print(f"Error during agent session: {e}")
if task_logger:
task_logger.log_error(f"Session error: {e}", phase)
@@ -19,18 +19,28 @@ TOOL_RECORD_GOTCHA = "mcp__auto-claude__record_gotcha"
TOOL_GET_SESSION_CONTEXT = "mcp__auto-claude__get_session_context"
TOOL_UPDATE_QA_STATUS = "mcp__auto-claude__update_qa_status"
# Puppeteer MCP tools for web browser automation
# Used for web frontend validation (non-Electron web apps)
PUPPETEER_TOOLS = [
"mcp__puppeteer__puppeteer_connect_active_tab",
"mcp__puppeteer__puppeteer_navigate",
"mcp__puppeteer__puppeteer_screenshot",
"mcp__puppeteer__puppeteer_click",
"mcp__puppeteer__puppeteer_fill",
"mcp__puppeteer__puppeteer_select",
"mcp__puppeteer__puppeteer_hover",
"mcp__puppeteer__puppeteer_evaluate",
]
# Electron MCP tools for desktop app automation (when ELECTRON_MCP_ENABLED is set)
# Uses puppeteer-mcp-server to connect to Electron apps via Chrome DevTools Protocol.
# Uses electron-mcp-server to connect to Electron apps via Chrome DevTools Protocol.
# Electron app must be started with --remote-debugging-port=9222 (or ELECTRON_DEBUG_PORT).
# These tools are only available to QA agents (qa_reviewer, qa_fixer), not Coder/Planner.
ELECTRON_TOOLS = [
"mcp__electron__electron_connect", # Connect to Electron app via DevTools
"mcp__electron__electron_screenshot", # Take screenshot of Electron window
"mcp__electron__electron_click", # Click element in Electron app
"mcp__electron__electron_fill", # Fill input field in Electron app
"mcp__electron__electron_evaluate", # Execute JS in Electron renderer
"mcp__electron__electron_get_window_info", # Get window state/bounds
"mcp__electron__electron_get_console", # Get console logs from renderer
"mcp__electron__get_electron_window_info", # Get info about running Electron windows
"mcp__electron__take_screenshot", # Capture screenshot of Electron window
"mcp__electron__send_command_to_electron", # Send commands (click, fill, evaluate JS)
"mcp__electron__read_electron_logs", # Read console logs from Electron app
]
# Base tools available to all agents
@@ -4,12 +4,17 @@ Agent Tool Permissions
Manages which tools are allowed for each agent type to prevent context
pollution and accidental misuse.
Supports dynamic tool filtering based on project capabilities to optimize
context window usage. For example, Electron tools are only included for
Electron projects, not for Next.js or CLI projects.
"""
from .models import (
BASE_READ_TOOLS,
BASE_WRITE_TOOLS,
ELECTRON_TOOLS,
PUPPETEER_TOOLS,
TOOL_GET_BUILD_PROGRESS,
TOOL_GET_SESSION_CONTEXT,
TOOL_RECORD_DISCOVERY,
@@ -20,15 +25,26 @@ from .models import (
)
def get_allowed_tools(agent_type: str) -> list[str]:
def get_allowed_tools(
agent_type: str,
project_capabilities: dict | None = None,
) -> list[str]:
"""
Get the list of allowed tools for a specific agent type.
This ensures each agent only sees tools relevant to their role,
preventing context pollution and accidental misuse.
When project_capabilities is provided, MCP tools are filtered based on
the project type. For example:
- Electron projects get Electron MCP tools
- Web frontends (non-Electron) get Puppeteer MCP tools
- CLI projects get neither
Args:
agent_type: One of 'planner', 'coder', 'qa_reviewer', 'qa_fixer'
project_capabilities: Optional dict from detect_project_capabilities()
containing flags like is_electron, is_web_frontend, etc.
Returns:
List of allowed tool names
@@ -79,9 +95,47 @@ def get_allowed_tools(agent_type: str) -> list[str]:
mapping = tool_mappings[agent_type]
tools = mapping["base"] + mapping["auto_claude"]
# Add Electron MCP tools for QA agents only (when enabled)
# This prevents context bloat for coder/planner agents who don't need desktop automation
if agent_type in ("qa_reviewer", "qa_fixer") and is_electron_mcp_enabled():
tools.extend(ELECTRON_TOOLS)
# Add MCP tools for QA agents only, based on project capabilities
if agent_type in ("qa_reviewer", "qa_fixer"):
tools.extend(_get_qa_mcp_tools(project_capabilities))
return tools
def _get_qa_mcp_tools(project_capabilities: dict | None) -> list[str]:
"""
Get the list of MCP tools for QA agents based on project capabilities.
This function determines which MCP tools to include based on:
1. Project type detection (Electron, web frontend, etc.)
2. Environment variables (ELECTRON_MCP_ENABLED)
Args:
project_capabilities: Dict from detect_project_capabilities() or None
Returns:
List of MCP tool names to include
"""
tools = []
# If no capabilities provided, fall back to legacy behavior
# (check env var only)
if project_capabilities is None:
if is_electron_mcp_enabled():
tools.extend(ELECTRON_TOOLS)
return tools
# Project-capability-based tool selection
is_electron = project_capabilities.get("is_electron", False)
is_web_frontend = project_capabilities.get("is_web_frontend", False)
# Electron projects get Electron MCP tools (if enabled)
if is_electron and is_electron_mcp_enabled():
tools.extend(ELECTRON_TOOLS)
# Web frontends (non-Electron) get Puppeteer tools
# Puppeteer is always available, no env var check needed
if is_web_frontend and not is_electron:
tools.extend(PUPPETEER_TOOLS)
return tools
@@ -6,6 +6,9 @@ Code analysis and project scanning tools.
"""
# Import from analyzers subpackage (these are the modular analyzers)
from __future__ import annotations
from .analyzers import (
ProjectAnalyzer as ModularProjectAnalyzer,
)
@@ -27,6 +27,8 @@ This module now serves as a facade to the modular analyzer system in the analyze
All actual implementation is in focused submodules for better maintainability.
"""
from __future__ import annotations
import json
from pathlib import Path
@@ -11,6 +11,8 @@ Main exports:
- analyze_service: Convenience function for service analysis
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
@@ -5,6 +5,8 @@ Base Analyzer Module
Provides common constants, utilities, and base functionality shared across all analyzers.
"""
from __future__ import annotations
import json
from pathlib import Path
@@ -5,6 +5,8 @@ Context Analyzer Package
Contains specialized detectors for comprehensive project context analysis.
"""
from __future__ import annotations
from .api_docs_detector import ApiDocsDetector
from .auth_detector import AuthDetector
from .env_detector import EnvironmentDetector
@@ -8,6 +8,8 @@ Detects API documentation tools and configurations:
- API documentation endpoints
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
@@ -11,6 +11,8 @@ Detects authentication and authorization patterns:
- Auth middleware and decorators
"""
from __future__ import annotations
import re
from pathlib import Path
from typing import Any
@@ -9,6 +9,8 @@ Detects and analyzes environment variables from multiple sources:
- Source code (os.getenv, process.env)
"""
from __future__ import annotations
import re
from pathlib import Path
from typing import Any
@@ -9,6 +9,8 @@ Detects background job and task queue systems:
- Scheduled tasks and cron jobs
"""
from __future__ import annotations
import re
from pathlib import Path
from typing import Any
@@ -10,6 +10,8 @@ Detects database migration tools and configurations:
- Prisma
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
@@ -9,6 +9,8 @@ Detects monitoring and observability setup:
- Logging infrastructure
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
@@ -13,6 +13,8 @@ Detects external service integrations based on dependencies:
- Monitoring tools (Sentry, Datadog, New Relic)
"""
from __future__ import annotations
import re
from pathlib import Path
from typing import Any
@@ -14,6 +14,8 @@ Orchestrates comprehensive project context analysis including:
This module delegates to specialized detectors for clean separation of concerns.
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
@@ -7,6 +7,8 @@ Detects database models and schemas across different ORMs:
- JavaScript/TypeScript: Prisma, TypeORM, Drizzle, Mongoose
"""
from __future__ import annotations
import re
from pathlib import Path
@@ -6,6 +6,8 @@ Detects programming languages, frameworks, and related technologies across diffe
Supports Python, Node.js/TypeScript, Go, Rust, and Ruby frameworks.
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
@@ -6,6 +6,8 @@ Detects application ports from multiple sources including entry points,
environment files, Docker Compose, configuration files, and scripts.
"""
from __future__ import annotations
import re
from pathlib import Path
from typing import Any
@@ -5,6 +5,8 @@ Project Analyzer Module
Analyzes entire projects, detecting monorepo structures, services, infrastructure, and conventions.
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
@@ -9,6 +9,8 @@ Detects API routes and endpoints across different frameworks:
- Rust: Axum, Actix
"""
from __future__ import annotations
import re
from pathlib import Path
@@ -6,6 +6,8 @@ Main ServiceAnalyzer class that coordinates all analysis for a single service/pa
Integrates framework detection, route analysis, database models, and context extraction.
"""
from __future__ import annotations
import re
from pathlib import Path
from typing import Any
@@ -22,6 +22,8 @@ Usage:
print(f"Test Commands: {result.test_commands}")
"""
from __future__ import annotations
import json
import re
from dataclasses import dataclass, field
@@ -9,6 +9,8 @@ Uses the Claude Agent SDK (same as the rest of the system) for extraction.
Falls back to generic insights if extraction fails (never blocks the build).
"""
from __future__ import annotations
import json
import logging
import os
@@ -28,6 +30,8 @@ except ImportError:
ClaudeAgentOptions = None
ClaudeSDKClient = None
from core.auth import ensure_claude_code_oauth_token, get_auth_token
# Default model for insight extraction (fast and cheap)
DEFAULT_EXTRACTION_MODEL = "claude-3-5-haiku-latest"
@@ -40,10 +44,10 @@ MAX_ATTEMPTS_TO_INCLUDE = 3
def is_extraction_enabled() -> bool:
"""Check if insight extraction is enabled."""
# Extraction requires Claude SDK and OAuth token
# Extraction requires Claude SDK and authentication token
if not SDK_AVAILABLE:
return False
if not os.environ.get("CLAUDE_CODE_OAUTH_TOKEN"):
if not get_auth_token():
return False
enabled_str = os.environ.get("INSIGHT_EXTRACTION_ENABLED", "true").lower()
return enabled_str in ("true", "1", "yes")
@@ -348,11 +352,13 @@ async def run_insight_extraction(
logger.warning("Claude SDK not available, skipping insight extraction")
return None
oauth_token = os.environ.get("CLAUDE_CODE_OAUTH_TOKEN")
if not oauth_token:
logger.warning("CLAUDE_CODE_OAUTH_TOKEN not set, skipping insight extraction")
if not get_auth_token():
logger.warning("No authentication token found, skipping insight extraction")
return None
# Ensure SDK can find the token
ensure_claude_code_oauth_token()
model = get_extraction_model()
prompt = _build_extraction_prompt(inputs)
@@ -28,6 +28,9 @@ needed for the detected tech stack, while blocking dangerous operations.
"""
# Re-export all public API from the project module
from __future__ import annotations
from project import (
# Command registries
BASE_COMMANDS,
@@ -21,6 +21,8 @@ Usage:
test_types = classifier.get_required_test_types(spec_dir)
"""
from __future__ import annotations
import json
from dataclasses import dataclass, field
from pathlib import Path
@@ -21,6 +21,8 @@ Usage:
print("Security issues found - blocking QA approval")
"""
from __future__ import annotations
import json
import subprocess
from dataclasses import dataclass, field
@@ -22,6 +22,8 @@ Usage:
print(f"Test command: {result['test_command']}")
"""
from __future__ import annotations
import json
from dataclasses import dataclass, field
from pathlib import Path
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env python3
"""
Analyzer facade module.
Provides backward compatibility for scripts that import from analyzer.py at the root.
Actual implementation is in analysis/analyzer.py.
"""
from analysis.analyzer import (
ProjectAnalyzer,
ServiceAnalyzer,
analyze_project,
analyze_service,
main,
)
__all__ = [
"ServiceAnalyzer",
"ProjectAnalyzer",
"analyze_project",
"analyze_service",
"main",
]
if __name__ == "__main__":
main()
+36
View File
@@ -0,0 +1,36 @@
"""
Auto Claude tools module facade.
Provides MCP tools for agent operations.
Re-exports from agents.tools_pkg for clean imports.
"""
from agents.tools_pkg.models import ( # noqa: F401
ELECTRON_TOOLS,
TOOL_GET_BUILD_PROGRESS,
TOOL_GET_SESSION_CONTEXT,
TOOL_RECORD_DISCOVERY,
TOOL_RECORD_GOTCHA,
TOOL_UPDATE_QA_STATUS,
TOOL_UPDATE_SUBTASK_STATUS,
is_electron_mcp_enabled,
)
from agents.tools_pkg.permissions import get_allowed_tools # noqa: F401
from agents.tools_pkg.registry import ( # noqa: F401
create_auto_claude_mcp_server,
is_tools_available,
)
__all__ = [
"create_auto_claude_mcp_server",
"get_allowed_tools",
"is_tools_available",
"TOOL_UPDATE_SUBTASK_STATUS",
"TOOL_GET_BUILD_PROGRESS",
"TOOL_RECORD_DISCOVERY",
"TOOL_RECORD_GOTCHA",
"TOOL_GET_SESSION_CONTEXT",
"TOOL_UPDATE_QA_STATUS",
"ELECTRON_TOOLS",
"is_electron_mcp_enabled",
]
+216
View File
@@ -0,0 +1,216 @@
"""
Batch Task Management Commands
==============================
Commands for creating and managing multiple tasks from batch files.
"""
import json
from pathlib import Path
from ui import highlight, print_status
def handle_batch_create_command(batch_file: str, project_dir: str) -> bool:
"""
Create multiple tasks from a batch JSON file.
Args:
batch_file: Path to JSON file with task definitions
project_dir: Project directory
Returns:
True if successful
"""
batch_path = Path(batch_file)
if not batch_path.exists():
print_status(f"Batch file not found: {batch_file}", "error")
return False
try:
with open(batch_path) as f:
batch_data = json.load(f)
except json.JSONDecodeError as e:
print_status(f"Invalid JSON in batch file: {e}", "error")
return False
tasks = batch_data.get("tasks", [])
if not tasks:
print_status("No tasks found in batch file", "warning")
return False
print_status(f"Creating {len(tasks)} tasks from batch file", "info")
print()
specs_dir = Path(project_dir) / ".auto-claude" / "specs"
specs_dir.mkdir(parents=True, exist_ok=True)
# Find next spec ID
existing_specs = [d.name for d in specs_dir.iterdir() if d.is_dir()]
next_id = (
max([int(s.split("-")[0]) for s in existing_specs if s[0].isdigit()] or [0]) + 1
)
created_specs = []
for idx, task in enumerate(tasks, 1):
spec_id = f"{next_id:03d}"
task_title = task.get("title", f"Task {idx}")
task_slug = task_title.lower().replace(" ", "-")[:50]
spec_name = f"{spec_id}-{task_slug}"
spec_dir = specs_dir / spec_name
spec_dir.mkdir(exist_ok=True)
# Create requirements.json
requirements = {
"task_description": task.get("description", task_title),
"description": task.get("description", task_title),
"workflow_type": task.get("workflow_type", "feature"),
"services_involved": task.get("services", ["frontend"]),
"priority": task.get("priority", 5),
"complexity_inferred": task.get("complexity", "standard"),
"inferred_from": {},
"created_at": Path(spec_dir).stat().st_mtime,
"estimate": {
"estimated_hours": task.get("estimated_hours", 4.0),
"estimated_days": task.get("estimated_days", 0.5),
},
}
req_file = spec_dir / "requirements.json"
with open(req_file, "w") as f:
json.dump(requirements, f, indent=2, default=str)
created_specs.append(
{
"id": spec_id,
"name": spec_name,
"title": task_title,
"status": "pending_spec_creation",
}
)
print_status(
f"[{idx}/{len(tasks)}] Created {spec_id} - {task_title}", "success"
)
next_id += 1
print()
print_status(f"Created {len(created_specs)} spec(s) successfully", "success")
print()
# Show summary
print(highlight("Next steps:"))
print(" 1. Generate specs: spec_runner.py --continue <spec_id>")
print(" 2. Approve specs and build them")
print(" 3. Run: python run.py --spec <id> to execute")
return True
def handle_batch_status_command(project_dir: str) -> bool:
"""
Show status of all specs in project.
Args:
project_dir: Project directory
Returns:
True if successful
"""
specs_dir = Path(project_dir) / ".auto-claude" / "specs"
if not specs_dir.exists():
print_status("No specs found in project", "warning")
return True
specs = sorted([d for d in specs_dir.iterdir() if d.is_dir()])
if not specs:
print_status("No specs found", "warning")
return True
print_status(f"Found {len(specs)} spec(s)", "info")
print()
for spec_dir in specs:
spec_name = spec_dir.name
req_file = spec_dir / "requirements.json"
status = "unknown"
title = spec_name
if req_file.exists():
try:
with open(req_file) as f:
req = json.load(f)
title = req.get("task_description", title)
except json.JSONDecodeError:
pass
# Determine status
if (spec_dir / "spec.md").exists():
status = "spec_created"
elif (spec_dir / "implementation_plan.json").exists():
status = "building"
elif (spec_dir / "qa_report.md").exists():
status = "qa_approved"
else:
status = "pending_spec"
status_icon = {
"pending_spec": "",
"spec_created": "📋",
"building": "⚙️",
"qa_approved": "",
"unknown": "",
}.get(status, "")
print(f"{status_icon} {spec_name:<40} {title}")
return True
def handle_batch_cleanup_command(project_dir: str, dry_run: bool = True) -> bool:
"""
Clean up completed specs and worktrees.
Args:
project_dir: Project directory
dry_run: If True, show what would be deleted
Returns:
True if successful
"""
specs_dir = Path(project_dir) / ".auto-claude" / "specs"
worktrees_dir = Path(project_dir) / ".worktrees"
if not specs_dir.exists():
print_status("No specs directory found", "info")
return True
# Find completed specs
completed = []
for spec_dir in specs_dir.iterdir():
if spec_dir.is_dir() and (spec_dir / "qa_report.md").exists():
completed.append(spec_dir.name)
if not completed:
print_status("No completed specs to clean up", "info")
return True
print_status(f"Found {len(completed)} completed spec(s)", "info")
if dry_run:
print()
print("Would remove:")
for spec_name in completed:
print(f" - {spec_name}")
wt_path = worktrees_dir / spec_name
if wt_path.exists():
print(f" └─ .worktrees/{spec_name}/")
print()
print("Run with --no-dry-run to actually delete")
return True
@@ -68,7 +68,7 @@ def handle_build_command(
Args:
project_dir: Project root directory
spec_dir: Spec directory path
model: Model to use
model: Model to use (used as default; may be overridden by task_metadata.json)
max_iterations: Maximum number of iterations (None for unlimited)
verbose: Enable verbose output
force_isolated: Force isolated workspace mode
@@ -86,14 +86,29 @@ def handle_build_command(
debug_section,
debug_success,
)
from phase_config import get_phase_model
from qa_loop import run_qa_validation_loop, should_run_qa
from .utils import print_banner, validate_environment
# Get the resolved model for the planning phase (first phase of build)
# This respects task_metadata.json phase configuration from the UI
planning_model = get_phase_model(spec_dir, "planning", model)
coding_model = get_phase_model(spec_dir, "coding", model)
qa_model = get_phase_model(spec_dir, "qa", model)
print_banner()
print(f"\nProject directory: {project_dir}")
print(f"Spec: {spec_dir.name}")
print(f"Model: {model}")
# Show phase-specific models if they differ
if planning_model != coding_model or coding_model != qa_model:
print(
f"Models: Planning={planning_model.split('-')[1] if '-' in planning_model else planning_model}, "
f"Coding={coding_model.split('-')[1] if '-' in coding_model else coding_model}, "
f"QA={qa_model.split('-')[1] if '-' in qa_model else qa_model}"
)
else:
print(f"Model: {planning_model}")
if max_iterations:
print(f"Max iterations: {max_iterations}")
@@ -20,6 +20,11 @@ from ui import (
icon,
)
from .batch_commands import (
handle_batch_cleanup_command,
handle_batch_create_command,
handle_batch_status_command,
)
from .build_commands import handle_build_command
from .followup_commands import handle_followup_command
from .qa_commands import (
@@ -237,6 +242,30 @@ Environment Variables:
help="Base branch for creating worktrees (default: auto-detect or current branch)",
)
# Batch task management
parser.add_argument(
"--batch-create",
type=str,
default=None,
metavar="FILE",
help="Create multiple tasks from a batch JSON file",
)
parser.add_argument(
"--batch-status",
action="store_true",
help="Show status of all specs in the project",
)
parser.add_argument(
"--batch-cleanup",
action="store_true",
help="Clean up completed specs (dry-run by default)",
)
parser.add_argument(
"--no-dry-run",
action="store_true",
help="Actually delete files in cleanup (not just preview)",
)
return parser.parse_args()
@@ -283,6 +312,19 @@ def main() -> None:
handle_cleanup_worktrees_command(project_dir)
return
# Handle batch commands
if args.batch_create:
handle_batch_create_command(args.batch_create, str(project_dir))
return
if args.batch_status:
handle_batch_status_command(str(project_dir))
return
if args.batch_cleanup:
handle_batch_cleanup_command(str(project_dir), dry_run=not args.no_dry_run)
return
# Require --spec if not listing
if not args.spec:
print_banner()
@@ -311,7 +353,9 @@ def main() -> None:
if args.merge_preview:
from cli.workspace_commands import handle_merge_preview_command
result = handle_merge_preview_command(project_dir, spec_dir.name)
result = handle_merge_preview_command(
project_dir, spec_dir.name, base_branch=args.base_branch
)
# Output as JSON for the UI to parse
import json
@@ -320,7 +364,10 @@ def main() -> None:
if args.merge:
success = handle_merge_command(
project_dir, spec_dir.name, no_commit=args.no_commit
project_dir,
spec_dir.name,
no_commit=args.no_commit,
base_branch=args.base_branch,
)
if not success:
sys.exit(1)
@@ -91,7 +91,12 @@ def handle_qa_command(
if not validate_environment(spec_dir):
sys.exit(1)
if not should_run_qa(spec_dir):
# Check if there's pending human feedback that needs to be processed
# Human feedback takes priority over "already approved" status
fix_request_file = spec_dir / "QA_FIX_REQUEST.md"
has_human_feedback = fix_request_file.exists()
if not should_run_qa(spec_dir) and not has_human_feedback:
if is_qa_approved(spec_dir):
print("\n✅ Build already approved by QA.")
else:
@@ -100,6 +105,9 @@ def handle_qa_command(
print("Complete all subtasks before running QA validation.")
return
if has_human_feedback:
print("\n📝 Human feedback detected - processing fix request...")
try:
approved = asyncio.run(
run_qa_validation_loop(
@@ -93,14 +93,76 @@ def list_specs(project_dir: Path, dev_mode: bool = False) -> list[dict]:
return specs
def print_specs_list(project_dir: Path, dev_mode: bool = False) -> None:
"""Print a formatted list of all specs."""
def print_specs_list(
project_dir: Path, dev_mode: bool = False, auto_create: bool = True
) -> None:
"""Print a formatted list of all specs.
Args:
project_dir: Project root directory
dev_mode: If True, use dev/auto-claude/specs/
auto_create: If True and no specs exist, automatically launch spec creation
"""
import subprocess
specs = list_specs(project_dir, dev_mode)
if not specs:
print("\nNo specs found.")
print("\nCreate your first spec:")
print(" claude /spec")
if auto_create:
# Get the backend directory and find spec_runner.py
backend_dir = Path(__file__).parent.parent
spec_runner = backend_dir / "runners" / "spec_runner.py"
# Find Python executable - use current interpreter
python_path = sys.executable
if spec_runner.exists() and python_path:
# Quick prompt for task description
print("\n" + "=" * 60)
print(" QUICK START")
print("=" * 60)
print("\nWhat do you want to build?")
print(
"(Enter a brief description, or press Enter for interactive mode)\n"
)
try:
task = input("> ").strip()
except (EOFError, KeyboardInterrupt):
print("\nCancelled.")
return
if task:
# Direct mode: create spec and start building
print(f"\nStarting build for: {task}\n")
subprocess.run(
[
python_path,
str(spec_runner),
"--task",
task,
"--complexity",
"simple",
"--auto-approve",
],
cwd=project_dir,
)
else:
# Interactive mode
print("\nLaunching interactive mode...\n")
subprocess.run(
[python_path, str(spec_runner), "--interactive"],
cwd=project_dir,
)
return
else:
print("\nCreate your first spec:")
print(" python runners/spec_runner.py --interactive")
else:
print("\nCreate your first spec:")
print(" python runners/spec_runner.py --interactive")
return
print("\n" + "=" * 70)
@@ -14,6 +14,7 @@ _PARENT_DIR = Path(__file__).parent.parent
if str(_PARENT_DIR) not in sys.path:
sys.path.insert(0, str(_PARENT_DIR))
from core.auth import get_auth_token, get_auth_token_source
from dotenv import load_dotenv
from graphiti_config import get_graphiti_status
from linear_integration import LinearManager
@@ -95,14 +96,24 @@ def validate_environment(spec_dir: Path) -> bool:
"""
valid = True
# Check for Claude Code OAuth token
if not os.environ.get("CLAUDE_CODE_OAUTH_TOKEN"):
print("Error: CLAUDE_CODE_OAUTH_TOKEN environment variable not set")
print("\nGet your OAuth token by running:")
# Check for OAuth token (API keys are not supported)
if not get_auth_token():
print("Error: No OAuth token found")
print("\nAuto Claude requires Claude Code OAuth authentication.")
print("Direct API keys (ANTHROPIC_API_KEY) are not supported.")
print("\nTo authenticate, run:")
print(" claude setup-token")
print("\nThen set it:")
print(" export CLAUDE_CODE_OAUTH_TOKEN='your-token-here'")
valid = False
else:
# Show which auth source is being used
source = get_auth_token_source()
if source:
print(f"Auth: {source}")
# Show custom base URL if set
base_url = os.environ.get("ANTHROPIC_BASE_URL")
if base_url:
print(f"API Endpoint: {base_url}")
# Check for spec.md in spec directory
spec_file = spec_dir / "spec.md"
@@ -134,7 +145,8 @@ def validate_environment(spec_dir: Path) -> bool:
if graphiti_status["available"]:
print("Graphiti memory: ENABLED")
print(f" Database: {graphiti_status['database']}")
print(f" Host: {graphiti_status['host']}:{graphiti_status['port']}")
if graphiti_status.get("db_path"):
print(f" Path: {graphiti_status['db_path']}")
elif graphiti_status["enabled"]:
print(
f"Graphiti memory: CONFIGURED but unavailable ({graphiti_status['reason']})"
@@ -173,9 +185,9 @@ def get_project_dir(provided_dir: Path | None) -> Path:
project_dir = Path.cwd()
# Auto-detect if running from within auto-claude directory (the source code)
if project_dir.name == "auto-claude" and (project_dir / "run.py").exists():
# Running from within auto-claude/ source directory, go up 1 level
project_dir = project_dir.parent
# Auto-detect if running from within apps/backend directory (the source code)
if project_dir.name == "backend" and (project_dir / "run.py").exists():
# Running from within apps/backend/ source directory, go up 2 levels
project_dir = project_dir.parent.parent
return project_dir
@@ -5,6 +5,7 @@ Workspace Commands
CLI commands for workspace management (merge, review, discard, list, cleanup)
"""
import subprocess
import sys
from pathlib import Path
@@ -29,6 +30,106 @@ from workspace import (
from .utils import print_banner
def _detect_default_branch(project_dir: Path) -> str:
"""
Detect the default branch for the repository.
This matches the logic in WorktreeManager._detect_base_branch() to ensure
we compare against the same branch that worktrees are created from.
Priority order:
1. DEFAULT_BRANCH environment variable
2. Auto-detect main/master (if they exist)
3. Fall back to "main" as final default
Args:
project_dir: Project root directory
Returns:
The detected default branch name
"""
import os
# 1. Check for DEFAULT_BRANCH env var
env_branch = os.getenv("DEFAULT_BRANCH")
if env_branch:
# Verify the branch exists
result = subprocess.run(
["git", "rev-parse", "--verify", env_branch],
cwd=project_dir,
capture_output=True,
text=True,
)
if result.returncode == 0:
return env_branch
# 2. Auto-detect main/master
for branch in ["main", "master"]:
result = subprocess.run(
["git", "rev-parse", "--verify", branch],
cwd=project_dir,
capture_output=True,
text=True,
)
if result.returncode == 0:
return branch
# 3. Fall back to "main" as final default
return "main"
def _get_changed_files_from_git(
worktree_path: Path, base_branch: str = "main"
) -> list[str]:
"""
Get list of changed files from git diff between base branch and HEAD.
Args:
worktree_path: Path to the worktree
base_branch: Base branch to compare against (default: main)
Returns:
List of changed file paths
"""
try:
result = subprocess.run(
["git", "diff", "--name-only", f"{base_branch}...HEAD"],
cwd=worktree_path,
capture_output=True,
text=True,
check=True,
)
files = [f.strip() for f in result.stdout.strip().split("\n") if f.strip()]
return files
except subprocess.CalledProcessError as e:
# Log the failure before trying fallback
debug_warning(
"workspace_commands",
f"git diff (three-dot) failed: returncode={e.returncode}, "
f"stderr={e.stderr.strip() if e.stderr else 'N/A'}",
)
# Fallback: try without the three-dot notation
try:
result = subprocess.run(
["git", "diff", "--name-only", base_branch, "HEAD"],
cwd=worktree_path,
capture_output=True,
text=True,
check=True,
)
files = [f.strip() for f in result.stdout.strip().split("\n") if f.strip()]
return files
except subprocess.CalledProcessError as e:
# Log the failure before returning empty list
debug_warning(
"workspace_commands",
f"git diff (two-arg) failed: returncode={e.returncode}, "
f"stderr={e.stderr.strip() if e.stderr else 'N/A'}",
)
return []
# Import debug utilities
try:
from debug import (
@@ -43,24 +144,31 @@ try:
except ImportError:
def debug(*args, **kwargs):
"""Fallback debug function when debug module is not available."""
pass
def debug_detailed(*args, **kwargs):
"""Fallback debug_detailed function when debug module is not available."""
pass
def debug_verbose(*args, **kwargs):
"""Fallback debug_verbose function when debug module is not available."""
pass
def debug_success(*args, **kwargs):
"""Fallback debug_success function when debug module is not available."""
pass
def debug_error(*args, **kwargs):
"""Fallback debug_error function when debug module is not available."""
pass
def debug_section(*args, **kwargs):
"""Fallback debug_section function when debug module is not available."""
pass
def is_debug_enabled():
"""Fallback is_debug_enabled function when debug module is not available."""
return False
@@ -68,7 +176,10 @@ MODULE = "cli.workspace_commands"
def handle_merge_command(
project_dir: Path, spec_name: str, no_commit: bool = False
project_dir: Path,
spec_name: str,
no_commit: bool = False,
base_branch: str | None = None,
) -> bool:
"""
Handle the --merge command.
@@ -77,11 +188,90 @@ def handle_merge_command(
project_dir: Project root directory
spec_name: Name of the spec
no_commit: If True, stage changes but don't commit
base_branch: Branch to compare against (default: auto-detect)
Returns:
True if merge succeeded, False otherwise
"""
return merge_existing_build(project_dir, spec_name, no_commit=no_commit)
success = merge_existing_build(
project_dir, spec_name, no_commit=no_commit, base_branch=base_branch
)
# Generate commit message suggestion if staging succeeded (no_commit mode)
if success and no_commit:
_generate_and_save_commit_message(project_dir, spec_name)
return success
def _generate_and_save_commit_message(project_dir: Path, spec_name: str) -> None:
"""
Generate a commit message suggestion and save it for the UI.
Args:
project_dir: Project root directory
spec_name: Name of the spec
"""
try:
from commit_message import generate_commit_message_sync
# Get diff summary for context
diff_summary = ""
files_changed = []
try:
result = subprocess.run(
["git", "diff", "--staged", "--stat"],
cwd=project_dir,
capture_output=True,
text=True,
)
if result.returncode == 0:
diff_summary = result.stdout.strip()
# Get list of changed files
result = subprocess.run(
["git", "diff", "--staged", "--name-only"],
cwd=project_dir,
capture_output=True,
text=True,
)
if result.returncode == 0:
files_changed = [
f.strip() for f in result.stdout.strip().split("\n") if f.strip()
]
except Exception as e:
debug_warning(MODULE, f"Could not get diff summary: {e}")
# Generate commit message
debug(MODULE, "Generating commit message suggestion...")
commit_message = generate_commit_message_sync(
project_dir=project_dir,
spec_name=spec_name,
diff_summary=diff_summary,
files_changed=files_changed,
)
if commit_message:
# Save to spec directory for UI to read
spec_dir = project_dir / ".auto-claude" / "specs" / spec_name
if not spec_dir.exists():
spec_dir = project_dir / "auto-claude" / "specs" / spec_name
if spec_dir.exists():
commit_msg_file = spec_dir / "suggested_commit_message.txt"
commit_msg_file.write_text(commit_message, encoding="utf-8")
debug_success(
MODULE, f"Saved commit message suggestion to {commit_msg_file}"
)
else:
debug_warning(MODULE, f"Spec directory not found: {spec_dir}")
else:
debug_warning(MODULE, "No commit message generated")
except ImportError:
debug_warning(MODULE, "commit_message module not available")
except Exception as e:
debug_warning(MODULE, f"Failed to generate commit message: {e}")
def handle_review_command(project_dir: Path, spec_name: str) -> None:
@@ -324,7 +514,11 @@ def _check_git_merge_conflicts(project_dir: Path, spec_name: str) -> dict:
return result
def handle_merge_preview_command(project_dir: Path, spec_name: str) -> dict:
def handle_merge_preview_command(
project_dir: Path,
spec_name: str,
base_branch: str | None = None,
) -> dict:
"""
Handle the --merge-preview command.
@@ -339,6 +533,7 @@ def handle_merge_preview_command(project_dir: Path, spec_name: str) -> dict:
Args:
project_dir: Project root directory
spec_name: Name of the spec
base_branch: Branch the task was created from (for comparison). If None, auto-detect.
Returns:
Dictionary with preview information
@@ -381,6 +576,23 @@ def handle_merge_preview_command(project_dir: Path, spec_name: str) -> dict:
# First, check for git-level conflicts (diverged branches)
git_conflicts = _check_git_merge_conflicts(project_dir, spec_name)
# Determine the task's source branch (where the task was created from)
# Use provided base_branch (from task metadata), or fall back to detected default
task_source_branch = base_branch
if not task_source_branch:
# Auto-detect the default branch (main/master) that worktrees are typically created from
task_source_branch = _detect_default_branch(project_dir)
# Get actual changed files from git diff (this is the authoritative count)
all_changed_files = _get_changed_files_from_git(
worktree_path, task_source_branch
)
debug(
MODULE,
f"Git diff against '{task_source_branch}' shows {len(all_changed_files)} changed files",
changed_files=all_changed_files[:10], # Log first 10
)
debug(MODULE, "Initializing MergeOrchestrator for preview...")
# Initialize the orchestrator
@@ -391,8 +603,15 @@ def handle_merge_preview_command(project_dir: Path, spec_name: str) -> dict:
)
# Refresh evolution data from the worktree
debug(MODULE, f"Refreshing evolution data from worktree: {worktree_path}")
orchestrator.evolution_tracker.refresh_from_git(spec_name, worktree_path)
# Compare against the task's source branch (where the task was created from)
debug(
MODULE,
f"Refreshing evolution data from worktree: {worktree_path}",
task_source_branch=task_source_branch,
)
orchestrator.evolution_tracker.refresh_from_git(
spec_name, worktree_path, target_branch=task_source_branch
)
# Get merge preview (semantic conflicts between parallel tasks)
debug(MODULE, "Generating merge preview...")
@@ -456,9 +675,15 @@ def handle_merge_preview_command(project_dir: Path, spec_name: str) -> dict:
f for f in git_conflicts.get("conflicting_files", []) if not is_lock_file(f)
]
# Use git diff file count as the authoritative totalFiles count
# The semantic tracker may not track all files (e.g., test files, config files)
# but we want to show the user all files that will be merged
total_files_from_git = len(all_changed_files)
result = {
"success": True,
"files": preview.get("files_to_merge", []),
# Use git diff files as the authoritative list of files to merge
"files": all_changed_files,
"conflicts": conflicts,
"gitConflicts": {
"hasConflicts": git_conflicts["has_conflicts"]
@@ -470,7 +695,8 @@ def handle_merge_preview_command(project_dir: Path, spec_name: str) -> dict:
"specBranch": git_conflicts["spec_branch"],
},
"summary": {
"totalFiles": summary.get("total_files", 0),
# Use git diff count, not semantic tracker count
"totalFiles": total_files_from_git,
"conflictFiles": conflict_files,
"totalConflicts": total_conflicts,
"autoMergeable": summary.get("auto_mergeable", 0),
@@ -485,6 +711,8 @@ def handle_merge_preview_command(project_dir: Path, spec_name: str) -> dict:
MODULE,
"Merge preview complete",
total_files=result["summary"]["totalFiles"],
total_files_source="git_diff",
semantic_tracked_files=summary.get("total_files", 0),
total_conflicts=result["summary"]["totalConflicts"],
has_git_conflicts=git_conflicts["has_conflicts"],
auto_mergeable=result["summary"]["autoMergeable"],
+25
View File
@@ -0,0 +1,25 @@
"""
Claude client module facade.
Provides Claude API client utilities.
Uses lazy imports to avoid circular dependencies.
"""
def __getattr__(name):
"""Lazy import to avoid circular imports with auto_claude_tools."""
from core import client as _client
return getattr(_client, name)
def create_client(*args, **kwargs):
"""Create a Claude client instance."""
from core.client import create_client as _create_client
return _create_client(*args, **kwargs)
__all__ = [
"create_client",
]
+373
View File
@@ -0,0 +1,373 @@
"""
Commit Message Generator
========================
Generates high-quality commit messages using Claude Haiku.
Features:
- Conventional commits format (feat/fix/refactor/etc)
- GitHub issue references (Fixes #123)
- Context-aware descriptions from spec metadata
"""
from __future__ import annotations
import asyncio
import json
import logging
import re
import sys
from pathlib import Path
from typing import TYPE_CHECKING
if TYPE_CHECKING:
pass
logger = logging.getLogger(__name__)
# Map task categories to conventional commit types
CATEGORY_TO_COMMIT_TYPE = {
"feature": "feat",
"bug_fix": "fix",
"bug": "fix",
"refactoring": "refactor",
"refactor": "refactor",
"documentation": "docs",
"docs": "docs",
"testing": "test",
"test": "test",
"performance": "perf",
"perf": "perf",
"security": "security",
"chore": "chore",
"style": "style",
"ci": "ci",
"build": "build",
}
SYSTEM_PROMPT = """You are a Git expert who writes clear, concise commit messages following conventional commits format.
Rules:
1. First line: type(scope): description (max 72 chars total)
2. Leave blank line after first line
3. Body: 1-3 sentences explaining WHAT changed and WHY
4. If GitHub issue number provided, end with "Fixes #N" on its own line
5. Be specific about the changes, not generic
6. Use imperative mood ("Add feature" not "Added feature")
Types: feat, fix, refactor, docs, test, perf, chore, style, ci, build
Example output:
feat(auth): add OAuth2 login flow
Implement OAuth2 authentication with Google and GitHub providers.
Add token refresh logic and secure storage.
Fixes #42"""
def _get_spec_context(spec_dir: Path) -> dict:
"""
Extract context from spec files for commit message generation.
Returns dict with:
- title: Feature/task title
- category: Task category (feature, bug_fix, etc)
- description: Brief description
- github_issue: GitHub issue number if linked
"""
context = {
"title": "",
"category": "chore",
"description": "",
"github_issue": None,
}
# Try to read spec.md for title
spec_file = spec_dir / "spec.md"
if spec_file.exists():
try:
content = spec_file.read_text(encoding="utf-8")
# Extract title from first H1 or H2
title_match = re.search(r"^#+ (.+)$", content, re.MULTILINE)
if title_match:
context["title"] = title_match.group(1).strip()
# Look for overview/description section
overview_match = re.search(
r"## Overview\s*\n(.+?)(?=\n##|\Z)", content, re.DOTALL
)
if overview_match:
context["description"] = overview_match.group(1).strip()[:200]
except Exception as e:
logger.debug(f"Could not read spec.md: {e}")
# Try to read requirements.json for metadata
req_file = spec_dir / "requirements.json"
if req_file.exists():
try:
req_data = json.loads(req_file.read_text(encoding="utf-8"))
if not context["title"] and req_data.get("feature"):
context["title"] = req_data["feature"]
if req_data.get("workflow_type"):
context["category"] = req_data["workflow_type"]
if req_data.get("task_description") and not context["description"]:
context["description"] = req_data["task_description"][:200]
except Exception as e:
logger.debug(f"Could not read requirements.json: {e}")
# Try to read implementation_plan.json for GitHub issue
plan_file = spec_dir / "implementation_plan.json"
if plan_file.exists():
try:
plan_data = json.loads(plan_file.read_text(encoding="utf-8"))
# Check for GitHub metadata
metadata = plan_data.get("metadata", {})
if metadata.get("githubIssueNumber"):
context["github_issue"] = metadata["githubIssueNumber"]
# Fallback title
if not context["title"]:
context["title"] = plan_data.get("feature") or plan_data.get(
"title", ""
)
except Exception as e:
logger.debug(f"Could not read implementation_plan.json: {e}")
return context
def _build_prompt(
spec_context: dict,
diff_summary: str,
files_changed: list[str],
) -> str:
"""Build the prompt for Claude."""
commit_type = CATEGORY_TO_COMMIT_TYPE.get(
spec_context.get("category", "").lower(), "chore"
)
github_ref = ""
if spec_context.get("github_issue"):
github_ref = f"\nGitHub Issue: #{spec_context['github_issue']} (include 'Fixes #{spec_context['github_issue']}' at the end)"
# Truncate file list if too long
if len(files_changed) > 20:
files_display = (
"\n".join(files_changed[:20])
+ f"\n... and {len(files_changed) - 20} more files"
)
else:
files_display = (
"\n".join(files_changed) if files_changed else "(no files listed)"
)
prompt = f"""Generate a commit message for this change.
Task: {spec_context.get("title", "Unknown task")}
Type: {commit_type}
Files changed: {len(files_changed)}
{github_ref}
Description: {spec_context.get("description", "No description available")}
Changed files:
{files_display}
Diff summary:
{diff_summary[:2000] if diff_summary else "(no diff available)"}
Generate ONLY the commit message, nothing else. Follow the format exactly:
type(scope): short description
Body explaining changes.
Fixes #N (if applicable)"""
return prompt
async def _call_claude_haiku(prompt: str) -> str:
"""Call Claude Haiku with low thinking for fast commit message generation."""
from core.auth import ensure_claude_code_oauth_token, get_auth_token
if not get_auth_token():
logger.warning("No authentication token found")
return ""
ensure_claude_code_oauth_token()
try:
from claude_agent_sdk import ClaudeAgentOptions, ClaudeSDKClient
except ImportError:
logger.warning("claude_agent_sdk not installed")
return ""
client = ClaudeSDKClient(
options=ClaudeAgentOptions(
model="claude-haiku-4-5-20251001",
system_prompt=SYSTEM_PROMPT,
allowed_tools=[],
max_turns=1,
max_thinking_tokens=1024, # Low thinking for speed
)
)
try:
async with client:
await client.query(prompt)
response_text = ""
async for msg in client.receive_response():
msg_type = type(msg).__name__
if msg_type == "AssistantMessage" and hasattr(msg, "content"):
for block in msg.content:
if hasattr(block, "text"):
response_text += block.text
logger.info(f"Generated commit message: {len(response_text)} chars")
return response_text.strip()
except Exception as e:
logger.error(f"Claude SDK call failed: {e}")
print(f" [WARN] Commit message generation failed: {e}", file=sys.stderr)
return ""
def generate_commit_message_sync(
project_dir: Path,
spec_name: str,
diff_summary: str = "",
files_changed: list[str] | None = None,
github_issue: int | None = None,
) -> str:
"""
Generate a commit message synchronously.
Args:
project_dir: Project root directory
spec_name: Spec identifier (e.g., "001-add-feature")
diff_summary: Git diff stat or summary
files_changed: List of changed file paths
github_issue: GitHub issue number if linked (overrides spec metadata)
Returns:
Generated commit message or fallback message
"""
# Find spec directory
spec_dir = project_dir / ".auto-claude" / "specs" / spec_name
if not spec_dir.exists():
# Try alternative location
spec_dir = project_dir / "auto-claude" / "specs" / spec_name
# Get context from spec files
spec_context = _get_spec_context(spec_dir) if spec_dir.exists() else {}
# Override with provided github_issue
if github_issue:
spec_context["github_issue"] = github_issue
# Build prompt
prompt = _build_prompt(
spec_context,
diff_summary,
files_changed or [],
)
# Call Claude
try:
# Check if we're already in an async context
try:
loop = asyncio.get_running_loop()
except RuntimeError:
loop = None
if loop and loop.is_running():
# Already in an async context - run in a new thread
# Use lambda to ensure coroutine is created inside the worker thread
import concurrent.futures
with concurrent.futures.ThreadPoolExecutor() as pool:
result = pool.submit(
lambda: asyncio.run(_call_claude_haiku(prompt))
).result()
else:
result = asyncio.run(_call_claude_haiku(prompt))
if result:
return result
except Exception as e:
logger.error(f"Failed to generate commit message: {e}")
# Fallback message
commit_type = CATEGORY_TO_COMMIT_TYPE.get(
spec_context.get("category", "").lower(), "chore"
)
title = spec_context.get("title", spec_name)
fallback = f"{commit_type}: {title}"
if github_issue or spec_context.get("github_issue"):
issue_num = github_issue or spec_context.get("github_issue")
fallback += f"\n\nFixes #{issue_num}"
return fallback
async def generate_commit_message(
project_dir: Path,
spec_name: str,
diff_summary: str = "",
files_changed: list[str] | None = None,
github_issue: int | None = None,
) -> str:
"""
Generate a commit message asynchronously.
Args:
project_dir: Project root directory
spec_name: Spec identifier (e.g., "001-add-feature")
diff_summary: Git diff stat or summary
files_changed: List of changed file paths
github_issue: GitHub issue number if linked (overrides spec metadata)
Returns:
Generated commit message or fallback message
"""
# Find spec directory
spec_dir = project_dir / ".auto-claude" / "specs" / spec_name
if not spec_dir.exists():
spec_dir = project_dir / "auto-claude" / "specs" / spec_name
# Get context from spec files
spec_context = _get_spec_context(spec_dir) if spec_dir.exists() else {}
# Override with provided github_issue
if github_issue:
spec_context["github_issue"] = github_issue
# Build prompt
prompt = _build_prompt(
spec_context,
diff_summary,
files_changed or [],
)
# Call Claude
try:
result = await _call_claude_haiku(prompt)
if result:
return result
except Exception as e:
logger.error(f"Failed to generate commit message: {e}")
# Fallback message
commit_type = CATEGORY_TO_COMMIT_TYPE.get(
spec_context.get("category", "").lower(), "chore"
)
title = spec_context.get("title", spec_name)
fallback = f"{commit_type}: {title}"
if github_issue or spec_context.get("github_issue"):
issue_num = github_issue or spec_context.get("github_issue")
fallback += f"\n\nFixes #{issue_num}"
return fallback

Some files were not shown because too many files have changed in this diff Show More