-
Notifications
You must be signed in to change notification settings - Fork 0
[claude-hackernews] Reply draft: Agentctl Show HN, replay-against-old-traces vs real-time hooks (id=48057567) #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
NiveditJain
wants to merge
1
commit into
main
Choose a base branch
from
hn-agentctl-replay-vs-realtime-48057567
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Reply on "Show HN: Agentctl, a local control plane for coding agents" | ||
|
|
||
| - **HN:** https://news.ycombinator.com/item?id=48057567 | ||
| - **Status:** draft (pending manual post) | ||
| - **Story:** Show HN: Agentctl, a local control plane for coding agents (id=48057567, 2 points, 0 comments at draft time, 11 hours old, repo at https://github.com/chocks/agentctl) | ||
| - **OP:** `chocks` | ||
|
|
||
| ## The post | ||
|
|
||
| OP is a Show HN for `agentctl`, a Go single-binary tool that gates risky agent actions (package installs, shell exec, secret access, file writes, outbound API calls) at a local seam. Design choices the OP highlights: local-first, no HTTP server, no hosted component, everything under `~/.agentctl/`. The piece they didn't expect to use as much: a **permissive-then-tighten-then-replay** loop, where every gated decision lands in jsonl and you can re-evaluate stored sessions against a stricter policy without re-running the agent. Ships with a TUI for browsing sessions and stepping through replays. Targets Claude Code and MCP-based clients (Codex). OP frames it as "WIP and mostly a project for myself" but solicits feedback by posting it. | ||
|
|
||
| Discovery path: HN `/show` feed (Show HN listing). | ||
|
|
||
| ## My reply | ||
|
|
||
| ``` | ||
| (disclosure: I work on FailProof AI: https://github.com/exospherehost/failproofai) | ||
|
|
||
| The replay-against-old-traces loop is the part I think ages best. We took a different cut at the same seam. Hooks in JS, allow/deny/instruct returned to the agent inline, decisions to NDJSON for inspection. No replay step today. Doing it well needs the trace to capture enough context (cwd, tool inputs, surrounding events) that a re-run produces the same verdict, which gets harder once policies branch on environment. | ||
|
|
||
| Two questions: | ||
|
|
||
| 1. How does replay survive tool/SDK upgrades? A trace from last week may not replay against a tighter rule if the tool name or input shape moved. | ||
|
|
||
| 2. Do you gate outbound calls at the process layer (proxy or dns) or at the tool-call boundary? Different blast-radius story for each. | ||
| ``` | ||
|
|
||
| ## Insight for the FailProof team | ||
|
|
||
| - **The replay-against-old-traces loop is a real product gap.** FailProof already writes every policy decision to `~/.failproofai/hook.log` (NDJSON), but the logs are framed as a debug surface for fail-open errors, not as a corpus to re-evaluate against tighter rules. Agentctl's framing - "permissive for a week, then tighten and replay" - reverses the iteration loop: you author policy *from observed behavior*, not from imagined risks. Worth prototyping a `failproofai replay --policy <new-policy.js>` that re-runs stored decisions against a candidate ruleset and reports the diff. The design tax is making the trace self-contained enough to replay deterministically across SDK/tool-name churn (the question I asked the OP). | ||
| - **Trace schema becomes a public contract once replay exists.** Today our hook.log schema is internal. If we add replay, the jsonl shape (field names, normalization of toolInput, version stamps) becomes a thing teams will pin on - so it needs versioning before the feature ships, not after. | ||
| - **Audience here is the high-end "I am willing to write Go to gate my agent" crowd**: the same crowd that prefers code-as-policy over YAML rules. They are likely receptive to FailProof's JS-policy story but allergic to anything that smells like SaaS. Lead with "no hosted component" framing in the README (we already have it; the agentctl OP centered it as a design feature, suggesting it lands). | ||
| - **Voice signal:** the OP's "the part I didn't expect to use as much as I do" is a great structural device for our own writing. Concrete, anti-marketing, and reads as honest because it admits a wrong prior. Worth borrowing in future blog posts about which FailProof policies actually fire vs which ones we expected to. | ||
|
|
||
| ## Notes / findings | ||
|
|
||
| - MCP launch-order trap struck again: the `browser-use` MCP root client booted pointing at `http://127.0.0.1:9333` (Reddit harness port), so every MCP read primitive failed with "connect() timed out". Worked around it via the `browser-use` CLI subprocess form documented in `INSTRUCTIONS.md`. No new info here, but confirming the workaround still holds in May 2026. | ||
| - Reply form is rendered on this thread; thread is 11h old and uncomplaining. The OP's account `chocks` is active recently and the thread hasn't been flagged. | ||
| - 0 comments at draft time means the OP will see this as the first response. That asymmetrically raises the bar on tone: a flagged-shape comment here would be visibly disrespectful to a solo dev's WIP. The substantive-engagement-first form (compliment-then-question-then-disclose) was the right structure. | ||
| - Draft is ~125 words; in the safe zone (working FailProof reply was ~110, flagged was ~220). One repo URL (in disclosure), no install commands, no policy-name comma-list, no dashboard plug, no version-number talk. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a language tag to the fenced block to satisfy markdown lint
Line 16 uses a plain triple-backtick fence; markdownlint MD040 expects a language identifier. Use
```textsince this is literal post content.Proposed fix
🧰 Tools
🪛 markdownlint-cli2 (0.22.1)
[warning] 16-16: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents