Files
plugin-registry/plugins/user-profile/README.md
T
ixoblakp 8dec8f6038 Initial Arka plugin registry: Official plugins mirror + Arka-signed index
11 plugins from github.com/librefang/librefang-registry plugins/.
index.json / index.json.sig are signed with Arka's Ed25519 key
(not upstream stats.librefang.ai). Private key is not in this repo.
2026-09-01 10:22:07 +03:00

30 lines
1.3 KiB
Markdown

# user-profile
Persistent user profiling from conversation patterns. Builds a profile of user expertise areas, communication style, and technical level, then injects it as context so agents can personalize responses.
## How it works
**After each turn**, the plugin analyzes user messages to update the profile:
- **Expertise areas** -- extracts technical keywords and tracks frequency (top 20 retained)
- **Communication style** -- running average of message lengths (brief / moderate / detailed)
- **Technical level** -- scored from signals like code blocks, version numbers, tech abbreviations, and question patterns (beginner / intermediate / advanced)
- **Question ratio** -- fraction of user messages containing questions
**On ingest**, once the profile has at least 5 interactions, the plugin returns a compact profile summary as a memory fragment: `expertise=python,devops; style=detailed; level=advanced`.
## Hooks
| Hook | Script | Description |
|------|--------|-------------|
| ingest | `hooks/ingest.py` | Returns the profile summary as a memory fragment (after 5+ interactions) |
| after_turn | `hooks/after_turn.py` | Analyzes user messages to update the profile |
## Storage
Profiles are stored at `~/.librefang/plugins/user-profile/{agent_id}.json`.
## Usage
Installed automatically when enabled in agent configuration.