hm.... you know.... I wonder.... what if we tur...
# proj-agent
n
hm.... you know.... I wonder.... what if we turn the interaction model sideways.... step one (select account / privilege construct ) step two (select repo ... or 'conversational context' ) step three ( evaluate microagents and tools AVAILABLE for said construct and context ) step four( evaluate LLM targets to assign to roles relevant to this construct and context ) step five ( init construct-context-sprocket ) (this could later involve manual override/enablement of microagents/tools/etc ) step six ( collect external assets, and instantiate the runtime environment with repos etc) now we have landed at a state where we know: 'what we are trying to accomplish' 'what resources we have available to us' 'what services, internal and external are involved in this sprocket' 'what artifacts are involved in this bubble' We can intelligently prune that which is NOT relevant to the work at hand. ie: • no point adding bitbucket gitlab scoped context components to a github scoped task • no point adding windows related components for a linux scoped task • no point adding rust or cuda related context addtiions if we're working on a typescript project ) We can then ask the LLM 'describe your understanding of the work to perform based on this information We can show this to the user to achieve validation
"This look right to you fleshperson?"
(iterate until fleshperson agrees that the 'definition of done' is correct.) this could include: • target branch name • tools to use • tools NOT to use • secrets relevant to this context • microagent / knowledge sources • error handling • notification steps • finish steps • a pony THAT blob can include the 'first message' that's stored to use when context is truncated or compressed. that could also potentially evolve into a goal-scoped task iteration blob, allowing for more narrowly scoped tasks to be sliced out and accomplished, without losing the bigger picture desired end state something LIKE this might help prevent deviation from the bigger goal, as the model can sorta ... remind itself what its main goal was between issues/short-scoped tasks
p
for my debug-oriented system prompt, I have this bit, which appears to help (Gemini at least, because it has 1M context window) to spot a repeating cyclical thinking pattern in the current interaction (I feed it OpenHand's output), and it triggers this back-tracking protocol on its own about half the time I wish it would; sometimes I help it with a follow-on prompt that sounds like "are we making progress? Activate structured debugging protocol if we're stuck in a loop"
Copy code
6 · Architectural Back‑track (when progress stalls)

Trigger: Invoke this protocol if either of the following is true:

The same test (or error signature) has failed after ≥ 3 full instrumentation→fix cycles.

Fixing one test consistently causes a different, but related test to fail (whack‑a‑mole loop).

Once triggered:

Summarize Loop History – Briefly recap each prior attempt (hypotheses, patches, outcomes) in ≤ 5 bullet points.

List Core Assumptions – Enumerate the architectural assumptions behind current logic. Explicitly challenge each one.

Select Keystone Fix – Identify the upstream module or premise most likely to collapse the cascade of failures, based on test coverage and system architecture.

Design Boundary Instrumentation – Add debug logs at module boundaries to confirm or deny the suspect assumption (e.g., counts returned from a builder, arguments passed between layers).

Propose Minimal Redesign – If evidence shows the design is flawed, outline a minimal yet correct redesign; pause until the human approves.

Resume Structured Cycle – After approval and implementation, return to Step 1 of the Debugging Cycle with fresh hypotheses and focused tests.
I'd be up for setting up the prompt engineering eval infrastructure, if you want to have a disciplined go at this problem, maybe with something like: https://dagshub.com/ + https://dvc.org/ + https://www.langchain.com/langsmith I see 2 main challenges: • default system prompts for OpenHands, on a per SOTA model basis, including several local self-hostable ones (my main interest) • personalize these further on a per project (multiple heterogenous repos) basis; I think we might gain several efficiency % points due to this • treat tools, as code, just like we would customize microagents/microcontexts
or maybe @limited-student-10747 @red-autumn-42356 and @chilly-france-44439 - might you have already something in the works on this? re: https://openhands-ai.slack.com/archives/C06R25BT5B2/p1753405090928109?thread_ts=1753397574.914759&cid=C06R25BT5B2 I think the high-level challenge is "to what extent can we RCT scaffolding" a la: https://github.com/GenseeAI/cognify for OpenHands
n
I think there's some major retooling going on w the the microagent code currently ... so I was jus sorta speaking out loud wrt some of the general conversations being observed .... I think FIRST thing "collective we" aught do: come up with a slew of metrics we agree upon to retain/compare/evaluate system prompt size (context), is prolly one. microagents tokens by type microagent versions tool names and versions and lengths rolling percentage of context consumed by system prompt/microagents action retries ... prompt processing time
👍 1
goal steps... dif tools used by model / # of times used successful / unsuccessful re-fires / how many times did we have to try to hit that nail? steps taken to accomplish task ...
the idea being to collect enough different / orthogonal streams of telemetry that one or two things not working right / panning out don't preclude value from being derived from the data ... so long as "we" don't put our thumb on the scale anywhere
an so objectively one could assess 'did it make things (better/worse/same) by the metrics being evaluated' admittedly, the thing being done will obviously influence the data heavily, but I think that can be accounted for sufficiently to determine if it's helpful or not in a mostly kinda prolly not too terribly biased way 🙂
DF86F1C4-578A-4999-A28C-1D351EA1C845_1_105_c.jpeg
p
maybe the goal here is reproducible/replicable findings? not clear who leads that today with clarity, what systems/approaches could we use to pull this off?
n
well.... so... the downside that comes with that is artificial constraints
I don't disagree
and.... I think that if we start emitting / collecting some consistent data for a bit .... it'll likely become more obvious than it is now what data/telemetry/metrics will / wont be useful
p
I don't think this is an observability problem (in the SRE sense)
n
chuckles I haven't looked to see what there is
I do think there's not sufficient information as it is now to assess impact, but IDK the best way to glean that at the moment either ..... my thought was that by sticking tensorzero inbetween openhands and LLM I'd get all the telemetry I'd want "for free"
but I've not gotten there yet, so fiik
p
output, outcome, impact metrics; we work with what we have https://en.wikipedia.org/wiki/Theory_of_change
n
¯\_(ツ)_/¯ I mean sure a moistened finger'll work to assess wind direction ..... you can use a miata to haul a shitload of sand ... that doesn't make it a dump truck ... you can use a brick to open a window ..... once ..... that doesn't make it a single serving window opener either
p
my theory is that we could improve performance (measured by: latency, nb. steps, cost per token) by tweaking some of the variables we have control over: microcontexts and tools
n
I agree
I think the demonstration of quantative improvement would need to be a lot more robust than fafo to warrant serious OH devtime tho
p
so the search space is literally enormous, and your guesses (or anyone's) are as good as mine we could qualitatively brute force our way to better local maxima
n
AND IT'S still better'n nothin
p
SOTA OpenHands is FAFO, lol, look at the git history for microcontexts; that's OH dev time
n
I hold myself to a higher standard of shitshow 😉
0913BBC2-DBA2-467F-BC90-19C41B61FC9B_1_105_c.jpeg
then again....
p
gpt-5 OH uses microcontexts written for claude, and it works(?)
there is a swe-bench to compare different provider-models, there is no swe-bench to compare different swe agent configurations using the same model; or is there?
or we can just do nothing, and wait for SOTA learning models to become better, AGI-level, as it won't matter soon enough but I think we could maybe squeeze +10% percent performance through better scaffolding? (my Theory of Change) what percentage increase would be worth your time?
n
lab1-40.webp
idk honestly ... the whole kit and caboodle is moving so fast that it'd be hard to legitimately identify good test cases
like I've barely gotten OH to give me value yet.
getting there
but it's a lot of uphill backwards for me.
then again.... that's mostly my fault.
and I don't wanns JUST improve my need and not others
p
you might be looking for specific kind of value? could you articulate?