JSPM

  • Created
  • Published
  • Downloads 287
  • Score
    100M100P100Q118279F
  • License MIT

Knowledge layer for AI agents. Phren learns and recalls.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@phren/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    phren

    Your agents forget everything. Phren doesn't.

    npm version license docs whitepaper

    Every time you start a new session, your AI agent forgets everything it learned. Phren fixes that. Findings, decisions, and patterns persist as markdown in a git repo you control. No database, no hosted service, no vendor lock-in.


    Install

    npx @phren/cli init

    That single command creates ~/.phren, wires up MCP, installs hooks, and gives your agents a memory they can actually keep. Re-running on a new machine with an existing remote picks up right where you left off.

    What phren tracks

    • Findings: bugs hit, patterns discovered, decisions and their reasoning. Tagged by type ([pattern], [decision], [pitfall], [observation]) with per-type decay rates
    • Fragments: named concepts (auth, build, React) that connect findings across projects. Search for a topic and phren pulls in everything linked to that fragment
    • Tasks: work items that persist across sessions with priority, pinning, and GitHub issue linking
    • Sessions: conversation boundaries with summaries and checkpoints, so the next session picks up where the last one left off
    • Skills: reusable slash commands you teach phren. Drop them in ~/.phren/global/skills/ and they work everywhere

    How it works

    • Surfaces relevant context on every prompt via hooks. Agents build on what they know instead of starting fresh
    • Trust scores decay over time. Old findings lose confidence. Decisions never decay. Observations expire in 14 days
    • Syncs across machines through git push/pull. No coordination service
    • Works with Claude Code, Copilot, Cursor, and Codex. One store, every agent
    • Shell and web UI for browsing, searching, and triaging (phren or phren web-ui)

    Quick start

    npx @phren/cli init          # set up phren (interactive walkthrough)

    Init detects your tools, registers MCP servers, and installs lifecycle hooks. After it finishes, open a prompt in any tracked project. Phren is already injecting context.

    To add a project later, run phren add from that directory. To browse what phren knows, run phren to open the interactive shell.

    Team stores

    Phren supports shared team knowledge repos alongside your personal store. A team store is a separate git repo that multiple people push to. Findings, tasks, and skills saved there are visible to everyone on the team.

    Create a team store:

    phren team init my-team --remote git@github.com:org/phren-team.git
    phren team add-project my-team my-project

    Join an existing team store:

    phren team join git@github.com:org/phren-team.git

    Each team store syncs independently. Run phren team list to see all registered stores.


    MIT License. Made by Ala Arab.