Skip to content

refactor(session): modular system prompts and runner wiring#254

Open
xiami762 wants to merge 5 commits into
devfrom
refactor/session-prompt-runner-system-blocks
Open

refactor(session): modular system prompts and runner wiring#254
xiami762 wants to merge 5 commits into
devfrom
refactor/session-prompt-runner-system-blocks

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

@xiami762 xiami762 commented May 11, 2026

Summary

  • Refactor session prompt.py: composed provider/system blocks, guidance hooks, caching; consolidate defaults and slim static templates under flocks/session/prompt/.
  • Wire prompt_strings, Rex/Hephaestus prompt builders, prompt_utils, and memory bootstrap to the new pipeline.
  • Update session/runner.py for provider system blocks and related message handling.
  • Tests: refresh session/agent/memory/integration coverage; add tests/provider/test_anthropic_system_blocks.py.

xiami762 and others added 5 commits May 11, 2026 17:11
- Extend prompt composition (provider blocks, guidance, caching) and
  consolidate defaults; trim redundant static template bodies.
- Update prompt_strings, Rex/Hephaestus builders, prompt_utils, and memory
  bootstrap for the new prompt pipeline.
- Adjust session runner for Anthropic-style system blocks and related
  message handling.
- Refresh session/agent/memory/integration tests; add Anthropic system
  blocks unit coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
…sion-prompt-runner-system-blocks

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	flocks/session/runner.py
- Relocate flocks_mcp from ~/.flocks plugin path to flocks/tool/system.
- Rex prompt_builder and agent.yaml/toolset updates; agent_factory hooks.
- Session prompt/runner and prompt_strings tweaks; registry and skill wiring.
- Refresh AGENTS.md; extend tests for factory, runner, toolset, builtins.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Move agent_identity and tool_catalog layers for clearer guidance order.
- Exclude lsp from bulk native=True classification in ToolRegistry.
- Minor lsp_tool tweak; extend runner and builtin management tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Remove redundant prompt.py / prompt_strings content where duplicated.
- Refine bash tool description (dedicated-tool bullets and usage notes).
- Align prompt_tokens, runner_step, and bash registry tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant