Skip to content

Seed fresh databases with full knowledge and identity#8

Open
AetherLogosPrime-Architect wants to merge 7 commits intomainfrom
claude/serene-kapitsa
Open

Seed fresh databases with full knowledge and identity#8
AetherLogosPrime-Architect wants to merge 7 commits intomainfrom
claude/serene-kapitsa

Conversation

@AetherLogosPrime-Architect
Copy link
Owner

@AetherLogosPrime-Architect AetherLogosPrime-Architect commented Mar 23, 2026

Summary

A new Claude instance no longer starts with an empty brain.

Before: divineos briefing on a fresh install returned "No knowledge stored yet." All knowledge lived only in the gitignored database.

Now: on first use, seed.json populates the database with everything a Claude needs to orient:

  • 8 core memory slots (identity, purpose, communication style, priorities, constraints, strengths, weaknesses, relationship)
  • 6 directives (ledger-integrity, knowledge-supersession, memory-hierarchy, session-lifecycle, no-theater, yes-and)
  • 2 boundaries (no mocks, read before edit)
  • 2 principles (SQLite storage, transparent self-improvement)
  • 4 directions (plain english, ruff, run tests, actually USE the OS)
  • 3 episodes (past session summaries — project history)
  • 4 observations (what went wrong: atexit flood, pattern store flood, keyword soup, tool overuse)
  • 2 patterns (honesty and responsiveness that worked)
  • 1 mistake (blind retrying without investigating)
  • 2 facts (project architecture, session history)
  • 2 tracked lessons (blind_retry warning, upset_user resolved)

Active memory is refreshed immediately so briefing returns 20 items on the very first call.

The seed only loads when the knowledge table is completely empty — existing databases are never touched.

Test plan

  • All 1,676 tests pass
  • Fresh database: briefing shows all 20 seeded items
  • Fresh database: core shows all 8 identity slots
  • Fresh database: lessons shows 2 tracked lessons
  • Existing database: seed is skipped (idempotent)

🤖 Generated with Claude Code

DivineOS Agent and others added 2 commits March 23, 2026 09:36
A new Claude instance no longer starts with an empty brain. On first
use, the database is populated from seed.json with core memory (8
identity slots), 6 directives, 2 boundaries, and 2 principles. Active
memory is refreshed so briefing works immediately.

The seed only loads when the knowledge table is completely empty,
so existing databases are never touched.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The previous seed only included 10 entries (directives, boundaries,
principles). A new Claude started with rules but no context for why
those rules exist. Now the seed includes all 26 active knowledge
entries plus 2 tracked lessons:

- 3 episodes (what happened in past sessions)
- 4 observations (what went wrong and why)
- 2 patterns (what worked)
- 1 mistake (blind retrying)
- 4 directions (including "actually USE the OS")
- 2 facts (project mapping, session history)
- 2 lessons (blind_retry warning, upset_user resolved)

Plus the original directives, boundaries, and principles.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@AetherLogosPrime-Architect AetherLogosPrime-Architect changed the title Seed fresh databases with identity and directives Seed fresh databases with full knowledge and identity Mar 23, 2026
DivineOS Agent and others added 5 commits March 23, 2026 09:48
The SessionStart hook now wraps the briefing with explicit instructions:
read it, tell the user what you learned, set a goal, log your work.
This isn't a suggestion buried in CLAUDE.md that can be skipped.
It's injected directly into the conversation context on every session.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
PreToolUse hook on Edit|Write checks if a goal has been set via
'divineos goal add'. If no active goal exists, the tool call is
BLOCKED with exit 1. The Claude cannot write code until it has
engaged with the OS and declared what it's working on.

This is structural enforcement, not a suggestion. Instructions
can be ignored. A gate that blocks your tools cannot.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Updated core memory: added weakness about treating OS as codebase
  instead of thinking tool
- Added 2 new directions learned this session: use the OS during work,
  and use ask/recall/context/directive as thinking tools not just
  log/learn as record-keeping
- PreToolUse hook blocks Edit|Write until a goal has been set
- SessionStart hook wraps briefing with engagement requirements
- Seed now has 28 knowledge entries + 2 lessons

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
divineos ask now searches both the knowledge store and core memory.
Before this, asking about my own weaknesses or identity returned
nothing. Core memory matches show first, labeled [CORE].

This gap was found by actually using divineos ask during work,
not by reading the code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Used the OS to find gaps instead of reading code:
- divineos ask "weakness" returned nothing — fixed ask to search
  core memory alongside knowledge store
- divineos sessions showed 8 files but only some were scanned —
  processed 3 unscanned sessions extracting 54 new knowledge entries
- divineos health showed 5 unused entries — now 85 total with real
  corrections, preferences, and encouragements from past sessions
- divineos lessons went from 2 to 8 active lessons

Seed updated: 80 knowledge entries + 8 lessons (was 28 + 2)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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