Skip to content

feat(commands): ac.mjs 통합 디스패처 + 결과 중심 기록 원칙 - #6

Merged
tak2-08 merged 1 commit into
mainfrom
feat/ac-commands-outcome-log
Aug 26, 2026
Merged

feat(commands): ac.mjs 통합 디스패처 + 결과 중심 기록 원칙#6
tak2-08 merged 1 commit into
mainfrom
feat/ac-commands-outcome-log

Conversation

@tak2-08

@tak2-08 tak2-08 commented Aug 26, 2026

Copy link
Copy Markdown
Owner

1. 스킬 명령어 — tools/ac.mjs 단일 디스패처

슬래시 별칭 실제 명령 동작
/ac-export node tools/ac.mjs export --session S --task "..." --done "a;b" --next "c" 세션 내보내기 (핸드오프 + CURRENT.md)
/ac-import node tools/ac.mjs import [file] 세션 불러오기 (~280 tok)
/ac-current node tools/ac.mjs current 현재 포인터
/ac-history node tools/ac.mjs history "query" --limit N 계층 검색 (0 LLM)
/ac-issue node tools/ac.mjs issue --title "..." [--refs "p1,p2"] 이슈 작성
/ac-learning node tools/ac.mjs learning --title "..." --cause C --fix F2 --lesson L 교훈 기록
/ac-idea, /ac-note, /ac-todo, /ac-decision 동일 패턴 타입별 기록
  • entry 작성 시 파일명 규약·decision NNNN·diary append 자동 처리
  • level 비우면 lite AI 자동 배정, 저장 후 index 재생성까지 한 번에

2. 결과 중심 기록 원칙 (사용자 아이디어 채택)

도구 호출 로그를 기억에 추가하지 않음:

❌ "Grep으로 검색하고 Read로 3개 읽었더니..."
✅ "JWT race → 전역 mutex 해결. 검증: src/auth/refresh.ts:42"

  • 도구 사용 과정·출력 전문은 토큰 낭비 — **결론 + refs(검증 링크)**만 저장
  • schema.json에 optional refs 필드 추가
  • docs/protocol.md 원칙 섹션 신설
  • ac.mjs learning 템플릿이 cause/fix/lesson+refs 형식을 강제해 원칙을 코드로 강제
  • 버그의 repro는 과정 로그가 아니라 재현 레시피로 최소 유지 (재현 가능성 보존)

검증

/tmp/ac-test 샌드박스에서 issue/learning/export/history 실측 통과.
node --check 전체 통과. validate ok. T2Editor 언급 0건.

1. 스킬 커맨드 레이어 — tools/ac.mjs 단일 디스패처
   - export/import/current: 세션 내보내기·불러오기·포인터 (handoff 래퍼)
   - issue/learning/idea/note/todo/decision: frontmatter 자동 생성 entry 작성
     (파일명 규약·decision NNNN·diary append 자동 처리, level 비우면 lite AI 배정)
   - history/search/index/validate: 기존 도구 래퍼
   - 슬래시 별칭 (/ac-export, /ac-import, /ac-issue ...) 을 SKILL.md 양쪽에 표로 문서화

2. 결과 중심 기록 원칙 (사용자 아이디어 채택)
   - 도구 호출 로그를 기억에 추가하지 않음 — '결론 + refs(검증 링크)'만 저장
   - schema.json에 optional refs 필드 추가
   - docs/protocol.md에 원칙 섹션, ac.mjs learning 템플릿이 cause/fix/lesson+refs 형식 강제
   - README 명령어 섹션에 원칙 요약

근거: 도구 사용 과정·출력 전문은 토큰 낭비. 다음 에이전트는 결론을 쓰거나
의심 시 refs로 직접 확인하면 되므로 중간 과정은 가치 없음.
버그의 repro는 과정 로그가 아니라 재현 레시피로 최소 유지.

검증: /tmp/ac-test 샌드박스에서 issue/learning/export/history 실측,
node --check 통과, validate ok, T2Editor 언급 0건
@tak2-08
tak2-08 merged commit 7a7d9a4 into main Aug 26, 2026
1 check passed
@tak2-08
tak2-08 deleted the feat/ac-commands-outcome-log branch August 26, 2026 10:47
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