feat(pi): add tldr prompt command

This commit was merged in pull request #195.
This commit is contained in:
2026-10-19 16:04:30 -04:00
parent e41b8e3eb4
commit 042238476a
2 changed files with 44 additions and 0 deletions

8
.pi/prompts/tldr.md Normal file
View File

@@ -0,0 +1,8 @@
---
description: Summarize an agent response
argument-hint: "[source request]"
---
Summarize `${ARGUMENTS:-the preceding agent response}`.
Keep the summary compact.
Use no fixed format.

View File

@@ -0,0 +1,36 @@
# TL;DR command design tree
This tree reviews the implementation decisions in `tldr-design.md`.
## Settled decisions
- **Command form and scope:** Add the project prompt template `.pi/prompts/tldr.md`.
- **Explicit source interface:** Interpret command arguments as a free-form source request.
- **Default source:** Summarize the preceding agent response when no source request exists.
- **Summary shape:** Produce a compact summary without a fixed format.
- **Unavailable or unclear sources:** Add no special handling policy.
## Decision tree
- Command behavior
- Source selection
- Settled: Use the preceding agent response without arguments.
- Settled: Interpret arguments as a free-form source request.
- Output
- Settled: Produce a compact summary without a fixed format.
- Summary language
- Settled: Do not prescribe a language policy.
- Error behavior
- Settled: Add no special handling policy for unavailable or unclear sources.
## Frontier
The frontier is empty.
## Shared understanding pending confirmation
The project gets a `/tldr` prompt command in `.pi/prompts/tldr.md`.
Without arguments, it summarizes the preceding agent response.
With arguments, it interprets them as a free-form source request.
It produces a compact summary with no fixed format or language policy.
The prompt adds no special policy for unavailable or unclear sources.