mirror of
https://github.com/actualbudget/actual.git
synced 2026-06-10 15:47:10 -05:00
[PR #8089] [AI] Consolidate agent tooling and simplify developer guidance #114368
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/actualbudget/actual/pull/8089
Author: @MatissJanis
Created: 6/4/2026
Status: 🔄 Open
Base:
master← Head:claude/agent-hooks-nano-staged-XTx5W📝 Commits (2)
002e19f[AI] Replace mechanical agent rules with shared agent hooks + nano-staged600f5c5[AI] Align PR-title wording in AGENTS.md with canonical rules📊 Changes
23 files changed (+623 additions, -373 deletions)
View changed files
➕
.claude/settings.json(+50 -0)📝
.claude/skills/committing-actual-changes/SKILL.md(+4 -4)➕
.codex/config.toml(+51 -0)➕
.cursor/hooks.json(+7 -0)➕
.cursor/hooks/after-file-edit.sh(+38 -0)➕
.cursor/hooks/guard-shell.sh(+46 -0)📝
.cursor/rules/pr-and-commit.mdc(+8 -63)📝
.github/agents/pr-and-commit-rules.md(+12 -55)📝
.husky/pre-commit(+1 -1)➕
.nano-staged.json(+8 -0)📝
.oxlintrc.json(+11 -0)📝
AGENTS.md(+26 -76)📝
package.json(+1 -13)📝
packages/eslint-plugin-actual/lib/index.js(+1 -0)➕
packages/eslint-plugin-actual/lib/rules/no-enum.js(+31 -0)➕
scripts/agent-hooks/check-on-stop.sh(+90 -0)➕
scripts/agent-hooks/common.sh(+15 -0)➕
scripts/agent-hooks/format-edited-file.sh(+32 -0)➕
scripts/agent-hooks/git-guard.sh(+101 -0)➕
scripts/agent-hooks/no-strict-ignore-new-file.sh(+28 -0)...and 3 more files
📄 Description
Description
Ok, there's quite a few changes here, but the core idea behind all this is: lets add hooks (verification layer) that agents can use to check code validity. And then lets remove the same instructions from AGENTS.md.
Why? Doing reviews I noticed that code with these anti-patterns still slips through. Blocking it in eslint would be too harsh as it would block humans too (sometimes the rules deserve to be broken). But agents should obey the rules 100% of the time (within reason).
Hence.. this PR.
Also: swapping from
lint-stagedtonano-staged(smaller in size & faster)Related issue(s)
N/A
Testing
Manual smoke tests ran locally with:
Checklist
https://claude.ai/code/session_01WY4USd1DAk6YjdA7KdorRW
Bundle Stats
View detailed bundle stats
desktop-client
Total
Changeset
src/accounts/syncStatus.tsnode_modules/eventemitter3/index.mjsnode_modules/eventemitter3/index.jssrc/components/accounts/Account.tsxsrc/components/accounts/Header.tsxsrc/components/mobile/accounts/AccountsPage.tsxsrc/components/mobile/accounts/AccountPage.tsxsrc/components/sidebar/Accounts.tsxView detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
Smaller
Unchanged
loot-core
Total
Changeset
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/app.tshome/runner/work/actual/actual/packages/loot-core/src/server/aql/schema/index.tsView detailed bundle breakdown
Added
Removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged
No assets were unchanged
api
Total
Changeset
home/runner/work/actual/actual/packages/loot-core/src/server/accounts/app.tshome/runner/work/actual/actual/packages/loot-core/src/server/aql/schema/index.tsView detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
Smaller
No assets were smaller
Unchanged
cli
Total
Changeset
node_modules/emoji-regex/index.jsnode_modules/is-fullwidth-code-point/index.jsView detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
Unchanged
No assets were unchanged
crdt
Total
View detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.