Repository navigation
v0.13.0
Added
gmail_manager.py sendnow refuses without--approved. Same gate and wording asslack_client.py(the sharedrequire_send_approval, now labelled Gmail), checked before any network call and before the text gates, with no environment bypass.send_email()takesapproved=False, so a programmatic caller is gated too. Every documented send command carries the flag, to be added only at the post-approval step; a recipient outside the work domain still needs the two-turn approval first.docs/gates_inventory.mdgap 1 is closed.- The Slack handle gate now runs inside
slack_client.py. A named, resolvable person with no<@ID>is refused onpostandupdatebefore the network call, using the same logic as the hook (gates/handles.py, overrideSLOP_GUARD_ALLOW_PLAIN_NAMES=1, also barred fromtoken.env). Two live accounts for one name warn and pass. The chase queue and the dashboard click-send stay warn-only: they print the finding and pass the same override to the child, so a cron send cannot start failing. - Em-dash gate on Linear and Jira writes.
linear_client.py(create, update, comment) andjira_client.py(create, edit, comment) refuse an em-dash or en-dash in the title, summary, description or comment, after the--approvedcheck and before the network call. OverrideSLOP_GUARD_ALLOW_EMDASH=1.docs/gates_inventory.mdrecords exactly what is left for WhatsApp, which lives outside this repo. - Send gates now live in the sending scripts, not only in Claude Code hooks. The em-dash ban, the internal Fathom link block and the reply-router conversation claim moved into a shared package,
.agent/scripts/gates/.slack_client.py(both connectors),gmail_manager.py sendandgdoc_comment.pyrun those checks before their first network call, so the rules hold under agy-bridge, opencode, cron or a member's setup. The hooks import the same functions and behave as before. Overrides are the existing ones (SLOP_GUARD_ALLOW_EMDASH=1,SLOP_GUARD_ALLOW_FATHOM_CALLS=1,CLAIM_GUARD_DISABLE=1);slack_client.pyrefuses to read them fromtoken.env.gates/outbound.py checkgives WhatsApp helpers outside the repo the same check.docs/gates_inventory.mdlists every hook as in-tool, moved, or hook-only with a reason. - A read-only checkout health check.
one_host_check.pyreports which checkouts hold unpushed commits, which machine last wrote eachjournal/statefile, and whether the ASB app opens a non-canonical checkout. Nothing was changed on any machine. - A prompt hook recalls the right memory files.
memory_recall.py(UserPromptSubmit) matches the prompt against the names and descriptions of the files injournal/memory/that the always-loadedMEMORY.mdindex does not list, and prints at most five lines (Relevant memory: <name> - <description> (<path>)). Kill switch:MEMORY_RECALL_DISABLE=1. - Routines keep a note between runs.
routine_memory.py recall <routine>prints the last note andretain <routine> --text ...stores a new one (last 20 kept injournal/state/routine_memory/<routine>.jsonl). The daily update, the sweep and the chase queue now start withrecalland end withretain, so a run does not repeat the searches the last run settled. - Sessions can find, warn and message each other. Say "sesi lain", "yang tadi" or "the other session" and a prompt hook (
session_mention.py) adds one line with the three session cards that best match your words.claims.pyrecords which session holds a Google Doc, Jira or Linear key, file or branch (a claim goes stale after 12 hours, or when its session is done), and the Doc writers now warn when another live session holds the Doc and claim it for the current one otherwise (resource_claim_guard.py; it warns and never blocks).session_notes.pyleaves a note for a session or for a work-tree node, and the target gets it at its next start (notes_inbox.py, five at most). - Every Claude session leaves a card, and new sessions see who else is running. At the end of each turn a Stop hook (
session_card.py) writes one small JSON file per session tojournal/sessions/: a spoken name, a one-line purpose, the status (active, or waiting on you when the last reply ends in a question), the links, ledger ids and work-tree nodes it touched, and up to three open items. The card points to the transcript and never copies it. Because the folder is in git, a Windows, WSL or macOS session can see the others. At session startalso_running.pylists up to five sessions active in the last 24 hours, one line each.session_cards.pyaddslist,show,active-briefandset-status, and/session(session_ref.py) now reads cards first and opens a transcript only when the card is missing or the detail is needed. - Session cards get a better purpose and name over time. A card starts with the first prompt as its purpose.
session_cards.py refine [--max 10]takes cards that still carry that raw text and have at least three user turns, asksclaude -p --model haikufor one plain English line under 90 characters plus a 2 to 4 word spoken name, and storespurpose_refined. It runs from a temp directory with the card hook off, so it writes no card of its own, and it never runs inside the Stop hook. At session startalso_running.pylaunchesrefine --max 5in the background with no output and no wait, at most once every 30 minutes (stamp filejournal/sessions/.refine_stamp, gitignored). Off switch:SESSION_REFINE_DISABLE=1. - Every work-tree node now shows the records filed under it. Commitments, waiting-on and decisions already named their node; now the node names them back.
work_tree_rollup.pybuilds the reverse link from the records on every ledger sync, so it never drifts from them: a node's live records, counts for everything below it, last activity, and a health worked out from the records (red only when something slipped in the last 7 days, amber for older overdue, due soon, or live past 30 days). A parent takes the worst health below it. You can set a node's health by hand, but only with a reason, and with an end date if you want it to lapse.work_tree.py show <node>prints all of it, and the dashboard Work tab shows it next to the node.work_tree.py set-nextties a node's next step to the records it waits on, and the rollup flags record ids in a node's notes that have since closed. - Waiting-on records tell you when they move. The waiting watchdog checks every hour whether the person you are waiting on replied in the thread, and runs "done-checks" for asks that finish as an action instead of a reply (first one: a GitHub repository now exists). When a record you watch moves, by any path, one Slack DM from the bot lists it with the link, so you can continue straight away. New records are watched by default; older ones only after
watch <id> --on. The morning update opens with "Moved since yesterday" from the newmovedcommand. - The daily update can keep a read-only Sheet copy of a git ledger. A team that records decisions and blockers as files in a git repository can let people without git still read them. When the workspace has a ledger mirror script,
/daily-updateruns it once a day in Step 4: it pulls the ledger repository, rewrites a Google Sheet that nobody edits, and does nothing on a second run the same day. Creating the Sheet the first time still needs an explicit go. - Haiku agents stay under 100,000 tokens of context. Claude Haiku 5.5 charges five times more per token once one request's prompt passes 100,000 tokens, cache reads included, and every turn re-reads the whole history. Splitting 400k of work into five fresh agents of 100k or less costs about a tenth of one long run. New
chunk_work.pysplits a work list into chunks of about 85k tokens and keeps findings in a state file, so each freshharvesterreads one chunk plus the earlier findings and stops.harvestergetsmaxTurns: 20as a backstop, andCLAUDE.mdSubagents has the rule. - Ledger records lose priority when nobody raises them.
priority_decay.pycalculates
each open commitment, waiting-on and decision's priority on every read: one level down
after 14 days with no signal, another after 30, and at 30 days it goes on the Saturday
review list. A signal is a reply in the record's Slack thread, a meeting note or decision
citing it, a ticket update, a chase, orpriority_decay.py signal <ID> --why "...". Your
own briefings do not count, so listing a record does not keep it alive. Records due within
7 days, or owed to or by the two named VIPs, never decay; records under a live work-tree
node drop one level at most. The tracker opens with a Relevance section, the morning
carry-over shows each record's level, and the chase list picks by level. - Linear admin access can be cut back in one command.
linear_client.py restrict-admins --keep a@x.com,b@x.com
shows who keeps admin and who drops to member, and changes nothing until--approved.
linear_client.py memberslists every active user with their role. - Calendar events can repeat.
gcal_manager.py create --recurrence 'FREQ=MONTHLY;BYMONTHDAY=5'
makes one recurring event, for checks like a monthly earnings review. - A weekly report shows which sessions spent the most, and on which model.
token_usage_report.py
ranks sessions by price-weighted tokens, splits parent and subagent spend, and shows the share of
subagent spend on Opus. It runs every Monday at 12:55 WIB. - Subagents with no model run on Sonnet, and costly spawns get a warning.
.claude/settings.json
setsCLAUDE_CODE_SUBAGENT_MODEL=sonnet, so a spawned agent no longer inherits an Opus session.
The newagent_spend_guard.pyhook warns, and never blocks, when Opus is named for QA or lookup
work, a session passes 15 agents, or an agent spawns another agent. It is safe to also register
globally: two copies of the hook on one spawn log and warn once.
Changed
CLAUDE.mdis smaller. The always-on file went from about 83 KB to about 61 KB (about 30 KB outside the app-managed sections). Long mechanics moved verbatim todocs/claude_md_detail.md; every hard rule keeps a one-line statement and a link. The map of what moved where isdocs/claude_md_slim_2026-10-15.md.MEMORY.mdis split by scope. It keeps the user and feedback lines (always loaded). Project and reference lines moved toINDEX_project.mdandINDEX_reference.mdin the same folder, each linked fromMEMORY.md.- The Dashboard no longer loads into every session.
dashboard_context.pynow injects a 2-line pointer; the trimmed Dashboard block loads at session start only for cron or daily-update runs (AGENT_MODE=1,PSB_ROUTINE, or a headlessclaude -pancestor) or withDASHBOARD_CONTEXT_FULL=1. Otherwisedashboard_prompt_context.py(UserPromptSubmit) injects it once, the first time a prompt looks like Work or PM work. - Records can no longer sit on a top-level area. Filing a commitment, waiting-on or decision on an area like "E-Commerce Solution" or "B2C Super App" told you nothing about which piece of work it moves, so the ledger tools now refuse it and list the nodes underneath. A top-level node with nothing under it still takes records.
work_tree.py coverageandvalidatereport any record still sitting on one. - A record's squad now comes from its work-tree node.
portfolio_tagger.pyreads the node first and only falls back to guessing from the record's text when the node does not say which squad owns the work.
Fixed
- Session card refine no longer pops up a terminal window on Windows.
also_running.pystartedsession_cards.py refinewithDETACHED_PROCESS, so the child had no console, and itsclaude -p --model haikucall got a new visible console (shown by Windows Terminal) at most every 30 minutes. The hook now usesCREATE_NO_WINDOW | NEW_PROCESS_GROUP, andsummarize_with_claude()passesCREATE_NO_WINDOWas well. - The ledger watcher now sees
gmail_manager.py send --approvedas a sent email, and ignores a refused one. The old pattern only matchedgmail_connectororgmail.py, so a real send by the connector script filed no "Email sent" reminder. Thedraft_lint_stop.pyhook also takesDRAFT_LINT_LOG, so tests no longer write fake events intojournal/draft_feedback/lint_events.jsonl. - Draft jobs fall back to GLM when the Gemini quota runs out. When z.ai came back on 21 Sep, GLM was re-added to the reasoning and cross-lineage chains but not to the draft chain. So when the Antigravity Gemini quota ran out, every pre-meeting card skipped its cheap writer and went to Claude. This happened on three mornings in a row.
glm-5.3-flashnow sits third in thedraftchain, after the two Gemini models, which matches the 22 Jul ordering decision. - Unattended Claude jobs find Claude again when only the editor extension has it. On a machine where Claude Code exists only inside the VS Code (or Cursor) extension,
ai_call.pyfound no Claude and handed every job to the non-Claude bridge. Jobs that need tools refused to run, so the Saturday ledger audit skipped itself with "tools-unavailable" and the waiting-on pile grew unchecked. It now falls back to the newest extension binary, which shares the same sign-in. The audit also stopped forcing an old stored token over that sign-in: the token had expired, and every run failed on "Invalid bearer token" in two seconds. - A deferred or cancelled ticket no longer closes a record. The daily automatic check closed any commitment or waiting-on whose ticket Jira files as "done", and Jira files Deferred, Won't Do and Cancelled there too. Two records closed as answered because their ticket was deferred. Those states now go to the model and the weekly review as evidence instead, and Linear's Canceled is treated the same way.
- Published artifacts now show up in the app's Outputs panel.
publish_cf.py deployprinted only the per-buildhttps://<hash>.work-artifacts.pages.devaddress, which Outputs skips on purpose, so no published HTML artifact ever reached Outputs. A deploy now ends with oneName -> https://work-artifacts.pages.dev/<slug>line for each artifact it added or changed, and the newpublish_cf.py links <slug>prints the stable link of an artifact that is already live, for handing it over. - The public sync survives a sync from another machine. When the public repo already had a newer sync commit, the push was rejected as non-fast-forward and the release never ran. The sync now moves onto the remote commit and keeps the freshly built tree, so nothing published there is lost.
- The waiting-on sweep closes a record only when its owner replies. Before, any reply in the
thread from someone other than the owner closed it, so one person's answer could close another
person's open ask. When the owner's Slack id is unknown, the old behaviour stays. - The calendar sweep shows the right "Today" before 07:00 WIB.
gcal_manager.py sweep
took the date in UTC, so an early morning update listed yesterday's meetings. It now uses
the host's local timezone. link_sync.pyno longer crashes on a Windows console. Its tick-mark output raised a
UnicodeEncodeErrorunder cp1252, so the run looked failed. Output is now UTF-8.
Added
- Migration backlog rows show where the work really is.
afm_linked_sync.py
reads the delivery tickets each backlog row cites (MSP, STOR, MBA, MP, MPS),
writes them as clickable links with their live status, and fills the PRD
column. It proposes a row status change only from the row's own delivery
ticket, never from a legacy or dependency ticket. A second mode rewrites each
tracking ticket's description from its sheet row: what, context, engineering
questions and answers, blockers, related tickets, PRD and backlog link.
Both modes are dry runs until--approved. - Backlog rows without a ticket get one, with a one-pager inside it.
afm_create_tickets.pyturns a one-pager per backlog row (story, why, scope,
acceptance criteria, dependencies, open questions, what is missing before
estimation) into an AFM Jira ticket: epics first, stories under them, every
description linking its PRD section and the sheet row. A dry run writes one
review file to read before anything is created. - Long Jira batches survive slow responses, and a ticket rewrite never loses
text. The AFM Jira helper retries reads and updates after a timeout (never
creates, which may have landed). Rewriting a ticket description keeps the
text it replaces under a "Previous description" heading. - Reply drafts get a review page with pinned comments.
draft_review.py publish
turns a draft file (the original thread plus the draft) into an unlisted page on
the artifact host with shared comments on, so the owner marks the exact line to
change instead of retyping it in chat. Revisions republish to the same URL,
commentsreads the pins back, and pages expire from the site after 30 days.
Sending still needs approval in chat.
Fixed
- Mixpanel raw export reaches the EU data host. The connector called
data.eu.mixpanel.com, which does not resolve, so everyexportfailed with
a DNS error. It now callsdata-eu.mixpanel.com. - The public sync blocks timestamped token backups. A file named
token*.json.bak-<date>slipped past bothtoken*.jsonand*.bak. The leak
audit stopped the push, so nothing leaked, and the blocklist now covers the name.
Full changelog: v0.12.0...v0.13.0