Skip to content

The agent that turns websites into APIs!

chore: scrub remaining tag references from engineer prompt template

Kalil Bouzigues7300df8a67b8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ada8302..b67328d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,8 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **Tag system (`@record-only`, `@codegen`, `@id`, `@docs`, `@help`)**: The inline tag syntax inside REPL prompts has been removed. Surviving capabilities have first-class CLI flags / arguments instead:
- `@record-only` → `manual --no-engineer` (already existed)
- `@id <run_id>` → `engineer <run_id>` (positional, already existed)
- - `@id <run_id> <prompt>` → `engineer <run_id> --prompt "..."` (new flag)
- - `@id <run_id> --fresh <prompt>` → `engineer <run_id> --fresh --prompt "..."` (new flag)
+ - `@id <run_id> <prompt>` → `engineer <run_id> --prompt "..."` (new flag; layered as additional instructions on top of the captured run's original goal)
+ - `@id <run_id> --fresh <prompt>` → `engineer <run_id> --fresh --prompt "..."` (new flag; with `--fresh`, `--prompt` fully replaces the original goal)
- `@codegen` and Playwright-action recording: removed entirely with the `ActionRecorder` and `playwright_codegen` modules (low usage, replaced by the standard capture+engineer flow)
- `@docs` (OpenAPI generation): removed for now; will return as a dedicated `docs` subcommand in a follow-up
- `@help`: superseded by the existing `/help` slash command in the REPL
diff --git a/src/reverse_api/base_engineer.py b/src/reverse_api/base_engineer.py
index 4fd91b4..dba7d56 100644
--- a/src/reverse_api/base_engineer.py
+++ b/src/reverse_api/base_engineer.py
@@ -504,7 +504,6 @@ class BaseEngineer(ABC):
scripts_dir=str(self.scripts_dir),
existing_client_guidance=self._get_existing_client_guidance(),
additional_instructions=additional_instructions,
- tag_extra="@docs" if is_docs else "",
tag_mode_label="Documentation" if is_docs else "Re-engineer",
run_id=self.run_id,
har_parent=str(self.har_path.parent),
diff --git a/src/reverse_api/prompts/engineer/user.md b/src/reverse_api/prompts/engineer/user.md
index b265f47..5fe5f17 100644
--- a/src/reverse_api/prompts/engineer/user.md
+++ b/src/reverse_api/prompts/engineer/user.md
@@ -14,16 +14,14 @@ Here is the output directory where you should save your generated files:
</output_dir>
{existing_client_guidance}
{additional_instructions}
-## Tag-Based Workflows
+## Run Context
-This session uses tag-based context loading:
-
-- **@id <run_id>** {tag_extra}: {tag_mode_label} mode active
- - Target run: {run_id}
- - HAR location: {har_parent}
- - Existing {existing_label}: {scripts_dir}
- - Message history: {messages_path} (available for reference if needed)
- - Fresh mode: {is_fresh}
+- Mode: {tag_mode_label}
+- Target run: {run_id}
+- HAR location: {har_parent}
+- Existing {existing_label}: {scripts_dir}
+- Message history: {messages_path} (available for reference if needed)
+- Fresh mode: {is_fresh}
By default, treat this as an iterative refinement. The user's prompt describes
changes or improvements to make to the existing {existing_artifact}. If fresh mode is enabled,
diff --git a/tests/test_base_engineer.py b/tests/test_base_engineer.py
index e08ff65..b82b306 100644
--- a/tests/test_base_engineer.py
+++ b/tests/test_base_engineer.py
@@ -293,11 +293,11 @@ class TestBaseEngineerBuildPrompt:
system_prompt, user_message = eng._build_prompts()
assert "Focus on auth" in user_message
- def test_prompt_includes_tag_context(self, tmp_path):
- """User message includes tag-based workflow context."""
+ def test_prompt_includes_run_context(self, tmp_path):
+ """User message includes run context (target run id, mode label)."""
eng = self._make_engineer(tmp_path)
system_prompt, user_message = eng._build_prompts()
- assert "Tag-Based Workflows" in user_message
+ assert "Run Context" in user_message
assert eng.run_id in user_message
def test_prompt_includes_existing_client_guidance(self, tmp_path):
diff --git a/tests/test_prompts.py b/tests/test_prompts.py
index 42dcb63..750080e 100644
--- a/tests/test_prompts.py
+++ b/tests/test_prompts.py
@@ -99,7 +99,6 @@ class TestEngineerTemplates:
scripts_dir="/tmp/scripts",
existing_client_guidance="",
additional_instructions="",
- tag_extra="",
tag_mode_label="Re-engineer",
run_id="test123",
har_parent="/tmp",