Skip to content
Back to skills

Anti Hall Afk

ASecurity

AFK mode - agents work silently and log a milestone digest while you are away. Use for "afk", "I'm away", "back", "progress", "afk status", "turn off afk / idle detection".

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 28, 2026
ai-agentsgo

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add talas9/anti-hall --skill anti-hall-afk --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Anti Hall Afk?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Anti Hall Afk
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/talas9-anti-hall-afk/badge)](https://www.skillsdirectory.com/skills/talas9-anti-hall-afk)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: anti-hall-afk
description: AFK mode - agents work silently and log a milestone digest while you are away. Use for "afk", "I'm away", "back", "progress", "afk status", "turn off afk / idle detection".
---

# AFK mode (Codex)

## When to use

The owner says they are stepping away ("afk", "going away", "brb"), comes back ("back", "what happened"), asks for the
digest ("progress"), or wants AFK settings changed.

## Commands

| What | Typed prompt | Command line |
|---|---|---|
| Start AFK (machine-wide, every session) | `afk` | `ah-engine afk on` |
| End AFK and print the digest | `back` | `ah-engine back` |
| Print the digest, stay AFK | `progress` | - |
| Show the state | - | `ah-engine afk status` |
| End AFK without a digest | - | `ah-engine afk off` |

A typed `afk` / `back` / `progress` prompt (the whole prompt, any case, surrounding spaces ignored) is answered by the hook and
not sent to the model. `ah-engine back` is the always-available escape: it works from any terminal, even when a typed `back`
is not recognised (quoted, or inside a longer prompt). A typed `back` that finds the flag busy says so and the flag stays ON;
`ah-engine afk` / `back` wait longer for the flag lock (`afk.cli_lock_wait_ms`), and only if it stays busy that long do they
exit non-zero, changing nothing: run them again.
Every flag write is fenced (`afk.fence_infix`): a hook stalled past `afk.lock_stale_ms` whose lock was taken over never
lands its stale write after a newer `back`. Latency caveat: hook calls of one engine daemon queue on an in-process mutex
before their lock budget starts, so a typed `afk` / `back` behind another hook of the same daemon can take longer.
AFK also starts by itself after `afk.idleMinutes` without an owner prompt on this machine; that idle AFK ends on the owner's
next prompt. A manual AFK lasts until `back`.

## What changes while AFK

- Each session gets the AFK rule once: no narration between tool calls, no status prose, decide instead of asking (never
  anything destructive), at most one line at the end of a turn, one checklist bullet per milestone in its progress file
  `.anti-hall/progress/<date>/<session>.md` (`- [x] done ...` / `- [ ] open ...`). A short reminder repeats in long turns.
- The digest (NEEDS OWNER bullets first) is the bullets after the session's AFK marker; the percentage is `[x]` bullets / all checklist bullets.
- No blocking questions: Codex has no hookable question tool, so the ladder is carried by the AFK rule, and a turn that ends
  on a plain-text question is held at Stop with the ladder (at most `afk.question_max_holds` times).
- Question ladder: decide from the plan and context; ask the advisor; only if still unclear AND not implied by the plan AND the
  choice is destructive/irreversible or would wreck the work if made the other way: park that ONE item as
  `- [ ] NEEDS OWNER: <question>` in the progress file and continue the other parts of the plan (very rare).
- Codex: the reply-length hold is not applied (the Stop check reads Claude transcripts only); the question hold, rule,
  reminders, digest and prompt commands are. All other guards are unchanged.

## Settings

Read and change the `afk.*` keys below with `ah-engine settings get afk.idleMinutes` and `ah-engine settings set afk.idleMinutes 30` (`settings reset <key>` undoes it). Switch AFK itself with `ah-engine afk on|off` / `ah-engine back`; the master switch also reads the `ANTIHALL_AFK` environment variable, which overrides the stored value.

| Key | Default | Effect |
|---|---|---|
| `afk.enabled` | true | Master switch for the whole feature |
| `afk.idleDetect` | true | Idle detection |
| `afk.idleMinutes` | 20 | Minutes without an owner prompt before idle AFK |
| `afk.promptCommands` | true | Typed `afk` / `back` / `progress` |
| `afk.enforce` | true | Nudge and capped hold of overlong AFK replies |
| `afk.measure` | true | Output tokens per turn, AFK vs present |
| `afk.conciseCodex` | true | Concise reply rule at Codex session start |
| `afk.noQuestions` | true | Deny the question tool and hold a turn ending on a question, while AFK |
| `afk.offerHold` | true | Also hold a turn ending on an offer of work ("Want me to ...?", "Let me know if ..."), while AFK or under a no-stop order: do it and report |
| `afk.answerPresence` | true | An answered question-tool call counts as owner presence (no idle AFK while the owner answers) |
| `afk.presentMinutes` | 10 | Minutes after a live owner prompt (typed in a session after AFK started) during which that session's question block is suspended; other sessions stay blocked; 0 = off |

Texts, limits and patterns: `engine/defaults/afk.toml`.

## Telemetry

`ah-engine metrics` shows `afk_entered{how}`, `afk_turns`, `digest_entries`, `idle_trips`, `afk_overlong_turns{action}`,
`afk_output_tokens{mode}`, `afk_turns_measured{mode}` (tokens / turns = output tokens per turn, AFK vs present),
`afk_question_denied{tool}`, `afk_question_parked{action}` (nudged, capped, listed) and `afk_stale_injection_suppressed{event}` (an idle AFK ended because owner presence was newer).

## Concise style

Codex has no output styles: the concise reply rule (lead with the answer, 1-3 lines, no recap, no narration) is injected at
session start while `afk.conciseCodex` is on.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.