portuni: Instructions file for Claude Code

CLAUDE.md

portuni CLAUDE.md is an instructions file for Claude Code from honzapav/portuni. It costs 6,148 tokens per session, scanned C, original, Apache-2.0.

Project-specific instructions for Portuni, a knowledge graph application for organisations, projects, processes, areas, and principles. They describe its Node and libSQL backend, React and Vite frontend, and Tauri desktop shell.

In plain words
What is it for?
Use them when developing Portuni's backend, frontend, or desktop application, including building the backend and running the local web interface.
Why use it?
They give an agent the local commands, service ports, development workflow, and boundaries for working on the project. This reduces the chance of starting the wrong service or changing the desktop shell unnecessarily.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is honzapav/portuni's own configuration. It tells Claude Code how to work on portuni itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything portuni configures →

Reuse

Borrowing it

Nothing to install: this file belongs to honzapav/portuni. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/honzapav/portuni/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/honzapav/portuni

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for portuni CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/honzapav/portuni/claude-md/github.svg)](https://agentmods.dev/instructions/honzapav/portuni/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/honzapav/portuni/claude-md"><img src="https://agentmods.dev/badge/instructions/honzapav/portuni/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for portuni CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/honzapav/portuni/claude-md"><img src="https://agentmods.dev/badge/instructions/honzapav/portuni/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,148 This file is loaded in full into every session.
When invoked 6,148 The same file — it is already loaded in full.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.06148 $0.06148
Opus 5.5 $0.02459 $0.02459
Sonnet 5.5 $0.01230 $0.01230
Haiku 4.5 $0.00615 $0.00615

Measured yesterday against content hash 53f79e29dbd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

portuni CLAUDE.md scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /Applications/Portuni.app
CLAUDE.md · 401 lines

How it starts

The opening of the file, as written. The whole thing — 401 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Portuni – Claude guide

Knowledge graph for organisations (POPP: organisations, projects, processes, areas, principles). Backend Node + libSQL (Turso), frontend React + Vite, desktop shell Tauri 2.

Workspace rule, before anything else. A workspace is either a team workspace or a personal workspace, named by what it is for, not by where its database sits. The team workspace is the primary one: a team runs the central server, every teammate's desktop is a team workspace whose sidecar is a sync agent, and that is where every real task, mirror and MCP session happens. A personal workspace is the same server in a box for one person; it must keep working, but it is not the reference. Every change to the server, a REST route, an MCP tool or the session runtime works in both before its issue closes. A half that is missing is an open issue named in the PR title, never a "known gap" note in the docs. New behaviour is written once as domain code that runs on the central server and in the sidecar; where the device lacks the graph db, it takes a CentralClient seam, not a second implementation. Words kept apart: team workspace (data_mode: "central"), personal workspace (data_mode: "local"), the central server (the process at api.portuni.com), the sync agent (the device's sidecar in a team workspace, PORTUNI_AGENT_MODE=1) and device-local (what the sync agent serves itself, device_local in code). Model and checklist: docs/architecture/data-modes.md.

Where the rules live

Detailed behaviour and invariants are in docs/architecture/; this file keeps the workflow and one-line rules with pointers. Read the doc before touching its area.

Doc Read when touching
data-modes.md anything that behaves differently on the central server, on a team-workspace device, or in a personal workspace; request routing; the workspace checklist
file-state-and-sync-runs.md mirrors, watcher, reconcile, sync runs and jobs, remote watcher, locking, delete/move/rename, repair_needed
file-sync.md, file-mutation-propagation.md the file-bytes plane design, adapters, tombstones
sessions-and-runner.md sessions, tasks, runs, the Claude adapter, live channel server side, provider instances
task-surface-web.md Práce, SessionChat, sidebar threads, the sessions client, AI Elements
desktop-shell.md config.json, workspaces, windows, quit, events, localStorage, api_request routing, the WS bridge, updates
mcp-scope-and-integrations.md MCP connect and scope configs, disk read scope, orientation, elicitation deadlines, Showtime, Vibe
database-and-dialects.md schema, migrations, dialect-neutral SQL, tests on both drivers, export/import
docs/env-vars.md any process.env read (PORTUNI_ROOT is write-scope tiering, PORTUNI_WORKSPACE_ROOT is mirrors)
docs/lessons-learned.md §7 before every migration
docs/vision/portuni-as-workspace.md product direction, "Local vs. central" table

Read the full file on GitHub · 401 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +11 lines · +173 tokens per session 53f79e29dbd8
  2. 28d ago Changed · -3 lines · -79 tokens per session 5f23914d0467
  3. 1mo ago Changed · +14 lines · +245 tokens per session 260b6ec758ac
  4. 1mo ago Changed · -2 tokens per session 499a7cfce675
  5. 1mo ago Changed · +9 lines · +165 tokens per session b753228c5691
  6. 1mo ago Changed · +6 lines · +144 tokens per session 768909803642
  7. 1mo ago Changed · +29 lines · +482 tokens per session 6be27e1c28c9
  8. 1mo ago Changed · +3 lines · +42 tokens per session 22992f85d6eb
  9. 1mo ago Changed · -1,994 lines · -36,774 tokens per session scan D → C 4fafd57442bf
  10. 1mo ago First seen · 2,326 lines · 41,752 tokens per session scan D 369decf8db82

Subscribe to this mod's changes

portuni CLAUDE.md is an instructions file published in the GitHub repository honzapav/portuni (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 6,148 tokens to every session, about $0.0246 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

portuni CLAUDE.md compared with instructions from other repositories

portuni CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
portuni CLAUDE.mdhonzapav/portuniInstructions file2yesterdayApache-2.0C6,148Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode