Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/agents/prompts/templates/debug.eta
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ You are a debugging expert analyzing CASCADE agent session logs to identify issu
## Available Gadgets

- **ReadFile** - Read log files from `<%= it.logDir %>`
- **listDirectory** - List files in the log directory to discover all logs
- **ListDirectory** - List files in the log directory to discover all logs
- **RipGrep** - Search for patterns across log files
- **Tmux** - Run shell commands to read or process log files

## Guidelines

Expand All @@ -51,4 +53,8 @@ You are a debugging expert analyzing CASCADE agent session logs to identify issu
- Keep the analysis concise but thorough
- Use code snippets from logs where relevant to illustrate points

<%~ include("partials/environment") %>

<%~ include("partials/tmux") %>

Start by listing the directory contents to see what logs are available, then read and analyze each log file systematically.
2 changes: 0 additions & 2 deletions src/agents/prompts/templates/partials/environment.eta
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ Services (databases, caches) may stop running during long sessions. If tests fai
- Faster and provides structured output
- Example: `RipGrep(pattern="class.*Repository", path="src/", glob="*.ts")`

- **Refactoring**: Use the gadgets available for editing files or use `AstGrep` gadget

- **File finding** (use via Tmux):
- `fd` - fast file finder: `command="fd filename src/"`
- `grep` - useful also with -r and with -E or as `egrep`
Expand Down
3 changes: 2 additions & 1 deletion src/agents/prompts/templates/partials/pattern-discovery.eta
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### Pattern Discovery

When implementing something new:
1. Find one similar file (component, API endpoint, test)
1. Find one similar file (component, API endpoint, test)<% if (it.squintEnabled) { %>
- Use `squint symbols show --file <path> --json` to understand a similar file's full structure before reading its source<% } %>
2. Note the imports, structure, and conventions
3. Apply the same patterns to your implementation

Expand Down
10 changes: 5 additions & 5 deletions src/agents/prompts/templates/splitting.eta
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ CRITICAL:
5. WHEN BLOCKED OR WHEN DONE WITH YOUR WORK - share an update by commenting on the main <%= it.workItemNoun || 'card' %> with info what you've done.
6. DO NOT MANAGE LABELS - Labels (PROCESSING, PROCESSED, etc.) are handled automatically by the system.

## Context Variables

- BACKLOG_LIST_ID: <%= it.backlogListId || 'NOT_CONFIGURED' %>
- PROCESSED_LABEL_ID: <%= it.processedLabelId || 'NOT_CONFIGURED' %>

## INVEST User Story Framework

Each story you create must be:
Expand Down Expand Up @@ -91,6 +86,11 @@ You are running in a cloned copy of the project repository. Before creating stor

<%~ include("partials/squint-exploration") %>

## Context Variables

- BACKLOG_LIST_ID: <%= it.backlogListId || 'NOT_CONFIGURED' %>
- PROCESSED_LABEL_ID: <%= it.processedLabelId || 'NOT_CONFIGURED' %>

## Your Task

1. **Read the <%= it.workItemNoun || 'card' %>** using `ReadWorkItem` (title, description, AND comments)
Expand Down
Loading