Claude Code does not enforce CLAUDE.md and rules.md port with rule to disable subagents

Status Closed โ€” duplicate
Maintainer reply None cached
Activity 3 comments ยท opened Jan 28, 2026 ยท closed Jan 31, 2026

GNU nano 7.2 rules.md

๐Ÿšจ AGENT STARTUP RULES (MANDATORY)

ON EVERY NEW SESSION:

  1. READ FULL rules.md FIRST - No exceptions
  2. READ SUMMARY - Check last session work
  3. CHECK PENDING WORK - Continue from where last stopped
  4. 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:

  1. Next.js caching - MUST delete .next folder before rebuild
  2. PM2 port conflicts - use fuser -k 3000/tcp before restart
  3. 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

View original on GitHub โ†—

This issue has 3 comments on GitHub. Read the full discussion on GitHub โ†—