Skip to main content
These aren’t features — they’re habits that prevent data loss, reduce friction, and keep your system compounding.

1. Back Up Your Data (The Non-Negotiable)

Your .context/ folder is your brain. Losing it means losing every session, every protocol, every insight you’ve ever extracted. Treat it like source code — because it is.

The 3-2-1 Rule

Local

Your machine (primary copy)Why: Speed — instant reads, no latency

Git

GitHub / GitLab (full repo push)Why: Portability — clone anywhere, restore in seconds

Cloud DB

Supabase / ChromaDB (vector embeddings)Why: Search — hybrid RAG across your entire history
At minimum, push to Git. If your laptop dies tomorrow, git clone + /start gets you back to 100%. Everything else is acceleration.

Backup Checklist

1

Configure Git remote

git remote -v
# Should show your GitHub/GitLab URL
2

Enable auto-commit on /end

The shutdown orchestrator commits and pushes automatically when you run /end.
3

Review .gitignore

Ensure sensitive files are excluded:
# .gitignore
.env
*.key
.athenad.pid
credentials.json
4

Activate cloud sync (optional)

For vector embeddings:
python3 scripts/supabase_sync.py

2. Session Discipline

Always /start and /end

The most common mistake is working without bookends.
  • Without /start: No session log, no context loading, no semantic priming
  • Without /end: Nothing gets committed, no insights filed, no memory updates
✅ Do❌ Don’t
/start → Work → /endJump straight into questions without booting
/save mid-session for long threadsRely on the AI to “remember” across sessions
One focused topic per sessionCram five unrelated tasks into one thread

The One-Feature Rule

Each session should target one deliverable. This isn’t about being rigid — it’s about context coherence.
Guideline: If you can’t summarize the session in one sentence, it was probably two sessions.
Example good sessions:
  • “Implement JWT authentication”
  • “Research vector database options”
  • “Refactor user profile component”
Example bad session:
  • “Implement auth, redesign UI, fix database schema, and research deployment options”

3. Memory Hygiene

Prune activeContext.md Regularly

activeContext.md is your working memory — not your archive. If it grows beyond ~100 lines, it’s carrying stale context that wastes tokens on every boot.
SignalAction
Completed tasks still listedMove to session log, mark [x], or delete
”Recent Context” older than 1 weekArchive to session logs or compact
Duplicate entriesMerge or remove

Keep userContext.md Lean

Your user profile should contain stable truths, not session-specific details.
✅ Belongs in userContext❌ Belongs in activeContext
Programming languages you knowCurrent project you’re working on
Work hours and timezoneToday’s tasks
Core values and constraintsRecent decisions
Tools and environment setupTemporary reminders

4. Git Workflow

Commit Often, Push Always

PracticeRationale
Commit after every /endAtomic, searchable history
Use semantic commit messagesfeat:, fix:, docs: prefixes make git log useful
Push to remote same dayLocal commits aren’t backups — they’re drafts
Tag major milestonesgit tag v9.2.5 lets you rollback cleanly

Example Commit Messages

# Good
git commit -m "feat: add JWT authentication"
git commit -m "docs: update protocol 123 with examples"
git commit -m "fix: correct session log timestamp format"

# Bad
git commit -m "updates"
git commit -m "wip"
git commit -m "stuff"

Branch Strategy (Advanced)

For users maintaining both private (full context) and public (sanitized) repos:
main        ← public-facing (Athena-Public)
private     ← full context (.context/, personal protocols)
Never push .context/memory_bank/ to a public repo. It contains personal data (psychology, decisions, constraints). Use .syncignore or .gitignore to exclude sensitive directories.

5. Token Budget Awareness

Athena boots at ~10K tokens, leaving ~190K for your session. But token waste adds up:
Waste SourceFix
Oversized activeContext.mdPrune weekly
Loading files you don’t needTrust JIT routing — don’t /fullload unless needed
Repeating context the AI already hasReference session logs instead of re-explaining
Pasting entire files into chatPoint to the file path — let the agent read it

6. Multi-Account / Multi-Model Strategy

If you use multiple AI accounts or models:
PracticeWhy
Designate a “primary” for Athena sessionsConsistency in session logs and memory
Use secondary accounts for researchKeeps your primary context clean
Run Trilateral Feedback for big decisionsCross-validate across Claude, Gemini, GPT
Always return to primary for /endEnsures the canonical session log is written
The Memory Bank means your context is decoupled from the provider. Switch models freely — the state lives in your filesystem, not their servers.

7. Security Basics

PracticeDetails
Never commit .env filesUse .env.example as a template, .gitignore the real one
Rotate API keys periodicallyEspecially after sharing screens or running demos
Use Secret Mode for demosset_secret_mode(True) redacts sensitive data
Review agent permissionsDon’t grant filesystem access to ~/.ssh or credential stores

8. When Things Go Wrong

Recovery:
git clone https://github.com/yourusername/athena-workspace
cd athena-workspace
/start
# Back in business
Recovery:
# Check git history
git log --oneline

# Rollback to last clean commit
git checkout <commit-hash> -- .context/sessions/
Diagnosis:
python -m athena doctor
Common causes:
  • Missing dependencies
  • Corrupt activeContext.md
  • Invalid YAML frontmatter in workflows
Review:
# Check for stale/incorrect entries
cat .context/memory_bank/activeContext.md

# Prune and restart
/end
/start
Cause: You’ve likely hit ~150K tokens.Fix:
/save
/end
# Start fresh session
/start

Quick Reference Checklist

✅ Git push after every session
✅ One feature per session
✅ Prune activeContext.md weekly
✅ Keep userContext.md stable
✅ Use /save for long sessions
✅ Review .gitignore before first push

❌ Don't skip /start and /end
❌ Don't push .env or personal memory to public repos
❌ Don't /fullload unless you need deep context
❌ Don't paste entire files — point to paths

Weekly Maintenance Routine

1

Monday: Prune activeContext.md

Remove completed tasks and stale context from last week.
2

Wednesday: Regenerate TAG_INDEX

python3 scripts/generate_tag_index.py
3

Friday: Run /refactor

Deep system optimization:
/refactor
This runs audits, scans, and integrity checks that are too heavy for /end.
4

Sunday: Sync to Supabase

python3 scripts/supabase_sync.py

Next Steps

Creating Workflows

Learn how to build custom slash-command workflows

Writing Protocols

Create reusable decision-making protocols

Build docs developers (and LLMs) love