Repository navigation
feat: add owner profile for personal agent first-run setup - #197
Merged
Merged
Conversation
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
This was referenced Oct 12, 2026
titanwings
marked this pull request as ready for review
October 12, 2026 08:28
6 tasks done
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
ownerfamily 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.mdfor Claude Code or the workspaceUSER.mdfor OpenClaw. The full profile stays local at~/.distilly/owner/profile.md.Changes
prompts/owner/intake.mdandprompts/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 givesUSER.mda 4,000-character budget.tools/owner_profile.py:savestores the profile and keeps the previous copy inversions/.link/unlinkwrite 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-runpreviews it.whereprints the paths.OPENCLAW_WORKSPACE_DIRandOPENCLAW_PROFILE.tools/skill_presets.py: adds theownerpreset;self,yourselfandmenow resolve to it (previouslyrelationship).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".owneris option 1 in Step 0, and there is a new Owner Profile section in both languages.README.mdanddocs/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 intests/test_owner_profile.py)python -m compileall tools/passednode bin/distilly.mjs --check-packagepassedsavethenlink --host openclawwith a temporaryHOME. I checked the resultingUSER.mdblock.Checklist
Not in this PR: other hosts (Hermes, Codex
AGENTS.md, and so on), a snippet for OpenClaw'sBOOTSTRAP.mdfirst-run ritual, publishing to npmjs, anddistilly init. OpenClaw describesUSER.mdentries 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