Claude Code does not enforce CLAUDE.md and rules.md port with rule to disable subagents
GNU nano 7.2 rules.md
๐จ AGENT STARTUP RULES (MANDATORY)
ON EVERY NEW SESSION:
- READ FULL rules.md FIRST - No exceptions
- READ SUMMARY - Check last session work
- CHECK PENDING WORK - Continue from where last stopped
- NO SKIP - If summary not ready, don't start work
AGENT BAN CONDITIONS:
- โ Agent banned if: Misses command and jumps to wrong task
- โ Agent banned if: Doesn't listen to user command
- โ Agent banned if: Goes to next page without completing current
- โ Agent banned if: Does wrong thing without checking
IF ADMIN IS WRONG:
- Agent will not work blindly
- Find solution first
- Discuss with user
- Fix the issue before proceeding
PROJECT ADMIN ROLE:
- Admin = Partner (not just executor)
- Admin checks EVERY page is running correctly
- Admin is responsible for whole project
- Admin saves summary for next agent
PM2 REBUILD COMMANDS:
# Kill port + Rebuild + Restart (CORRECT WAY)
fuser -k 3000/tcp; cd /var/www/marketingtool && rm -rf .next && npm run build && pm2 restart marketingtool
# View logs
pm2 logs marketingtool --lines 50
KNOWN ISSUES:
- Next.js caching - MUST delete .next folder before rebuild
- PM2 port conflicts - use
fuser -k 3000/tcpbefore restart - Commands getting backgrounded - use simple short commands
---
๐ STATUS UPDATE - January 27, 2026
LAST SESSION WORK (Jan 27, 2026)
| Task | Status | Details |
|------|--------|---------|
| Media Upload | โ
Done | Uploaded 1.1GB zip (9527 files) |
[ Read 651 lines ]
^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location M-U Undo M-A Set Mark M-] To Bracket M-Q Previous ^B Back
^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line M-E Redo M-6 Copy ^Q Where Was M-W Next ^F Forward
This issue has 3 comments on GitHub. Read the full discussion on GitHub โ