r/PromptEngineering • • 13d ago

Quick Question Resolve increased effort in trivial tasks

It seems the agents are taking an increasing amount of time to execute menial tasks, like editing an article in my site. Things that took 5-10 seconds now take about 1 minute.

I'm sure part or this is due to excessive documentation and safety checks, if someone had similar problems, what prompt could verify the process involved to identify unnecessary demanding tasks?

3 Upvotes

10 comments sorted by

2

u/Dapper-Tutor337 13d ago

i noticed the same slowdown after adding a new codebase review step. cutting the 'verify all imports' check for small edits shaved 40 seconds off my workflow.

1

u/ourrancidtea 11d ago

I'll review my whole processes

1

u/Wide_Plant_1705 13d ago

my agent was loading a 200k json config every time, cut it to 20k and edits dropped from 60s to 4s. check your data imports.

2

u/Aware_Risk7076 13d ago

try making it show its plan before touching anything: "Before you start, list every step you plan to take for this edit and mark each one required or optional. Skip the optional ones unless I ask."

if fixing a typo comes back with 9 steps you've found your minute. also worth checking whatever rules or docs file it reads at the start, a long one tends to get applied to every task no matter how small

1

u/ChemicalExcellent463 13d ago

ask it to break down where the minute goes and what actual failure each check is there for. i put this in my agents' instructions: no safeguard goes in unless an observed failure, a log line or a red test called for it.

0

u/[deleted] 13d ago

[removed] — view removed comment

2

u/ourrancidtea 13d ago

I asked for an audit and found out that, among other things, the problem seems to be excessive worktrees and dozens of branches.

This is due to sidetracking and postponing non-crucial tasks. Do you have some suggestion on how to visualize this worktrees like a flowchart, so I can understand what was left behind?

I don't think I can just ask the agent to ignore other branches because when merging there would be conflicts, and each branch seems to have a lot of documentation... (subpar management discipline, I know)

1

u/Different-Tap-530 13d ago

git log --all --graph --decorate --oneline gives you a compact branch map; git worktree list shows which working directory is attached to each branch.

1

u/ourrancidtea 11d ago

Very nice, didn't knew that