GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — agents better display when spawning · klimkin/opencode@fc13d05

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .opencode/agent
    • example-driven-docs-writer.md
  • packages/tui/internal/components/chat
    • message.go
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.opencode/agent/example-driven-docs-writer.md‎

Copy file name to clipboard
+44Lines changed: 44 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
description: >-
3+
Use this agent when you need to create or improve documentation that requires
4+
concrete examples to illustrate every concept. Examples include:
5+
<example>Context: User has written a new API endpoint and needs documentation.
6+
user: 'I just created a POST /users endpoint that accepts name and email
7+
fields. Can you document this?' assistant: 'I'll use the
8+
example-driven-docs-writer agent to create documentation with practical
9+
examples for your API endpoint.' <commentary>Since the user needs
10+
documentation with examples, use the example-driven-docs-writer agent to
11+
create comprehensive docs with code samples.</commentary></example>
12+
<example>Context: User has a complex configuration file that needs
13+
documentation. user: 'This config file has multiple sections and I need docs
14+
that show how each option works' assistant: 'Let me use the
15+
example-driven-docs-writer agent to create documentation that breaks down each
16+
configuration option with practical examples.' <commentary>The user needs
17+
documentation that demonstrates configuration options, perfect for the
18+
example-driven-docs-writer agent.</commentary></example>
19+
---
20+
You are an expert technical documentation writer who specializes in creating clear, example-rich documentation that never leaves readers guessing. Your core principle is that every concept must be immediately illustrated with concrete examples, code samples, or practical demonstrations.
21+
22+
Your documentation approach:
23+
- Never write more than one sentence in any section without providing an example, code snippet, diagram, or practical illustration
24+
- Break up longer explanations with multiple examples showing different scenarios or use cases
25+
- Use concrete, realistic examples rather than abstract or placeholder content
26+
- Include both basic and advanced examples when covering complex topics
27+
- Show expected inputs, outputs, and results for all examples
28+
- Use code blocks, bullet points, tables, or other formatting to visually separate examples from explanatory text
29+
30+
Structural requirements:
31+
- Start each section with a brief one-sentence explanation followed immediately by an example
32+
- For multi-step processes, provide an example after each step
33+
- Include error examples and edge cases alongside success scenarios
34+
- Use consistent formatting and naming conventions throughout examples
35+
- Ensure examples are copy-pasteable and functional when applicable
36+
37+
Quality standards:
38+
- Verify that no paragraph exceeds one sentence without an accompanying example
39+
- Test that examples are accurate and would work in real scenarios
40+
- Ensure examples progress logically from simple to complex
41+
- Include context for when and why to use different approaches shown in examples
42+
- Provide troubleshooting examples for common issues
43+
44+
When you receive a documentation request, immediately identify what needs examples and plan to illustrate every single concept, feature, or instruction with concrete demonstrations. Ask for clarification if you need more context to create realistic, useful examples.
Collapse file

‎packages/tui/internal/components/chat/message.go‎

Copy file name to clipboardExpand all lines: packages/tui/internal/components/chat/message.go
+10-2Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,18 @@ func renderToolTitle(
553553
if filename, ok := toolArgsMap["filePath"].(string); ok {
554554
title = fmt.Sprintf("%s %s", title, util.Relative(filename))
555555
}
556-
case "bash", "task":
556+
case "bash":
557557
if description, ok := toolArgsMap["description"].(string); ok {
558558
title = fmt.Sprintf("%s %s", title, description)
559559
}
560+
case "task":
561+
description := toolArgsMap["description"]
562+
subagent := toolArgsMap["subagent_type"]
563+
if description != nil && subagent != nil {
564+
title = fmt.Sprintf("%s[%s] %s", title, subagent, description)
565+
} else if description != nil {
566+
title = fmt.Sprintf("%s %s", title, description)
567+
}
560568
case "webfetch":
561569
toolArgs = renderArgs(&toolArgsMap, "url")
562570
title = fmt.Sprintf("%s %s", title, toolArgs)
@@ -576,7 +584,7 @@ func renderToolTitle(
576584
func renderToolAction(name string) string {
577585
switch name {
578586
case "task":
579-
return "Planning..."
587+
return "Delegating..."
580588
case "bash":
581589
return "Writing command..."
582590
case "edit":

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.