Skip to content

Releases

v1.5.1 - Hook protocol and installer preservation

Choose a tag to compare

@ucsandman ucsandman released this 05 Sep 08:26

Fixed

  • Serialize Claude and Codex pre-tool decisions inside the required
    hookSpecificOutput envelope. Denied tools retain exit code 2 and a reason
    on stderr. The hooks stay enabled.
  • Add eight real-process protocol checks for both guard runners, including
    allow/deny and shell/MCP inputs, and run them in CI.
  • Regenerate the supported-target documentation from the current registry.
  • Correct the obsolete 18-target parity assertion and package descriptions to
    match the 16 configured sync targets.
  • Preserve existing lifecycle hook configurations during first-run setup.
    Four fixture checks verify empty and populated configurations stay
    byte-identical for Codex and Gemini, with truthful guard-presence reporting.

Added

  • engine/hooks/capability-graph-guard.cjs: enforces the Claude Code subagent
    capability graph (Fable -> Opus/Sonnet/Haiku, Opus -> Sonnet/Haiku, Sonnet ->
    Haiku, Haiku -> nobody, downward only) plus the read-only advisor upward
    edge, wired by first-run.cjs into PreToolUse, SubagentStart and
    SubagentStop; disable with CAPABILITY_GRAPH_GUARD=off. The real
    SubagentStart payload carries subagent_config: null, so the caller model is
    resolved lazily by callerModelFor (registry -> subagent_config ->
    <session_dir>/subagents/agent-<id>.meta.json -> the subagent's own transcript
    -> agent-file frontmatter) and cached back into the registry; without that
    every subagent resolved to unknown-caller and was allowed.
  • engine/hooks/fable-delegate-guard.cjs: delegate-first enforcement for a Fable
    main loop in Claude Code. While the session model is Fable it budgets direct
    edits (free under ~/.claude and the session scratchpad, 3 small ones per
    prompt elsewhere) and denies code-writing shell commands, injects the
    delegation briefing once per session, and exempts subagents. Wired by
    first-run.cjs into PreToolUse, UserPromptSubmit and SessionStart.
    Override one command with # FABLE_OK: <why>; disable a session with
    FABLE_DELEGATE_GUARD=off; audit with --report.

Changed

  • Plain git push is no longer a hard stop in core/safety/guards.json; force
    pushes, hard resets and the other destructive forms still require approval. A
    hook cannot ask a human, so the plain form blocked every push from Claude
    Code.

Fixed

  • Orchestration hardening after an adversarial review of 1.5.0:
    subscription-CLI children run confined to their workspace with native tools
    disabled (claude --tools "", codex --sandbox read-only; agy is skipped);
    read_url_content fetches http(s) only and lives under a separate network
    permission that read-only roles do not get; delegate_parallel without
    workspace_mode still rejects shared mutation; graph limits reset per turn and
    per /research//review//swarm instead of accumulating for the session; a
    stale Esc no longer poisons the next subagent; hard-stop confirmations are
    serialized across parallel children; one rejected sibling no longer discards
    the batch; a mutating child that asked for branch fails closed; failed and
    cancelled branch children still hand their diff upward; worktrees live outside
    the repo and /org prune sweeps orphans; graph details are redacted and
    paths relative; max_turns keeps the child's last output; shorthand model
    overrides keep the inherit fallback; keyless provider+base_url targets and
    api_key_env work; the empty tests permission is gone; orchestration events
    render in every shell; a malformed config is a notice, not a failed headless run.
  • Subscription only, delegate-first: subagents never use a metered API (defaults are
    the Claude login per role, falling back to the Codex login; allow_api_models
    opts in), subscription CLIs are launched without the vendor API-key variables so
    they bill the login, harness model names map to CLI aliases (claude-haiku-4.5
    -> haiku; the raw id made Claude Code run its default model), and an expensive
    interactive model (Fable) turns orchestration on in delegate-first mode with a
    per-operation cap on expensive-model agents.

Verified: 126 Node checks, 530 Python tests, Ruff, generated documentation checks, and a local wheel build. Prepared by Codex, an AI coding agent, with the completed Claude installer correction included.

v1.4.0 — memory, MCP, usage tracking, headless mode, TUI UX overhaul

Choose a tag to compare

@ucsandman ucsandman released this 21 Aug 00:39

Added

  • Turn-done notification: a terminal bell plus a toast (3 files changed · 2m14s) when a turn
    that ran 5 seconds or longer finishes while the terminal is unfocused, for agent turns and for
    /test, /fix and the other background workers. Safe-off on terminals that never report focus,
    toggled and persisted with /notify on|off (new workspace settings file
    .agnostic/settings.json via StateManager.get_setting/set_setting).
  • /diff: a turn browser over the automatic per-turn checkpoints — bare /diff in the TUI
    opens a picker (newest turn first, each row saying how many files it changed) and prints a
    unified diff per file from the write snapshots, /diff <turn> skips the picker, and the
    legacy CLI lists the checkpoint names. Read-only, and usable while a turn is running
    (agent/tui_diff.py, UndoManager.changed_since).
  • Multi-line composer: the TUI prompt is a TextArea (agent/tui_composer.py) instead of a
    single-line Input — Enter sends, Shift+Enter / Alt+Enter / Ctrl+J insert a newline, the box
    grows to 8 lines then scrolls, and a pasted block keeps every line (Input kept only the
    first one and silently threw away the rest of a stack trace).
  • /memory: a picker over the saved memories (bare /memory in the TUI, ↑/↓, Space/Enter to
    print one in full), plus /memory show|save|forget <name> in both shells — the store was
    writable only by the model until now (agent/tui_memory.py, docs/memory.md).
  • Headless mode: agnostic -p "..." (aliases --prompt, --print, - reads stdin) now runs
    one turn with no TUI through agent/headless.py — the answer alone on stdout (or one object
    with --output-format json), tool/system/error chatter on stderr, exit 1 when the turn
    errored, and hard stops denied unless --yes is passed (docs/configuration.md).
  • Persistent auto-memory: workspace store in .agnostic/memory/ (MEMORY.md index +
    one markdown file per memory), injected into the system prompt as
    "## Memory (auto-recalled)", with save_memory / recall_memory tools (agent/governance/memory.py).
  • MCP client (zero-dependency, stdio JSON-RPC): servers from .agnostic/mcp.json,
    .mcp.json (Claude Code format) or ~/.agnostic/mcp.json register as
    mcp____ and run through the governed execute() path;
    registry.mcp_status() reports state (agent/tools/mcp.py).
  • /mcp: a Server / State / Tools / Error table of the configured MCP servers, /mcp reload
    to restart them and re-read the config files without leaving the session, and a red
    !mcp badge in the TUI status bar while any server is in the error state — a
    misconfigured server used to fail silently into the log.
  • Subscription bridges rewritten: every fenced tool call parsed (not just one),
    claude -p session continuity via --session-id/--resume with delta sends,
    --output-format json preferred, codex resume when supported, usage surfaced
    for cost tracking (docs/subscriptions.md).
  • Usage / cost / latency log: .agnostic/usage.jsonl with p50/p95 and cost
    summaries; agent/llm/pricing.json ships with explicit nulls for the user to
    fill in — costs are never invented (agent/llm/usage.py, docs/usage.md).
  • Every LLM call is now journalled: LLMClient.chat_completion writes one
    .agnostic/usage.jsonl entry per call on every path (API, streaming,
    subscription bridge; success and failure), streamed turns keep the usage chunk
    that arrives with an empty choices list, and the numbers surface as a dim
    $ 0.42 - p50 12.3s segment in the TUI status bar and a p50 12.3s | $0.42 today column in the /model picker.
  • A bare /session in the TUI opens an arrow-key resume picker of this
    workspace's saved sessions (newest first, with turn count, timestamp and
    notes) and loads the chosen one; /session save|load|list <name> is
    unchanged, so the flat list stays greppable.
  • Double-Esc rewind in the TUI: every turn is checkpointed silently, and pressing
    Esc twice while idle opens a two-step picker — which turn, then whether to
    restore the files, the conversation, or both. The generic half of the /model
    picker moved to agent/tui_picker.py::PickerScreen, which the rewind screen
    subclasses.
  • TUI tool cards now carry the tool name, how long it ran and how many lines the
    fold hid (⚙️ run_command · 3.4s · +812 lines hidden — ctrl+o), clipped on a
    line boundary instead of mid-line, and Ctrl+O prints the last tool's output
    in full — the escape hatch ships with the fold.
  • A ! prefix in the TUI runs a shell command locally without spending a turn:
    !git status, !ls tests. It goes through the same run_command tool the
    model uses, so core/safety/guards.json stays the single policy source and a
    hard-stop command still asks, and it appends nothing to the conversation —
    zero context, zero LLM calls.
  • The TUI status bar carries a CTX ███░░░░░░░ 31% (620k/2.0M) gauge — bar,
    exact percentage and colour (green/yellow/red), fixed width so it never
    shifts — and warns once, before the cliff, naming the auto-compaction
    threshold and the remediation. /compact now prints what the distillation
    kept, and /compact undo restores the pre-compaction messages.
  • Typing ahead during a governance hard-stop no longer revokes it: text that is
    not a y/n answer is queued as a prompt and the confirm stays pending (Esc is
    the explicit deny, so a worker can never block forever). A verdict can carry a
    reason — n: too risky, patch the test instead denies and prepends the reason
    to the next turn.
  • Shift+Tab in the TUI cycles the trust tier (strict → trust-reads →
    trust-tests → trust-all → strict), and the status bar carries a 🛡
    badge read live from SafetyGuard on every repaint — red on trust-all — so
    the displayed tier can never drift from the one being enforced.
  • Ctrl+C in the TUI escalates instead of scolding: while a turn runs it cancels
    it, and a second press within 1.5s force-exits (idle, two presses quit). Ctrl+L
    asks twice before clearing the log. Both share one _double_tap timer.
  • Live busy indicator in the TUI status bar: ∴ Percolating… 47s · esc to cancel,
    ticking once a second while a turn or background worker runs, with the verb
    chosen once per turn (override the pool with AGNOSTIC_SPINNER_VERBS). The
    status bar is now built as a rich.text.Text, so a cwd or model name
    containing [ can no longer be parsed as markup.
  • /model in the TUI is an interactive picker (agent/tui_model_picker.py):
    arrow keys move, Space/Enter select, Esc steps back. Preset → (subscription
    presets only) concrete model → effort, the last step skipped when the model
    ignores it.
  • Subscription presets can pin the model their CLI runs: pick Claude Code
    Monthly Subscription, then claude-fable-5, and the bridge passes
    --model claude-fable-5 to claude (-m for codex, --model for agy).
    LLMConfig.sub_model, LLMConfig.sub_models(key),
    switch_model(sub_model=...); text form /model 2 claude-fable-5 high (any
    order after the key, legacy CLI included). Status bar shows preset › model.

Changed

  • agent/tui.py (1352 lines) split: the slash-command dispatcher and /commit
    workflow moved verbatim into agent/tui_commands.py as SlashCommandMixin
    (~450 lines). No behaviour change; AgnosticTUI inherits the mixin. The
    background-dispatch test now parses the method's own source file.