protocol-Lattice/go-harness — reverse-engineered prompt
Reverse engineered prompt
Build me a simple Go based command line harness for local first autonomous coding work. I want it to feel deterministic and safe, not like a single black box agent. A user should be able to give it a task and have it run a staged pipeline that plans the work, looks through the current codebase with a workspace index, gathers only the most relevant context, makes symbol aware edits, then runs formatting and tests. If something fails, it should try to repair the problem and validate again until it passes or hits a retry limit.
Please keep tool use approval gated, especially for shell, git, and filesystem actions. I also want a queue style think workflow, support for swarm style workers, git worktrees for isolated runs, workspace diff previews before applying changes, and fast parallel validation. The retrieval should stay grounded and repeatable. Keep it practical and local first, with clear docs and a usable CLI. If anything is unclear, look up current docs online and fill in sensible defaults.
Want more depth? Deep Reverse