Skip to content

feat: add owner profile for personal agent first-run setup - #197

Merged
titanwings merged 2 commits into
dot-skillfrom
feat/owner-profile
Oct 12, 2026
Merged

titanwings merged 2 commits into
dot-skillfrom
feat/owner-profile

Conversation

@titanwings

Copy link
Copy Markdown
Owner

Requested by Tianyi · project thread

Summary

Before: Distilly could only profile other people (colleague, relationship, celebrity) as role-play Skills. "Distill myself" fell into the relationship flow, and nothing was written to the files a personal agent reads every session.

After: a new owner family builds a profile of the agent's own user. A short interview (three rounds, all skippable, no Python dependencies) produces the profile. The user reviews it, and then a short summary is written into the host's always-on user file: ~/.claude/CLAUDE.md for Claude Code or the workspace USER.md for OpenClaw. The full profile stays local at ~/.distilly/owner/profile.md.

Changes

  • prompts/owner/intake.md and prompts/owner/profile_builder.md: the first-run interview, privacy rules, and the profile structure. The structure requires a ## Always-on summary / ## 常驻摘要 section of 3,000 characters or less, because OpenClaw gives USER.md a 4,000-character budget.
  • tools/owner_profile.py:
    • save stores the profile and keeps the previous copy in versions/.
    • link / unlink write or remove the summary between <!-- distilly:owner-profile:* --> markers. Text outside the markers is never touched, the file is backed up before each change, and --dry-run previews it.
    • where prints the paths.
    • The tool refuses profiles that look like they contain API keys, tokens or private keys.
  • OpenClaw paths follow OPENCLAW_WORKSPACE_DIR and OPENCLAW_PROFILE.
  • tools/skill_presets.py: adds the owner preset; self, yourself and me now resolve to it (previously relationship).
  • tools/skill_writer.py: refuses --character owner, because the owner profile is context, not a role-play Skill.
  • SKILL.md: the description and trigger phrases now cover first-run setup and "get to know me". owner is option 1 in Step 0, and there is a new Owner Profile section in both languages.
  • README.md and docs/lang/README_ZH.md: a short "New personal agent?" note at the top of Usage.

Motivation

This is the first step toward Distilly being installed when someone initializes a personal agent. Personal agents need to know their owner from session one, and that context has to be always-on.

Testing

  • python -m unittest discover -s tests -p 'test_*.py' passed (90 tests, including 17 new ones in tests/test_owner_profile.py)
  • python -m compileall tools/ passed
  • node bin/distilly.mjs --check-package passed
  • Manually tested: save then link --host openclaw with a temporary HOME. I checked the resulting USER.md block.

Checklist

  • I read CONTRIBUTING.md
  • Docs updated (README / SKILL.md)
  • No secrets, tokens, or personal data committed
  • No new dependencies
  • Tests added

Not in this PR: other hosts (Hermes, Codex AGENTS.md, and so on), a snippet for OpenClaw's BOOTSTRAP.md first-run ritual, publishing to npmjs, and distilly init. OpenClaw describes USER.md entries as dated directives; this PR writes a plain summary block, which may need adjusting after a test in a real OpenClaw workspace.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Y32jGbUW3JKCyeeySUBm27


Generated by Claude Code

Adds an owner family (self/yourself/me alias to it) that interviews the
agent's own user and writes a short always-on summary between Distilly
markers into the host user file (Claude Code ~/.claude/CLAUDE.md,
OpenClaw workspace USER.md). The full profile stays at
~/.distilly/owner/profile.md. It is context about the user, not a
role-play Skill, so skill_writer refuses the owner family.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y32jGbUW3JKCyeeySUBm27
@titanwings
titanwings marked this pull request as ready for review October 12, 2026 08:28
@titanwings
titanwings merged commit 0c781a9 into dot-skill Oct 12, 2026
3 checks passed
titanwings pushed a commit that referenced this pull request Oct 13, 2026
…'s merges

- The English work_builder prompt (#205) words the Persona handoff as
  "outside the scope of responsibility", which the work-only filter did not
  match, so work_skill.md kept a pointer to a Persona section it lacks.
  Widen the English and Chinese patterns.
- #197 made self/yourself aliases of the new owner family, so generated
  skills whose stored meta says type "self" were renamed owner-<slug> on
  install. Stored skill metadata now maps owner back to relationship.
- owner_sources.py discover no longer crashes on a malformed MCP config
  (non-dict mcpServers, non-UTF-8 TOML/YAML).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qsZs2yPoPC21GnGkktmwp
titanwings pushed a commit that referenced this pull request Oct 13, 2026
…'s merges

- The English work_builder prompt (#205) words the Persona handoff as
  "outside the scope of responsibility", which the work-only filter did not
  match, so work_skill.md kept a pointer to a Persona section it lacks.
  Widen the English and Chinese patterns.
- #197 made self/yourself aliases of the new owner family, so generated
  skills whose stored meta says type "self" were renamed owner-<slug> on
  install. Stored skill metadata now maps owner back to relationship.
- owner_sources.py discover no longer crashes on a malformed MCP config
  (non-dict mcpServers, non-UTF-8 TOML/YAML).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qsZs2yPoPC21GnGkktmwp
titanwings pushed a commit that referenced this pull request Oct 13, 2026
…'s merges

- The English work_builder prompt (#205) words the Persona handoff as
  "outside the scope of responsibility", which the work-only filter did not
  match, so work_skill.md kept a pointer to a Persona section it lacks.
  Widen the English and Chinese patterns.
- #197 made self/yourself aliases of the new owner family, so generated
  skills whose stored meta says type "self" were renamed owner-<slug> on
  install. Stored skill metadata now maps owner back to relationship.
- owner_sources.py discover no longer crashes on a malformed MCP config
  (non-dict mcpServers, non-UTF-8 TOML/YAML).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018qsZs2yPoPC21GnGkktmwp
titanwings added a commit that referenced this pull request Oct 13, 2026
…'s merges (#210)

- The English work_builder prompt (#205) words the Persona handoff as
  "outside the scope of responsibility", which the work-only filter did not
  match, so work_skill.md kept a pointer to a Persona section it lacks.
  Widen the English and Chinese patterns.
- #197 made self/yourself aliases of the new owner family, so generated
  skills whose stored meta says type "self" were renamed owner-<slug> on
  install. Stored skill metadata now maps owner back to relationship.
- owner_sources.py discover no longer crashes on a malformed MCP config
  (non-dict mcpServers, non-UTF-8 TOML/YAML).


Claude-Session: https://claude.ai/code/session_018qsZs2yPoPC21GnGkktmwp

Co-authored-by: Claude <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.

2 participants