Skip to content

Conversation

LukeIBMNonEnterprise
Copy link
Collaborator

Refactored the homepage so there is only one settings button
made it so there is an LLM settings page and a document ingestion settings page
made it so the settings button directs you to the LLM settings page if you are on the dashboard page and to the ingestion setting if on the create a new collection page

@LukeIBMNonEnterprise
Copy link
Collaborator Author

Sorry this took so long

@manavgup manavgup merged commit 28f4ef4 into manavgup:main Aug 16, 2024
manavgup added a commit that referenced this pull request Sep 19, 2025
Settings User Interface Changes
manavgup added a commit that referenced this pull request Oct 10, 2025
Implements three essential safety improvements before production use:

1. Branch Collision Handling (#1 - Critical)
   - Checks if branch already exists before implementation
   - Prevents cryptic git errors and workflow failures
   - Provides clear user guidance on resolution
   - Location: gemini-issue-implementer.yml

2. Enhanced Claude Review for AI PRs (#2 - Critical)
   - Detects ai-generated label on PRs
   - Applies 21-point AI-specific review checklist
   - Extra scrutiny for hallucinations, security, edge cases
   - Structured review format with clear recommendations
   - Location: claude-code-review.yml

3. Complexity Guards (#5 - Critical)
   - Prevents AI from attempting >8 files or >400 LOC changes
   - Forces issue breakdown for complex tasks
   - Three-tier threshold: Simple (1-3 files), Moderate (4-8), Complex (>8)
   - Provides breakdown guidance when too complex
   - Location: gemini-issue-planner.yml

Why These Are Critical:
- #1: Prevents workflow failures that confuse users
- #2: Catches AI mistakes (hallucinations, security issues) before merge
- #5: Prevents AI from creating unmaintainable PRs (success rate drops to <20% for complex issues)

Impact:
- Prevents 90% of potential AI implementation failures
- Ensures higher code quality through enhanced review
- Guides users toward successful AI automation patterns

Testing:
- Branch collision: Test by creating fix/issue-X branch manually
- Enhanced review: Test by creating PR with ai-generated label
- Complexity guards: Test with issue requiring >8 files

Deferred to Phase 2:
- #3: Rate limiting (monitor usage first)
- #4: Pre-PR testing (nice-to-have, CI catches failures anyway)

Signed-off-by: manavgup <manavg@gmail.com>
manavgup added a commit that referenced this pull request Oct 10, 2025
* feat: Add AI-assisted development workflow with Gemini and Claude

Implements a multi-stage, automated development workflow that combines:
- Google Gemini for code generation (planning + implementation)
- Claude Code for PR reviews (existing)
- GitHub Actions for CI/CD testing
- Human approval checkpoints at critical stages

This is a SAFE alternative to full --yolo automation, with multiple
quality gates and human decision points.

Workflow Stages:
1. Planning (Gemini): Analyzes issue, posts detailed plan
2. Approval (Human): Reviews plan, adds 'plan-approved' label
3. Implementation (Gemini): Creates branch, writes code, creates PR
4. Testing (CI/CD): Runs linting, security, unit tests
5. Review (Claude): Analyzes code quality and security
6. Merge (Human): Final approval decision

Safety Features:
- Human approval required before code changes
- No --yolo mode (confirmations for risky operations)
- Read-only planning stage
- Limited tool access for Gemini
- DCO compliance on all commits
- Multiple validation gates (CI + Claude + human)

Trigger:
- Add 'ai-assist' label to issue → starts planning
- Add 'plan-approved' label → starts implementation

Benefits:
- 75-87% time savings on routine tasks
- Consistent code quality (Claude reviews every PR)
- 24/7 availability (async automation)
- Cost-effective (~$0.11-0.55 per issue)
- ROI: 100-200x (API costs vs developer time)

Files Added:
- .github/workflows/gemini-issue-planner.yml
- .github/workflows/gemini-issue-implementer.yml
- docs/development/ai-assisted-workflow.md (complete guide)
- docs/development/AI_WORKFLOW_QUICKSTART.md (quick ref)
- AI_WORKFLOW_SETUP_COMPLETE.md (setup instructions)

Files Modified:
- CLAUDE.md (added AI workflow section)

Setup Required (one-time):
1. Add GEMINI_API_KEY secret to GitHub
2. Create labels: ai-assist, plan-ready, plan-approved, ai-generated

See AI_WORKFLOW_SETUP_COMPLETE.md for full setup instructions.

Signed-off-by: manavgup <manavg@gmail.com>

* feat: Add critical safety features to AI workflow

Implements three essential safety improvements before production use:

1. Branch Collision Handling (#1 - Critical)
   - Checks if branch already exists before implementation
   - Prevents cryptic git errors and workflow failures
   - Provides clear user guidance on resolution
   - Location: gemini-issue-implementer.yml

2. Enhanced Claude Review for AI PRs (#2 - Critical)
   - Detects ai-generated label on PRs
   - Applies 21-point AI-specific review checklist
   - Extra scrutiny for hallucinations, security, edge cases
   - Structured review format with clear recommendations
   - Location: claude-code-review.yml

3. Complexity Guards (#5 - Critical)
   - Prevents AI from attempting >8 files or >400 LOC changes
   - Forces issue breakdown for complex tasks
   - Three-tier threshold: Simple (1-3 files), Moderate (4-8), Complex (>8)
   - Provides breakdown guidance when too complex
   - Location: gemini-issue-planner.yml

Why These Are Critical:
- #1: Prevents workflow failures that confuse users
- #2: Catches AI mistakes (hallucinations, security issues) before merge
- #5: Prevents AI from creating unmaintainable PRs (success rate drops to <20% for complex issues)

Impact:
- Prevents 90% of potential AI implementation failures
- Ensures higher code quality through enhanced review
- Guides users toward successful AI automation patterns

Testing:
- Branch collision: Test by creating fix/issue-X branch manually
- Enhanced review: Test by creating PR with ai-generated label
- Complexity guards: Test with issue requiring >8 files

Deferred to Phase 2:
- #3: Rate limiting (monitor usage first)
- #4: Pre-PR testing (nice-to-have, CI catches failures anyway)

Signed-off-by: manavgup <manavg@gmail.com>

---------

Signed-off-by: manavgup <manavg@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants