Skip to content

feat: masked repair loop with agent tools (read/edit/bash)#26

Merged
EXboys merged 1 commit into
mainfrom
feat/repair-loop-mask
May 29, 2026
Merged

feat: masked repair loop with agent tools (read/edit/bash)#26
EXboys merged 1 commit into
mainfrom
feat/repair-loop-mask

Conversation

@EXboys

@EXboys EXboys commented May 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add bounded repair loop (probe → mask → plan → apply → verify) with CLI --loop / --apply --loop / --plan ai
  • Add secret masking pipeline (SecretVault, {{SECRET:n}}, local unmask before writes)
  • Add agent tools: read_file (numbered), list_dir, grep_files, search_replace, write_file, patch_config, allowlisted bash
  • Wire AiRepairPlanner to OpenAI-compatible chat + tool calling (falls back to deterministic without API key)
  • Filter Hermes playbook by planned action_ids; preview mode shows unified diff
  • Document model in docs/repair-safety.md

Follow-up

OpenClaw install/repair parity tracked in #25.

Test plan

  • cargo fmt
  • cargo clippy --all-targets -- -D warnings
  • cargo test (47 tests)
  • agent-doctor repair hermes --loop (preview)
  • agent-doctor repair hermes --apply --loop (with playbook)

Made with Cursor

Introduce a bounded probe→plan→apply→verify loop with secret masking,
LLM planner hooks, search_replace/write_file/patch_config tools, and
scoped list_dir/grep_files discovery. Hermes playbook execution is
filtered by planned action ids; CLI gains --loop and --plan ai.

Co-authored-by: Cursor <cursoragent@cursor.com>
@EXboys EXboys merged commit 9a24fb3 into main May 29, 2026
3 checks passed
@EXboys EXboys deleted the feat/repair-loop-mask branch May 29, 2026 12:28
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