-
Notifications
You must be signed in to change notification settings - Fork 60
feat: improve session titles to include task descriptions #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
c81bb67
51116e9
74e9df2
f20223f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,6 +8,31 @@ | |||||
|
|
||||||
| Task/Prompt: $ARGUMENTS | ||||||
|
|
||||||
| ## Step 0: Resolve Task ID and Set Session Title | ||||||
|
|
||||||
| **IMPORTANT**: Before proceeding, check if the argument is a task ID (matches pattern `t\d+` like `t061`). | ||||||
|
|
||||||
| If the argument is a task ID: | ||||||
|
|
||||||
| 1. Look up the task description from TODO.md: | ||||||
| ```bash | ||||||
| grep "^- \[ \] $ARGUMENTS " TODO.md 2>/dev/null | head -1 | sed 's/^- \[ \] [^ ]* //' | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This 🤖 Was this useful? React with 👍 or 👎 |
||||||
| ``` | ||||||
|
coderabbitai[bot] marked this conversation as resolved.
|
||||||
|
|
||||||
| 2. Use the task description (not just the ID) for the session title. Call the `session-rename` tool with a descriptive title like: | ||||||
| - Good: `"t061: Improve session title to include task description"` | ||||||
| - Bad: `"Full loop development for t061"` | ||||||
|
|
||||||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||||||
| 3. Store the full task description for use in subsequent steps. | ||||||
|
|
||||||
| If the argument is NOT a task ID (it's a description): | ||||||
| - Use the description directly for the session title | ||||||
| - Call `session-rename` with a concise version if the description is very long (truncate to ~60 chars) | ||||||
|
|
||||||
| **Example session titles:** | ||||||
| - Task ID `t061` with description "Improve session title format" → `"t061: Improve session title format"` | ||||||
| - Description "Add JWT authentication" → `"Add JWT authentication"` | ||||||
|
|
||||||
| ## Full Loop Phases | ||||||
|
|
||||||
| ```text | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1113,6 +1113,8 @@ Start a Ralph loop for iterative development. | |
|
|
||
| Arguments: $ARGUMENTS | ||
|
|
||
| **Session Title**: Set a descriptive session title using `session-rename` tool. Use a concise version of the prompt (truncate to ~60 chars if needed). | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since 🤖 Was this useful? React with 👍 or 👎 |
||
|
|
||
| **Usage:** | ||
| ```bash | ||
| /ralph-loop "<prompt>" --max-iterations <n> --completion-promise "<text>" | ||
|
|
@@ -1358,7 +1360,8 @@ Task ID: $ARGUMENTS | |
| **Workflow:** | ||
| 1. Find task in TODO.md by ID (e.g., t042) | ||
| 2. Extract ralph metadata (promise, verify command, max iterations) | ||
| 3. Start Ralph loop with extracted parameters | ||
| 3. **Set session title** using `session-rename` tool with format: `"t042: Task description here"` | ||
| 4. Start Ralph loop with extracted parameters | ||
|
|
||
| **Task format in TODO.md:** | ||
| ```markdown | ||
|
|
@@ -1381,7 +1384,8 @@ Task ID: $ARGUMENTS | |
| This will: | ||
| 1. Read TODO.md and find task t042 | ||
| 2. Extract the ralph-promise, ralph-verify, ralph-max values | ||
| 3. Start: `/ralph-loop "{task description}" --completion-promise "{promise}" --max-iterations {max}` | ||
| 3. Set session title to `"t042: {task description}"` using `session-rename` tool | ||
| 4. Start: `/ralph-loop "{task description}" --completion-promise "{promise}" --max-iterations {max}` | ||
|
|
||
| **Requirements:** | ||
| - Task must have `#ralph` tag | ||
|
|
@@ -1405,6 +1409,8 @@ Read ~/.aidevops/agents/scripts/commands/full-loop.md and follow its instruction | |
|
|
||
| Start a full development loop for: $ARGUMENTS | ||
|
|
||
| **IMPORTANT - Session Title**: If the argument is a task ID (like `t061`), look up the task description from TODO.md and use it for the session title. Call `session-rename` with format: `"t061: Task description here"` instead of just `"Full loop development for t061"`. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This instruction about the session title duplicates the information recently added to |
||
|
|
||
| **Full Loop Phases:** | ||
| ```text | ||
| Task Development → Preflight → PR Create → PR Review → Postflight → Deploy | ||
|
|
@@ -1414,6 +1420,7 @@ Task Development → Preflight → PR Create → PR Review → Postflight → De | |
| ```bash | ||
| /full-loop "Implement feature X with tests" | ||
| /full-loop "Fix bug Y" --max-task-iterations 30 | ||
| /full-loop t061 # Will look up task description from TODO.md | ||
| ``` | ||
|
|
||
| **Options:** | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If users run
/full-loop t061 --max-task-iterations 30,$ARGUMENTSmay include flags, so thet\d+check and TODO lookup could fail or produce a noisy session title. Consider clarifying that the check/lookup should use only the first positional token (the task ID) rather than the entire raw argument string.🤖 Was this useful? React with 👍 or 👎