add passthrough

This commit is contained in:
nrslib 2026-02-06 07:38:48 +09:00
parent 3e54c80ba2
commit a2af2f23e3
5 changed files with 89 additions and 2 deletions

View File

@ -1,8 +1,10 @@
piece_categories:
"🚀 Quick Start":
pieces:
- minimal
- default
- passthrough
- coding
- minimal
"🔍 Review & Fix":
pieces:

View File

@ -0,0 +1,42 @@
# Passthrough TAKT Piece
# Thinnest wrapper. Pass task directly to coder as-is.
#
# Flow:
# execute (do the task)
# ↓
# COMPLETE
name: passthrough
description: Single-agent thin wrapper. Pass task directly to coder as-is.
max_iterations: 10
initial_movement: execute
movements:
- name: execute
edit: true
agent: ../agents/default/coder.md
report:
- Summary: summary.md
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
permission_mode: edit
rules:
- condition: Task complete
next: COMPLETE
- condition: Cannot proceed
next: ABORT
- condition: User input required
next: execute
requires_user_input: true
interactive_only: true
instruction_template: |
Do the task.

View File

@ -2,6 +2,7 @@ piece_categories:
"🚀 クイックスタート":
pieces:
- default
- passthrough
- coding
- minimal

View File

@ -0,0 +1,42 @@
# Passthrough TAKT Piece
# タスクをそのままエージェントに渡す最薄ラッパー。
#
# フロー:
# execute (タスク実行)
# ↓
# COMPLETE
name: passthrough
description: Single-agent thin wrapper. Pass task directly to coder as-is.
max_iterations: 10
initial_movement: execute
movements:
- name: execute
edit: true
agent: ../agents/default/coder.md
report:
- Summary: summary.md
allowed_tools:
- Read
- Glob
- Grep
- Edit
- Write
- Bash
- WebSearch
- WebFetch
permission_mode: edit
rules:
- condition: タスク完了
next: COMPLETE
- condition: 進行できない
next: ABORT
- condition: ユーザー入力が必要
next: execute
requires_user_input: true
interactive_only: true
instruction_template: |
タスクをこなしてください。

View File

@ -45,7 +45,7 @@ describe('getBuiltinPiece', () => {
});
it('should return null for non-existent piece names', () => {
expect(getBuiltinPiece('passthrough')).toBeNull();
expect(getBuiltinPiece('nonexistent-piece')).toBeNull();
expect(getBuiltinPiece('unknown')).toBeNull();
expect(getBuiltinPiece('')).toBeNull();
});