<< Home | Work
startup went from ~59kb to ~3k tokens
| Area | Work |
| AI used | Claude |
| Source | r/BuildWithClaude |
| Posted | 2026-11-04 |
The move
Create separate Git repositories for your workflow rules and project logs, then use automated hooks to inject relevant context at the start of each session.Steps
- Create a 'How I Work' repo with modular skill files for specific tasks.
- Create a 'What Happened' repo with project-specific readmes and dated logs.
- Set a session start hook to inject relevant rules and project summaries into the context.
- Set an end-of-session hook to append task results and decisions to the project log.
- Commit and push changes to ensure consistency across all machines.
Prompt for your AI
Read the following rules from [path/to/rules/file] and the project summary from [path/to/project/readme]. Use these to guide your work. After completing the task, summarize the changes and decisions, then append them to [path/to/project/log].
What happened
The user struggled with Claude forgetting project context and workflow preferences. By splitting instructions into modular skill files and project-specific logs, they reduced context bloat significantly. Automated hooks ensure Claude reads the correct rules at the start of a session and writes updates back to the logs upon completion.Watch out
Over-engineering the hook system can lead to maintenance overhead. Ensure your rule files remain concise to avoid hitting token limits.Give it to your agent
Read https://howtheyuse.ai/p/startup-went-from-59kb-to-3k-tokens.md and help me do this.