[PR #101] [CLOSED] feat(tasks): add native task provider for Claude Code backend #133

Closed
opened 2026-02-27 10:22:22 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mikeyobrien/ralph-orchestrator/pull/101
Author: @mikeyobrien
Created: 1/24/2026
Status: Closed

Base: mainHead: native-task-provider


📝 Commits (1)

  • eef7f74 feat(tasks): add native task provider for Claude Code backend

📊 Changes

8 files changed (+681 additions, -44 deletions)

View changed files

📝 AGENTS.md (+25 -1)
📝 crates/ralph-core/src/config.rs (+56 -0)
📝 crates/ralph-core/src/event_loop/mod.rs (+19 -1)
📝 crates/ralph-core/src/hatless_ralph.rs (+329 -41)
📝 crates/ralph-core/src/lib.rs (+3 -1)
crates/ralph-core/src/task_provider.rs (+211 -0)
📝 crates/ralph-core/tests/event_loop_ralph.rs (+2 -0)
📝 docs/concepts/memories-and-tasks.md (+36 -0)

📄 Description

Summary

  • Adds configurable task provider (native, local, or auto) for flexible task management
  • When using Claude Code backend with native mode, Ralph uses Claude Code's built-in task tools (TaskCreate, TaskUpdate, TaskList, TaskGet) instead of ralph tools task CLI commands
  • Auto mode (default) detects the backend and chooses the appropriate provider

Changes

  • New task_provider module with TaskProvider enum and resolve_task_provider() function
  • Extended TasksConfig with provider field (default: "auto")
  • Updated HatlessRalph to generate appropriate task instructions based on provider
  • Updated EventLoop to trust agent for task completion verification in native mode
  • Documentation updates in AGENTS.md and docs/concepts/memories-and-tasks.md

Configuration

tasks:
  enabled: true
  provider: "auto"  # "native" | "local" | "auto" (default)

Test plan

  • Unit tests for task_provider module (13 tests)
  • Config parsing tests for new provider field (4 tests)
  • HatlessRalph tests for task provider integration (3 tests)
  • Pre-commit hooks pass (fmt + clippy)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mikeyobrien/ralph-orchestrator/pull/101 **Author:** [@mikeyobrien](https://github.com/mikeyobrien) **Created:** 1/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `native-task-provider` --- ### 📝 Commits (1) - [`eef7f74`](https://github.com/mikeyobrien/ralph-orchestrator/commit/eef7f740f57d816aeeaa05480a0a185e30038b7a) feat(tasks): add native task provider for Claude Code backend ### 📊 Changes **8 files changed** (+681 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `AGENTS.md` (+25 -1) 📝 `crates/ralph-core/src/config.rs` (+56 -0) 📝 `crates/ralph-core/src/event_loop/mod.rs` (+19 -1) 📝 `crates/ralph-core/src/hatless_ralph.rs` (+329 -41) 📝 `crates/ralph-core/src/lib.rs` (+3 -1) ➕ `crates/ralph-core/src/task_provider.rs` (+211 -0) 📝 `crates/ralph-core/tests/event_loop_ralph.rs` (+2 -0) 📝 `docs/concepts/memories-and-tasks.md` (+36 -0) </details> ### 📄 Description ## Summary - Adds configurable task provider (`native`, `local`, or `auto`) for flexible task management - When using Claude Code backend with native mode, Ralph uses Claude Code's built-in task tools (TaskCreate, TaskUpdate, TaskList, TaskGet) instead of `ralph tools task` CLI commands - Auto mode (default) detects the backend and chooses the appropriate provider ## Changes - New `task_provider` module with `TaskProvider` enum and `resolve_task_provider()` function - Extended `TasksConfig` with `provider` field (default: `"auto"`) - Updated `HatlessRalph` to generate appropriate task instructions based on provider - Updated `EventLoop` to trust agent for task completion verification in native mode - Documentation updates in AGENTS.md and docs/concepts/memories-and-tasks.md ## Configuration ```yaml tasks: enabled: true provider: "auto" # "native" | "local" | "auto" (default) ``` ## Test plan - [x] Unit tests for task_provider module (13 tests) - [x] Config parsing tests for new provider field (4 tests) - [x] HatlessRalph tests for task provider integration (3 tests) - [x] Pre-commit hooks pass (fmt + clippy) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 10:22:22 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ralph-orchestrator#133
No description provided.