Load persona from file in repo

Open
#1,167 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
json, kotlin

Research direction

Start at the application startup path and the existing persona loading and plugin-settings code. The relevant input is the repository-local .proxyai/persona/*.json folder described in the issue; no specific source files or tests are named. Done means matching files load on startup for the current repository, remain read-only in plugin settings, and do not become available as project personas for other repositories.

Written by the indexing model from the issue text.

Description

enhancement
Describe the need of your request

Every project is slightly different and we want to reflect this in the persona - it defines project-level rules and guidance.

Current problem: Personas and prompts are global. We have to import all personas for all projects and make sure to select the correct persona before using ProxyAI.

Also, it's easy for devs to get out of sync, as we cannot commit the persona to the repo and people do not know if their persona is still up-to-date

Proposed solution

Add support for a .proxyai config folder that can be git controlled.

All .proxyai/persona/*.json files are loaded on app start and available as read-only Personas for the current project (they cannot be edited or deleted in the plugin settings, as they are always loaded from the file)

Additional context

The goal is to add personas to a repo, and every developer using that repo has the "shared persona" available, and those personas do not spill over to other projects.

Dominant language
Kotlin
Stars
1.9k
Forks
401
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from carlrobertoh/ProxyAI

All issues in carlrobertoh/ProxyAI

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.