← Back to Kontasks
gvShell Multi-Provider Pipe Example
Working example of chaining Claude and OpenAI responses together
Output
gvShell Multi-Provider Pipe Example
⚠ Current Limitation
The $1 reference is not expanded when used inside an @provider prompt. This is a Phase 5 feature (Step 22).
✗ @openai summarize this: $1 # $1 NOT expanded ✓ ! echo $1 | wc -w # $1 IS expanded in shell
✓ Working Workaround (File I/O)
Use shell commands to save and read responses:
# Step 1: Ask Claude @claude explain in 200 words why the Roman Empire fell # Step 2: Save to file ! echo $1 > /tmp/roman.txt # Step 3: Show original response show $1 show $claude # Step 4: Use in shell pipelines ! echo $1 | wc -w # Word count ! echo $1 | head -5 # First 5 lines ! cat /tmp/roman.txt | grep -i "economic" # Search
Future: Phase 5 Reference Subfields
After Phase 5, this will work:
# Planned Phase 5 syntax (not yet implemented) @claude explain why the Roman Empire fell @openai summarize this: $1 # $1 will expand @openai critique: $claude # $claude will expand show $2.code # Extract code blocks save $1 /tmp/output.md # Save to file
Live Test Result
Claude's response was successfully stored and piped:
- ✓
@claudegenerated 200-word explanation - ✓
! echo $1 > /tmp/roman.txtsaved to file - ✓
show $1displayed stored response - ✓ File contains full markdown response with headers
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
vibetools
Tags
gvshellpipeexample
Created
6 Jan 2026, 5:57 pm
Updated
6 Jan 2026, 5:57 pm
Timing
⏱️ 92.2s
0 tools
● TTFE 0%
● Thinking 100%
● Tools 0%
Created By
claude
Raw Data
{
"id": "8c77e32a-9826-4364-8415-b85f9db78ab8",
"type": "general",
"status": "completed",
"title": "gvShell Multi-Provider Pipe Example",
"description": "Working example of chaining Claude and OpenAI responses together",
"context": {
"output": "<div style=\"background:#1e1e1e;color:#e0e0e0;padding:20px;border-radius:8px;font-family:'Consolas','Monaco',monospace;\">\n<h2 style=\"font-family:sans-serif;color:#fff;margin:0 0 16px 0;\">gvShell Multi-Provider Pipe Example</h2>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"color:#e06c75;margin:0 0 12px 0;\">⚠ Current Limitation</h3>\n<p style=\"margin:0;color:#abb2bf;\">The <code>$1</code> reference is <strong>not expanded</strong> when used inside an <code>@provider</code> prompt. This is a Phase 5 feature (Step 22).</p>\n<pre style=\"background:#1a1a1a;padding:8px;border-radius:4px;margin:8px 0 0 0;\">\n<span style=\"color:#e06c75;\">✗</span> @openai summarize this: $1 <span style=\"color:#7f848e;\"># $1 NOT expanded</span>\n<span style=\"color:#98c379;\">✓</span> ! echo $1 | wc -w <span style=\"color:#7f848e;\"># $1 IS expanded in shell</span>\n</pre>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"color:#98c379;margin:0 0 12px 0;\">✓ Working Workaround (File I/O)</h3>\n<p style=\"margin:0 0 12px 0;color:#abb2bf;\">Use shell commands to save and read responses:</p>\n<pre style=\"background:#1a1a1a;padding:12px;border-radius:4px;overflow-x:auto;margin:0;\">\n<span style=\"color:#7f848e;\"># Step 1: Ask Claude</span>\n<span style=\"color:#56b6c2;\">@claude</span> explain in 200 words why the Roman Empire fell\n\n<span style=\"color:#7f848e;\"># Step 2: Save to file</span>\n<span style=\"color:#e5c07b;\">!</span> echo $1 > /tmp/roman.txt\n\n<span style=\"color:#7f848e;\"># Step 3: Show original response</span>\nshow $1\nshow $claude\n\n<span style=\"color:#7f848e;\"># Step 4: Use in shell pipelines</span>\n<span style=\"color:#e5c07b;\">!</span> echo $1 | wc -w <span style=\"color:#7f848e;\"># Word count</span>\n<span style=\"color:#e5c07b;\">!</span> echo $1 | head -5 <span style=\"color:#7f848e;\"># First 5 lines</span>\n<span style=\"color:#e5c07b;\">!</span> cat /tmp/roman.txt | grep -i \"economic\" <span style=\"color:#7f848e;\"># Search</span>\n</pre>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"color:#c678dd;margin:0 0 12px 0;\">Future: Phase 5 Reference Subfields</h3>\n<p style=\"margin:0 0 12px 0;color:#abb2bf;\">After Phase 5, this will work:</p>\n<pre style=\"background:#1a1a1a;padding:12px;border-radius:4px;overflow-x:auto;margin:0;\">\n<span style=\"color:#7f848e;\"># Planned Phase 5 syntax (not yet implemented)</span>\n<span style=\"color:#56b6c2;\">@claude</span> explain why the Roman Empire fell\n<span style=\"color:#61afef;\">@openai</span> summarize this: $1 <span style=\"color:#7f848e;\"># $1 will expand</span>\n<span style=\"color:#61afef;\">@openai</span> critique: $claude <span style=\"color:#7f848e;\"># $claude will expand</span>\nshow $2.code <span style=\"color:#7f848e;\"># Extract code blocks</span>\nsave $1 /tmp/output.md <span style=\"color:#7f848e;\"># Save to file</span>\n</pre>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;\">\n<h3 style=\"color:#e5c07b;margin:0 0 12px 0;\">Live Test Result</h3>\n<p style=\"margin:0 0 8px 0;color:#abb2bf;\">Claude's response was successfully stored and piped:</p>\n<ul style=\"margin:0;padding-left:20px;line-height:1.8;color:#98c379;\">\n<li>✓ <code>@claude</code> generated 200-word explanation</li>\n<li>✓ <code>! echo $1 > /tmp/roman.txt</code> saved to file</li>\n<li>✓ <code>show $1</code> displayed stored response</li>\n<li>✓ File contains full markdown response with headers</li>\n</ul>\n</div>\n</div>",
"requestedAt": "2026-01-06T07:58:00.000Z",
"requestId": "d306395b-fe25-4b45-8541-b4d55a157466",
"choices": [
{
"label": "Start Phase 5",
"value": "Start implementing Phase 5 Step 22 - Reference Subfields to enable $1 expansion in @provider prompts",
"primary": true
},
{
"label": "Test more pipes",
"value": "Test more shell pipe commands with gvShell - grep, sed, awk examples"
},
{
"label": "Run unit tests",
"value": "Run the full gvShell unit test suite"
}
],
"turnTiming": {
"totalMs": 92246,
"ttfeMs": 437,
"thinkingMs": 91809,
"toolExecutionMs": 0,
"toolCallCount": 0,
"thinkingPct": 100,
"toolsPct": 0,
"ttfePct": 0
}
},
"createdBy": "claude",
"createdAt": "2026-01-06T07:57:54.234Z",
"updatedAt": "2026-01-06T07:57:59.203Z",
"requestId": "d306395b-fe25-4b45-8541-b4d55a157466",
"scope": "vibetools",
"tags": [
"gvshell",
"pipe",
"example"
],
"targetUser": "claude"
}