[PR #37] [MERGED] refactor(adapters): Move scratchpad instructions to base adapter #105

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

📋 Pull Request Information

Original PR: https://github.com/mikeyobrien/ralph-orchestrator/pull/37
Author: @mikeyobrien
Created: 1/8/2026
Status: Merged
Merged: 1/8/2026
Merged by: @mikeyobrien

Base: mainHead: refactor/scratchpad-base-adapter


📝 Commits (1)

  • f682444 refactor(adapters): Move scratchpad instructions to base adapter

📊 Changes

4 files changed (+18 additions, -48 deletions)

View changed files

📝 README.md (+2 -2)
📝 docs/guide/agents.md (+1 -1)
📝 src/ralph_orchestrator/adapters/acp.py (+0 -45)
📝 src/ralph_orchestrator/adapters/base.py (+15 -0)

📄 Description

Move agent scratchpad mechanism from ACP adapter to base ToolAdapter class, making it available to all agents (Claude, Kiro, Q, Gemini, ACP).

This enables consistent context persistence across iterations for all agent types.

Changes

  • Removed _enhance_prompt_with_instructions override from ACP adapter
  • Added scratchpad instructions to base ToolAdapter class
  • Updated documentation to reflect scratchpad availability for all agents

Benefits

  • All agents now benefit from context persistence
  • Reduces code duplication
  • Consistent behavior across all agent types

🔄 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/37 **Author:** [@mikeyobrien](https://github.com/mikeyobrien) **Created:** 1/8/2026 **Status:** ✅ Merged **Merged:** 1/8/2026 **Merged by:** [@mikeyobrien](https://github.com/mikeyobrien) **Base:** `main` ← **Head:** `refactor/scratchpad-base-adapter` --- ### 📝 Commits (1) - [`f682444`](https://github.com/mikeyobrien/ralph-orchestrator/commit/f6824441d1b0c61c13057acd90f7107aa4dc2681) refactor(adapters): Move scratchpad instructions to base adapter ### 📊 Changes **4 files changed** (+18 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -2) 📝 `docs/guide/agents.md` (+1 -1) 📝 `src/ralph_orchestrator/adapters/acp.py` (+0 -45) 📝 `src/ralph_orchestrator/adapters/base.py` (+15 -0) </details> ### 📄 Description Move agent scratchpad mechanism from ACP adapter to base ToolAdapter class, making it available to all agents (Claude, Kiro, Q, Gemini, ACP). This enables consistent context persistence across iterations for all agent types. ## Changes - Removed `_enhance_prompt_with_instructions` override from ACP adapter - Added scratchpad instructions to base ToolAdapter class - Updated documentation to reflect scratchpad availability for all agents ## Benefits - All agents now benefit from context persistence - Reduces code duplication - Consistent behavior across all agent types --- <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:14 +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#105
No description provided.