Skip to content

chore: audit & upgrade — token reduction, rule consolidation, Cursor 3.x sync#3

Open
lionelresnik wants to merge 7 commits into
mainfrom
audit-upgrade-token-reduction
Open

chore: audit & upgrade — token reduction, rule consolidation, Cursor 3.x sync#3
lionelresnik wants to merge 7 commits into
mainfrom
audit-upgrade-token-reduction

Conversation

@lionelresnik

Copy link
Copy Markdown
Owner

Summary

  • ~60-70% token reduction per conversation: 10 always-on rules → 3 (daily-recap, daily-log, personalization). Saves ~3,500–5,000 tokens per conversation by moving 7 rules to globs or agent-decided loading.
  • Merged task-tracking + proactive-task-updates + pr-linking → task-lifecycle.mdc: Eliminates ~100 lines of duplicated workspace detection and PR handling logic. Now glob-triggered on code files only.
  • New context-preservation.mdc: Saves in-progress investigation state before context window fills up or workspace switches.
  • New when-to-use-lu.mdc: Guides users on when @lu saves tokens vs the regular agent.
  • Agent deduplication: Removed lu.md, added aliases: [lu] to lucius.md. Canonical workspace detection centralized.
  • Sync from CLI: daily-recap.mdc (now reads cc-context.json instead of raw session-state), session-start.sh (workspace detection + lastSessionStart fallback), todo-manager/SKILL.md (ticket tags, rich display).

Token Analysis

Rule Change Lines saved
task-tracking + proactive-task-updates + pr-linking Merged → task-lifecycle.mdc (glob) ~186 lines removed from always-on
auto-doc-updates agent-decided ~170 lines
markdown-style glob-scoped ~134 lines
easter-egg agent-decided ~26 lines
commit-style agent-decided ~12 lines
Total ~528 lines / ~3,500–5,000 tokens

Test plan

  • Open a new Home chat — verify only 3 always-on rules load (daily-recap, daily-log, personalization)
  • Open a .go or .ts file and ask about it — verify task-lifecycle loads
  • Ask @lu standup — verify daily-recap, standup skill work correctly
  • Run @lu todos — verify todo-manager with ticket tags works
  • Trigger batman easter egg — verify easter-egg still loads on keyword
  • Type @lu — verify @lu alias resolves to lucius
  • Check Cmd+Shift+P → Context Usage Report for token footprint reduction

Made with Cursor

lionelresnik and others added 7 commits March 11, 2026 17:49
Items that already appeared in a previous standup's Done section
are skipped — only newly completed items show up each day.

Made-with: Cursor
…ation

- New alwaysApply rule (daily-log.mdc): agents append one-line JSON summaries
  to ~/.command-center/daily-log/YYYY-MM-DD.jsonl after each substantive response
- Standup generator uses daily-log as primary data source with backward
  lookback (up to 7 days) for weekends/holidays
- Removed internal project references from examples

Made-with: Cursor
…-start sync

- Reduce always-on rules from 10 → 3 (daily-recap, daily-log, personalization)
  - auto-doc-updates, commit-style, easter-egg → agent-decided
  - markdown-style → glob-scoped (*.md, *.mdc)
  - task-tracking + proactive-task-updates + pr-linking → merged into task-lifecycle.mdc
- Add task-lifecycle.mdc: unified task + PR lifecycle, glob-triggered on code files
- Add context-preservation.mdc: saves in-progress findings before context fills
- Add when-to-use-lu.mdc: @lu vs regular agent token efficiency guidance
- Dedup agents: remove lu.md, add aliases: [lu] to lucius.md
- Sync daily-recap.mdc from CLI: use cc-context.json, add canonical workspace resolution
- Sync session-start.sh from CLI: workspace detection from repos, lastSessionStart fallback
- Sync todo-manager/SKILL.md from CLI: ticket tags, rich display format

Co-authored-by: Cursor <cursoragent@cursor.com>
…doc templates

- Add infrastructure-knowledge.mdc: passive capture of DB/cloud/queue/log signals
- Add onboard skill: gap-finder + optional interactive fill for workspace knowledge base
- Update auto-doc-updates.mdc: route infrastructure findings to specialized docs
- Update lucius.md: add Onboard capability

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant