rrce-workflow 0.3.19 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-core/prompts/_base.md +5 -0
- package/agent-core/prompts/design.md +1 -1
- package/agent-core/prompts/develop.md +1 -1
- package/agent-core/prompts/doctor.md +1 -1
- package/agent-core/prompts/documentation.md +1 -1
- package/agent-core/prompts/init.md +1 -1
- package/agent-core/prompts/sync.md +10 -9
- package/dist/index.js +2051 -1870
- package/package.json +1 -1
|
@@ -8,6 +8,11 @@ Use values from the **System Context** table above. Never guess or construct pat
|
|
|
8
8
|
- `WORKSPACE_ROOT` - Project source code location
|
|
9
9
|
- `RRCE_HOME` - Global RRCE installation directory
|
|
10
10
|
|
|
11
|
+
**If System Context is missing or incorrect:**
|
|
12
|
+
1. Call `rrce_resolve_path(project: "PROJECT_NAME")` to get authoritative paths
|
|
13
|
+
2. If resolution fails, call `rrce_list_projects()` to see available projects
|
|
14
|
+
3. If both fail, ask the user for clarification before proceeding
|
|
15
|
+
|
|
11
16
|
## Tool Preference Order
|
|
12
17
|
1. **Context bundling** (`rrce_get_context_bundle`) - single call aggregates project context + knowledge + code
|
|
13
18
|
2. **Semantic search** (`rrce_search_knowledge`, `rrce_search_code`) - finds concepts without exact matches
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: RRCE Design
|
|
3
3
|
description: Research requirements and create execution plan in a single interactive session. Combines clarification and task breakdown.
|
|
4
4
|
argument-hint: TASK_SLUG=<slug> REQUEST="<user prompt>" [TITLE="<task title>"]
|
|
5
|
-
tools: ['rrce_get_context_bundle', 'rrce_search_knowledge', 'rrce_search_code', 'rrce_search_symbols', 'rrce_get_file_summary', 'rrce_search_tasks', 'rrce_find_related_files', 'rrce_get_project_context', 'rrce_validate_phase', 'rrce_list_projects', 'rrce_create_task', 'rrce_update_task', 'websearch', 'codesearch', 'read', 'write', 'glob', 'grep']
|
|
5
|
+
tools: ['rrce_resolve_path', 'rrce_get_context_bundle', 'rrce_search_knowledge', 'rrce_search_code', 'rrce_search_symbols', 'rrce_get_file_summary', 'rrce_search_tasks', 'rrce_find_related_files', 'rrce_get_project_context', 'rrce_validate_phase', 'rrce_list_projects', 'rrce_create_task', 'rrce_update_task', 'rrce_start_session', 'rrce_end_session', 'rrce_update_agent_todos', 'websearch', 'codesearch', 'read', 'write', 'glob', 'grep']
|
|
6
6
|
required-args:
|
|
7
7
|
- name: TASK_SLUG
|
|
8
8
|
prompt: "Enter a task slug (kebab-case identifier)"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: RRCE Develop
|
|
3
3
|
description: Execute the planned tasks to deliver working code and tests. The ONLY agent authorized to modify source code.
|
|
4
4
|
argument-hint: "TASK_SLUG=<slug> [BRANCH=<git ref>]"
|
|
5
|
-
tools: ['rrce_prefetch_task_context', 'rrce_get_context_bundle', 'rrce_search_knowledge', 'rrce_search_code', 'rrce_search_symbols', 'rrce_get_file_summary', 'rrce_find_related_files', 'rrce_get_project_context', 'rrce_validate_phase', 'rrce_index_knowledge', 'rrce_update_task', 'rrce_start_session', 'rrce_end_session', 'rrce_update_agent_todos', 'read', 'write', 'edit', 'bash', 'glob', 'grep']
|
|
5
|
+
tools: ['rrce_resolve_path', 'rrce_prefetch_task_context', 'rrce_get_context_bundle', 'rrce_search_knowledge', 'rrce_search_code', 'rrce_search_symbols', 'rrce_get_file_summary', 'rrce_find_related_files', 'rrce_get_project_context', 'rrce_validate_phase', 'rrce_index_knowledge', 'rrce_update_task', 'rrce_start_session', 'rrce_end_session', 'rrce_update_agent_todos', 'read', 'write', 'edit', 'bash', 'glob', 'grep']
|
|
6
6
|
required-args:
|
|
7
7
|
- name: TASK_SLUG
|
|
8
8
|
prompt: "Enter the task slug to execute"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: RRCE Doctor
|
|
3
3
|
description: Analyze codebase health using semantic search; identify issues and recommend improvement tasks.
|
|
4
4
|
argument-hint: "[PROJECT_NAME=<name>] [FOCUS_AREA=<area>]"
|
|
5
|
-
tools: ['rrce_search_knowledge', 'rrce_get_project_context', 'rrce_index_knowledge', 'rrce_list_projects', 'rrce_create_task', 'read', 'write', 'glob', 'grep']
|
|
5
|
+
tools: ['rrce_resolve_path', 'rrce_get_context_bundle', 'rrce_search_knowledge', 'rrce_search_code', 'rrce_search_symbols', 'rrce_get_file_summary', 'rrce_get_project_context', 'rrce_index_knowledge', 'rrce_list_projects', 'rrce_create_task', 'read', 'write', 'glob', 'grep']
|
|
6
6
|
required-args: []
|
|
7
7
|
optional-args:
|
|
8
8
|
- name: PROJECT_NAME
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: RRCE Documentation
|
|
3
3
|
description: Produce project documentation aligned with the latest delivery.
|
|
4
4
|
argument-hint: "DOC_TYPE=<type> [TASK_SLUG=<slug> | TARGET_PATH=<relative>] [RELEASE_REF=<tag/sha>]"
|
|
5
|
-
tools: ['rrce_search_knowledge', 'rrce_get_project_context', 'rrce_list_projects', 'rrce_update_task', 'read', 'write', 'glob', 'grep']
|
|
5
|
+
tools: ['rrce_resolve_path', 'rrce_prefetch_task_context', 'rrce_get_context_bundle', 'rrce_search_knowledge', 'rrce_search_code', 'rrce_get_project_context', 'rrce_list_projects', 'rrce_update_task', 'read', 'write', 'glob', 'grep']
|
|
6
6
|
required-args:
|
|
7
7
|
- name: DOC_TYPE
|
|
8
8
|
prompt: "Enter the documentation type (e.g., api, architecture, runbook, changelog)"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: RRCE Init
|
|
3
3
|
description: Initialize project context and semantic search index by analyzing codebase structure, tech stack, and conventions.
|
|
4
4
|
argument-hint: "[PROJECT_NAME=<name>]"
|
|
5
|
-
tools: ['rrce_search_knowledge', 'rrce_index_knowledge', 'rrce_get_project_context', 'rrce_list_projects', 'read', 'write', 'glob', 'grep']
|
|
5
|
+
tools: ['rrce_resolve_path', 'rrce_search_knowledge', 'rrce_search_code', 'rrce_search_symbols', 'rrce_get_file_summary', 'rrce_index_knowledge', 'rrce_get_project_context', 'rrce_list_projects', 'rrce_start_session', 'rrce_end_session', 'read', 'write', 'glob', 'grep']
|
|
6
6
|
required-args: []
|
|
7
7
|
optional-args:
|
|
8
8
|
- name: PROJECT_NAME
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: RRCE Sync
|
|
3
3
|
description: Reconcile project state with the RRCE knowledge base and update semantic index.
|
|
4
4
|
argument-hint: "[SCOPE=<path|module>]"
|
|
5
|
-
tools: ['rrce_search_knowledge', 'rrce_get_project_context', 'rrce_index_knowledge', 'rrce_list_projects', 'rrce_update_task', 'read', 'write', 'glob', 'grep']
|
|
5
|
+
tools: ['rrce_resolve_path', 'rrce_get_context_bundle', 'rrce_search_knowledge', 'rrce_search_code', 'rrce_get_project_context', 'rrce_index_knowledge', 'rrce_list_projects', 'rrce_update_task', 'read', 'write', 'glob', 'grep']
|
|
6
6
|
required-args: []
|
|
7
7
|
optional-args:
|
|
8
8
|
- name: SCOPE
|
|
@@ -33,14 +33,15 @@ Non-Negotiables
|
|
|
33
33
|
3. Version every knowledge edit by stamping an ISO date (e.g. `Updated: 2024-11-01`) near the top of the section you modify.
|
|
34
34
|
4. Keep all knowledge files lean (<500 lines each) and focused on durable insights, linking to code paths or task artifacts instead of duplicating detail.
|
|
35
35
|
5. Record gaps or follow-up items in a checklist inside the file you touched so future runs can close them.
|
|
36
|
-
6. **Semantic Indexing (MANDATORY)**: After updating any knowledge files, run the indexer to keep search current
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
6. **Semantic Indexing (MANDATORY)**: After updating any knowledge files, run the indexer to keep search current.
|
|
37
|
+
|
|
38
|
+
## Reindexing Guidance
|
|
39
|
+
|
|
40
|
+
| Scenario | Tool Argument | Rationale |
|
|
41
|
+
|----------|---------------|-----------|
|
|
42
|
+
| Routine updates | `{ "project": "{{WORKSPACE_NAME}}" }` | Incremental (fastest). Only updates changed files. |
|
|
43
|
+
| Major refactors | `{ "project": "{{WORKSPACE_NAME}}", "force": true }` | Forces re-calculation of hashes for all files without wiping. |
|
|
44
|
+
| Corrupt index / Stale vectors | `{ "project": "{{WORKSPACE_NAME}}", "clean": true }` | Wipes index files and rebuilds from scratch. Resolves vector drift. |
|
|
44
45
|
|
|
45
46
|
Deliverable
|
|
46
47
|
- Updated `{{RRCE_DATA}}/knowledge/*` files that accurately reflect the present project state, each carrying the latest `Updated:` marker and lean checklist.
|