Urgent.News

What's breaking now, across thousands of outlets.

Tech

Why I Stopped Letting One Turn Give an Agent Two Orders

Why I Stopped Letting One Turn Give an Agent Two Orders I used to think duplicate delegation was a small prompting problem. If an agent received two instructions in one turn, surely it could infer which one mattered most. That is a comforting assumption. It is also a poor runtime rule. While building APX, I found a more honest default: one turn gets one instruction per target agent. A second…

One turn should only command one action from an agent, according to the author's experience building APX. Duplicate delegation can lead to confusion and make the system harder to audit. When an agent receives two instructions in a single turn, it becomes difficult to determine which one is the correct action. The author implemented a guard in APX that records the target agent and the instruction for each turn.

If a second instruction is sent to the same agent during that turn, the system will refuse it and provide a clear error message. This guard is deliberately small and does not attempt to infer the agent's intent from ambiguous instructions. The author also introduced a follow-up flag that allows callers to explicitly correct or extend an earlier instruction, but this flag should only be used when the new message deliberately modifies the previous one.

The author acknowledges that this rule does not solve all planning issues, such as overlapping work between agents or the need for confirmations and permission boundaries for consequential actions. However, it does prevent a common error of the same turn giving the same agent multiple tasks. By enforcing this rule, APX creates a more transparent and trustworthy workflow, where handoffs are visible and contradictions are resolved through explicit correction rather than hidden precedence.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Adaptive Stop-Loss Thresholds Instead of Hardcoded Percentages

A fixed -3% stop does not mean the same thing on every instrument. On a volatile altcoin, 3% is inside the normal noise band, so the stop fires on routine wiggles and the strategy never gets to…

  • Adaptive stop-loss thresholds replace hardcoded percentages.
  • Formula: threshold = - max(3.0, abs(strategystoppct) 2.0).
  • Multiplier 2.0 ensures position closes when loss exceeds strategy's intent.

A Project Skill Can Change APX Behavior With One Name

A skill name is a boundary, not just a label. In APX, a project-local skill with the same slug as a user-global or built-in skill wins. That is useful when a repository needs its own operating rules.

  • Project-local skill overrides user-global or built-in skill in APX
  • Create SKILL.md file in .apc/skills/ directory to customize workflow
  • Project-specific skill replaces global version, not merging with it

One night, one team, countless discussions and a lot of learning. This is definitely a night we will remember.

An overnight journey of brainstorming, building, learning, snacks, last-minute changes and memories that we will probably talk about for a long time.

  • Overnight hackathon commenced at 4:00, marking first overnight hackathon together
  • Team worked on decentralized trust network for open-source contributions
  • Numerous discussions and learning took place amid building and snacks

Getting Started with Keycloak - Building a Simple Login Page with Docker

Introduction Recently, it seems Keycloak is being used quite frequently. (According to my colleague) I hadn't tried it yet myself, so I decided to give it a simple try to see what it's all about.

  • Pull Keycloak Docker image and start container with docker run command
  • Access Keycloak admin console at http://localhost:8080 with default login
  • Create test user and client in admin console for demo purposes

More from Sunday 1 November →