Research idea

Coding Agent Workflow Guardrails

Day · 2026-06-26 · Software Intelligence

Agent-heavy development needs controls inside the daily workflow: counters for forbidden code patterns, persistent views over parallel agent sessions, and a narrow regex-engine test for Rust rule scanners that need lookaround.

3 ideas

Ratchet checks for agent-created type-checker suppressions

Teams letting coding agents edit production code can add a ratchet check for suppressions such as # pyrefly: ignore. The check keeps the current count as the ceiling, fails when an agent adds a new instance, and leaves any increase to a planning agent or human reviewer with broader context.

This is a cheap guardrail because it avoids long style prompts and does not require an LLM judge. It fits places where a quick suppression may be valid in rare cases, yet harmful when used as the default path. A small trial can start with one rule in CI, report the current count, and block only new instances on agent-written branches.

Persistent terminal workspaces for parallel coding-agent sessions

Developers running several coding-agent CLIs can test a full-screen terminal workspace that keeps each agent, shell, open file, and working-tree diff visible in one place. The adoption test is practical: run two or three agents on separate tasks, restart the UI during a session, and check whether the operator can reattach without losing process state or track of file changes.

Workbench is a concrete example of this pattern. It uses a private tmux server for persistent agent and terminal panes, supports Claude Code, Gemini, Goose, OpenCode, and Cursor, and adds read-only file viewers plus a live git diff per workspace. The available evidence gives product details, not task-success benchmarks, so the first check should measure operator-visible failures: lost sessions, wrong workspace edits, missed diffs, and time spent switching between tools.

Resharp benchmark for Rust rule scanners that need lookaround

Maintainers of Rust-based rule scanners can run a contained Resharp evaluation when regex rules need lookaround, especially for comment-style checks that are awkward to express through AST queries. The test should use the project’s real rules, record absolute runtime, rule count, hardware, and repeated-run variance, and include compatibility failures because Ratchets v0.4.0 is a breaking engine change.

The Ratchets report gives one useful starting point: after replacing Rust’s regex crate with Resharp, the author saw about a 15% speed gain on the Sculptor codebase with no other code changes. The more reliable reason to test is functional coverage, since the motivating gap was proper lookaround support for regex-based rules.