physa

module
v0.0.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0

README

Physa

Physa is product management rebuilt for agents. It treats a product as a network of ideas, and an idea's strength comes from evidence, not from estimates or status fields. The name comes from Physarum, the slime mold whose networks gave Physa its model: tubes that carry flow thicken, and tubes that carry nothing wither. docs/vision.md makes the full case.

This repo holds the open-source core: one Go binary, physa, that contains two products. The map keeps a team's product knowledge in its repo and hands agents the part their task needs. It works on its own. The engine tracks ideas, pursuits and evidence, and is built on top of the map. A hosted team layer, for several people and several repos, lives in its own repo.

Where it stands

Physa is early. What exists today is usable on a real repo, and Physa's own map in .physa/ is kept with it. Most of the engine is still to be designed. The plan in docs/plan.md is the source of truth. As of 2026-11-25:

Built

  • The map, read by agents. .physa/ holds one folder per capability, each with its rules, decisions and questions. physa map index lists the capabilities, and physa map slice gives an agent the slice its task needs in one call. physa check map and physa map fmt keep the map in its format.
  • Changes checked against the map. Every commit names the capability it serves in a Capability: trailer. physa check checks a range of changes, making sure each one names a capability that exists in the map as it leaves it, and that the map stays sound.
  • Learning. physa map learn reads merged changes and the agent sessions behind them, then drafts one batched PR to physa/learn with proposed map entries for the stewards to review.
  • Init. physa init builds a first map for an existing repo. It finds the repo's own sources, proposes capabilities, then recovers each one's rules, decisions, questions and terms, with every entry citing its source. It estimates its cost and asks before the large spend. On a large repo, the propose step runs in shares, then merges them.
  • The engine, without agents. One engine runs per machine, with a local store, events and durable intents. You can add ideas and pursue them from the CLI, give a pursuit its plan of changes, count spend from each agent's cost, and collect engineering evidence from git and GitHub.

Not built yet

  • How strength is worked out, and which evidence counts toward it.
  • How a signal is read and resolved.
  • How a team plugs in its own workflow.
  • Sharing ideas and pursuits between people. physa sync is a placeholder.
  • Runs: agents doing a pursuit's work through a harness, and the views.

Designs set aside at the reset of 2026-11-23 are in docs/archive/. They're reference, not settled.

Install

On macOS or Linux, install the latest release to ~/.local/bin:

curl -fsSL https://raw.githubusercontent.com/dphaener/physa/main/install.sh | sh
physa version

The script checks the download against the release's checksums and never uses sudo. Set PHYSA_INSTALL_DIR to install somewhere else. Every merge to main is released, so this is always what's on main.

To build from source instead, with Go 1.26 or newer:

git clone https://github.com/dphaener/physa.git
cd physa
go build -o ~/.local/bin/physa ./cmd/physa

The map commands need only git. init and map learn run agent sessions through Claude Code, so its claude command must be on your PATH and signed in. Anything that reads or opens PRs (--pr, learning's PR signals, the evidence of merged PRs) goes through the gh CLI, signed in to GitHub.

A short tour

Run these from inside a git repo. Every command takes --help, and most take --json.

physa init                       # estimate, ask, then gather, propose and recover a map
physa init --write --pr          # commit the map to physa/init and open its PR

physa map                        # the index: every capability with its promise
physa map slice slices           # what an agent needs before changing the slices capability
physa map slice --entry agent-chooses   # one entry, by its slug
physa check                      # check the map, and origin/main..HEAD against it
physa map hooks                  # stamp Session: on commits made in Claude Code
physa map learn --write --pr     # draft what merged changes teach the map, as a PR

physa idea add "Retry webhooks for a day" --slug retry-webhooks
physa pursue retry-webhooks      # name its signal: claim, direction, window, resolver
physa pursuit show
physa evidence

The engine starts on its own when a command needs it. physa engine shows its status, and physa engine stop stops it. Its settings, the list of repos it serves and its socket are in ~/.config/physa, or $XDG_CONFIG_HOME/physa if that's set. Each repo's records are in one SQLite file under the repo's git directory (.git/physa/physa.db). It's never committed and every worktree shares it.

.github/workflows/ci.yml shows the map checks running in CI. docs/recipes/learn-on-github.md sets up learning on GitHub.

Reading further

  • .physa/glossary.md: the words Physa uses for its concepts, and the ones it avoids. The docs and the CLI use no others.
  • docs/vision.md: what Physa is and why, and the core it defends (§5).
  • docs/architecture/: the settled designs, numbered in order.
  • docs/plan.md: what's built and what comes next.
  • docs/development.md: building, testing and changing Physa.
  • AGENTS.md: the rules an agent working in this repo follows. Most of them bind people too.

License

Apache-2.0. See LICENSE and NOTICE.

Directories

Path Synopsis
Package client is the public way into the engine's local API, for views, harnesses and other programs outside Physa's module: it dials the engine's socket under the physa.v1 subprotocol, calls methods by name, receives the messages the engine sends of its own, and holds the input and output types of the methods for ideas, pursuits and evidence.
Package client is the public way into the engine's local API, for views, harnesses and other programs outside Physa's module: it dials the engine's socket under the physa.v1 subprotocol, calls methods by name, receives the messages the engine sends of its own, and holds the input and output types of the methods for ideas, pursuits and evidence.
cmd
physa command
Command physa is Physa's command line, a tree of grouped commands: check checks the map and a range of changes; map reads the map, slices it, lists changes and records, formats it and learns from merged changes; init gathers a repo's sources and proposes its first map; idea adds, lists and shows ideas; pursue starts a pursuit of an idea against a signal; pursuit lists, shows and stops pursuits and holds their plans; evidence lists the facts observed in version control and the forge; skill prints Physa's skill guide for a person's agent; engine starts, checks and stops the machine's engine; api calls the engine's API by name; sync is not built yet; version prints the build's version and help the commands.
Command physa is Physa's command line, a tree of grouped commands: check checks the map and a range of changes; map reads the map, slices it, lists changes and records, formats it and learns from merged changes; init gathers a repo's sources and proposes its first map; idea adds, lists and shows ideas; pursue starts a pursuit of an idea against a signal; pursuit lists, shows and stops pursuits and holds their plans; evidence lists the facts observed in version control and the forge; skill prints Physa's skill guide for a person's agent; engine starts, checks and stops the machine's engine; api calls the engine's API by name; sync is not built yet; version prints the build's version and help the commands.
internal
adapter
Package adapter is what Physa needs from an agent: start a headless session with a prompt in a directory, optionally under an id assigned by whoever starts it, wait for its result, the tokens it used and what it cost, and read a session's log for what learning needs from it (answered asks, interventions and checks' reports), redacted.
Package adapter is what Physa needs from an agent: start a headless session with a prompt in a directory, optionally under an id assigned by whoever starts it, wait for its result, the tokens it used and what it cost, and read a session's log for what learning needs from it (answered asks, interventions and checks' reports), redacted.
adapter/claude
Package claude is the Claude Code adapter: it starts sessions with claude -p and streamed JSON output, optionally under an id assigned by whoever starts them (--session-id, so the session keeps its log) or continuing one (--resume <id>, which works with -p, as claude --help shows, in the same directory the session ran in), and reads the result, the tokens and what the session cost from the stream.
Package claude is the Claude Code adapter: it starts sessions with claude -p and streamed JSON output, optionally under an id assigned by whoever starts them (--session-id, so the session keeps its log) or continuing one (--resume <id>, which works with -p, as claude --help shows, in the same directory the session ran in), and reads the result, the tokens and what the session cost from the stream.
adapter/claude/claudelog
Package claudelog is the Claude Code adapter's reader of session logs: it finds a session's transcript under Claude Code's config directory and returns what learning needs from it and its subagents, redacted, never writing anything there.
Package claudelog is the Claude Code adapter's reader of session logs: it finds a session's transcript under Claude Code's config directory and returns what learning needs from it and its subagents, redacted, never writing anything there.
agentenv
Package agentenv says whether Physa is running inside an agent's session, from the markers each adapter knows, so commands only a person may run can refuse deterministically.
Package agentenv says whether Physa is running inside an agent's session, from the markers each adapter knows, so commands only a person may run can refuse deterministically.
agentspointer
Package agentspointer keeps the few marked lines init adds to AGENTS.md: it puts them between their markers and changes nothing outside them.
Package agentspointer keeps the few marked lines init adds to AGENTS.md: it puts them between their markers and changes nothing outside them.
api
Package api is the engine's local API: methods called by name with JSON in and out over a WebSocket on a Unix socket, each with a JSON schema for its input and output, under the physa.v1 subprotocol and one API revision; the engine may send messages of its own on the same connection.
Package api is the engine's local API: methods called by name with JSON in and out over a WebSocket on a Unix socket, each with a JSON schema for its input and output, under the physa.v1 subprotocol and one API revision; the engine may send messages of its own on the same connection.
apischema
Package apischema derives the JSON schema of an API method's input and output from its Go type, and checks a JSON value against it, so every method is typed once.
Package apischema derives the JSON schema of an API method's input and output from its Go type, and checks a JSON value against it, so every method is typed once.
areas
Package areas divides a repo's source files into areas by promise for init: one session names the repo's test, doc and other files as patterns, then one session (one per part on a large repo) places every source file in exactly one area.
Package areas divides a repo's source files into areas by promise for init: one session names the repo's test, doc and other files as patterns, then one session (one per part on a large repo) places every source file in exactly one area.
capabilitytext
Package capabilitytext reads a recovered capability's single text and its terms into a model of its parts (head, sections, entries with their meta lines and anchors, terms) and renders the model back in the same form, so a capability nothing changed renders byte for byte as it was stored.
Package capabilitytext reads a recovered capability's single text and its terms into a model of its parts (head, sections, entries with their meta lines and anchors, terms) and renders the model back in the same form, so a capability nothing changed renders byte for byte as it was stored.
command
Package command runs physa's commands on Cobra.
Package command runs physa's commands on Cobra.
configdir
Package configdir finds the machine's Physa settings directory: $XDG_CONFIG_HOME/physa when that is an absolute path, else ~/.config/physa.
Package configdir finds the machine's Physa settings directory: $XDG_CONFIG_HOME/physa when that is an absolute path, else ~/.config/physa.
consolidate
Package consolidate is init's consolidation phase: over the capabilities recovered from the walk, sessions judge which capabilities from different areas are one promise, then which entries of one area repeat each other, are misplaced or are answered, then which rules repeated across areas are one rule the product keeps.
Package consolidate is init's consolidation phase: over the capabilities recovered from the walk, sessions judge which capabilities from different areas are one promise, then which entries of one area repeat each other, are misplaced or are answered, then which rules repeated across areas are one rule the product keeps.
consolidatedmap
Package consolidatedmap puts a stored consolidation into the map init writes: its consolidated capabilities, terms and product rules take the place of the recovered ones, the sessions and entries of capabilities merged away are kept, and everything consolidation left out is listed for the PR body with its reason.
Package consolidatedmap puts a stored consolidation into the map init writes: its consolidated capabilities, terms and product rules take the place of the recovered ones, the sessions and entries of capabilities merged away are kept, and everything consolidation left out is listed for the PR body with its reason.
consolidateguard
Package consolidateguard checks that consolidation's output holds only what recovery wrote, and loses nothing unrecorded: every entry and term in it has a source among the recovered capabilities, word for word, with no anchor none of them had, and every recovered entry, anchor and term is in it or named in the record of what consolidation did.
Package consolidateguard checks that consolidation's output holds only what recovery wrote, and loses nothing unrecorded: every entry and term in it has a source among the recovered capabilities, word for word, with no anchor none of them had, and every recovered entry, anchor and term is in it or named in the record of what consolidation did.
consolidateprompt
Package consolidateprompt holds the skills of init's consolidation, one for each step a session judges (merging capabilities that are one promise, consolidating one area's entries, lifting rules the whole product keeps), writes each session's message with every entry fenced as data, and reads each reply.
Package consolidateprompt holds the skills of init's consolidation, one for each step a session judges (merging capabilities that are one promise, consolidating one area's entries, lifting rules the whole product keeps), writes each session's message with every entry fenced as data, and reads each reply.
consolidating
Package consolidating is the code side of init's consolidation: over the capabilities recovered from the walk, it merges capabilities a session names as one promise, merges exact duplicate entries, applies an area's merges, moves and drops by id, and lifts rules repeated across areas to the product's rules.
Package consolidating is the code side of init's consolidation: over the capabilities recovered from the walk, it merges capabilities a session names as one promise, merges exact duplicate entries, applies an area's merges, moves and drops by id, and lifts rules repeated across areas to the product's rules.
coverage
Package coverage places each gathered PR and change with its nearest proposed capability, by the files it touches against the files and clusters the capability's own citations touch, so recovery reads them and not only what propose cited.
Package coverage places each gathered PR and change with its nearest proposed capability, by the files it touches against the files and clusters the capability's own citations touch, so recovery reads them and not only what propose cited.
design
Package design is Physa's look, the same in every view: its tokens, its component styles, its fonts and its brand book, embedded so the views serve them with no network and no third party.
Package design is Physa's look, the same in every view: its tokens, its component styles, its fonts and its brand book, embedded so the views serve them with no network and no third party.
discovery
Package discovery starts one read-only agent session in the repo that names the sources a map should be built from, each with a kind and a reason.
Package discovery starts one read-only agent session in the repo that names the sources a map should be built from, each with a kind and a reason.
draft
Package draft is learning's third stage (design 08 section 2): one prompt-only session per run turns a batch of signals into proposed map entries, with the learning skill, under an appetite whose circuit breaker stops the session and keeps nothing.
Package draft is learning's third stage (design 08 section 2): one prompt-only session per run turns a batch of signals into proposed map entries, with the learning skill, under an appetite whose circuit breaker stops the session and keeps nothing.
engine
Package engine is the one engine per machine: it holds the machine's lock, serves the local API on its socket, and exits when nothing is pending or when asked to stop.
Package engine is the one engine per machine: it holds the machine's lock, serves the local API on its socket, and exits when nothing is pending or when asked to stop.
enginecli
Package enginecli holds the engine and api command groups: starting, checking and stopping the machine's engine, and calling its API by name for debugging.
Package enginecli holds the engine and api command groups: starting, checking and stopping the machine's engine, and calling its API by name for debugging.
enginestart
Package enginestart gives a command a client connected to the machine's engine, starting the engine first when it is not running, and stops it on request.
Package enginestart gives a command a client connected to the machine's engine, starting the engine first when it is not running, and stops it on request.
evidence
Package evidence turns what version control and the forge show into evidence facts: a change landing, a change reverted, a merged PR's lead time and its CI result.
Package evidence turns what version control and the forge show into evidence facts: a change landing, a change reverted, a merged PR's lead time and its CI result.
evidencecli
Package evidencecli is the evidence command: it lists the facts the engine observed in version control and the forge, newest first, for the repo or narrowed to a capability or a pursuit.
Package evidencecli is the evidence command: it lists the facts the engine observed in version control and the forge, newest first, for the repo or narrowed to a capability or a pursuit.
forge
Package forge is what Physa needs from the forge that hosts a repo's PRs, when there is one: whether a PR exists, and for a change the PR it came from with its review, discussion and commits.
Package forge is what Physa needs from the forge that hosts a repo's PRs, when there is one: whether a PR exists, and for a change the PR it came from with its review, discussion and commits.
forge/github
Package github is the GitHub adapter of the forge interface: it reads GitHub through the gh command, and opens or refreshes a PR only through the forge.PRs methods in pulls.go; it never merges.
Package github is the GitHub adapter of the forge interface: it reads GitHub through the gh command, and opens or refreshes a PR only through the forge.PRs methods in pulls.go; it never merges.
gather
Package gather collects the sources init reads, within a bound, and summarises what it found: a repo's docs (agent docs, contributing guides, readmes, decision records), its history through version control, and its merged PRs through the forge when there is one, page by page, waiting out the forge's rate limits (internal/gather/merged).
Package gather collects the sources init reads, within a bound, and summarises what it found: a repo's docs (agent docs, contributing guides, readmes, decision records), its history through version control, and its merged PRs through the forge when there is one, page by page, waiting out the forge's rate limits (internal/gather/merged).
gather/merged
Package merged lists a forge's merged PRs page by page within gather's bound, and waits out the forge's rate limits as GitHub says: its retry-after, else until its primary limit resets, else a minute doubling on each repeat, up to a total wait limit.
Package merged lists a forge's merged PRs page by page within gather's bound, and waits out the forge's rate limits as GitHub says: its retry-after, else until its primary limit resets, else a minute doubling on each repeat, up to a total wait limit.
history
Package history reads anchors from the history of changes, through version control: the changes of a range with the capability each one's Capability trailer names and the sessions its Session trailers name, and checks the capabilities as design 07 section 5 asks.
Package history reads anchors from the history of changes, through version control: the changes of a range with the capability each one's Capability trailer names and the sessions its Session trailers name, and checks the capabilities as design 07 section 5 asks.
ideacli
Package ideacli is the idea commands and what the pursuit commands share: talking to the engine, the one interactive test, choosing a slug, opening an editor, and styles.
Package ideacli is the idea commands and what the pursuit commands share: talking to the engine, the one interactive test, choosing a slug, opening an editor, and styles.
initbranch
Package initbranch writes init's map to the branch physa/init (design 02 section 2.6) in an isolated working copy: the map's files and the AGENTS.md pointer, and nothing else.
Package initbranch writes init's map to the branch physa/init (design 02 section 2.6) in an isolated working copy: the map's files and the AGENTS.md pointer, and nothing else.
initcap
Package initcap is a person's optional cap on what init spends, in the unit they pay in: an amount of money, a share of their plan's usage as a ceiling, or weighted tokens.
Package initcap is a person's optional cap on what init spends, in the unit they pay in: an amount of money, a share of their plan's usage as a ceiling, or weighted tokens.
initcost
Package initcost is init being up front about its cost, since it is never bounded (design 10 Q6): what a token of its spend is worth, and the table of what each phase spent.
Package initcost is init being up front about its cost, since it is never bounded (design 10 Q6): what a token of its spend is worth, and the table of what each phase spent.
initpr
Package initpr is init's last step on the repo: it installs the Session: hook, and opens or refreshes the PR of physa/init with the body of what was written.
Package initpr is init's last step on the repo: it installs the Session: hook, and opens or refreshes the PR of physa/init with the body of what was written.
initrecord
Package initrecord keeps init's record in .git/physa: the areas a repo was divided into, the one init proposal, the capabilities' recoveries and what each init phase spent.
Package initrecord keeps init's record in .git/physa: the areas a repo was divided into, the one init proposal, the capabilities' recoveries and what each init phase spent.
initrun
Package initrun is physa init as a command: it reads init's flags, runs the phases asked for against the repo's store, and prints what it did.
Package initrun is physa init as a command: it reads init's flags, runs the phases asked for against the repo's store, and prints what it did.
jsonblock
Package jsonblock finds the last closed json fence of an agent's answer, so every phase that asks an agent for json reads its reply the same way.
Package jsonblock finds the last closed json fence of an agent's answer, so every phase that asks an agent for json reads its reply the same way.
learn
Package learn is learning's first two stages (design 08 section 2): it collects the merged changes not yet learned from, finds the signals each one carries, and triages them into changes with a signal and changes with nothing to learn.
Package learn is learning's first two stages (design 08 section 2): it collects the merged changes not yet learned from, finds the signals each one carries, and triages them into changes with a signal and changes with nothing to learn.
learnbranch
Package learnbranch writes one learning run to the physa/learn branch (design 08 section 6): it rebuilds the branch on the default branch in an isolated working copy, applies the run's kept proposals there and commits them with the record of what was learned (the Learned-through watermark and the Learned ids).
Package learnbranch writes one learning run to the physa/learn branch (design 08 section 6): it rebuilds the branch on the default branch in an isolated working copy, applies the run's kept proposals there and commits them with the record of what was learned (the Learned-through watermark and the Learned ids).
learnreport
Package learnreport prints what learning found, as text for people or as one JSON object for tools.
Package learnreport prints what learning found, as text for people or as one JSON object for tools.
learnsession
Package learnsession finds learning's signals in the sessions behind a change (design 08 section 3): its answered asks, its interventions and its fixed findings.
Package learnsession finds learning's signals in the sessions behind a change (design 08 section 3): its answered asks, its interventions and its fixed findings.
mapcheck
Package mapcheck checks a product's map against its format and size limits: the rules `physa check map` enforces.
Package mapcheck checks a product's map against its format and size limits: the rules `physa check map` enforces.
mapfile
Package mapfile reads a product's map from its .physa directory: the product's folder, each capability's folder and the glossary.
Package mapfile reads a product's map from its .physa directory: the product's folder, each capability's folder and the glossary.
mapfolder
Package mapfolder knows where each part of a capability lives in its folder and writes the contents that link to its entries: index.md with the promise, overview and links, and one file of entries per kind.
Package mapfolder knows where each part of a capability lives in its folder and writes the contents that link to its entries: index.md with the promise, overview and links, and one file of entries per kind.
mapindex
Package mapindex builds the index: every capability with its one-line promise and its counts of rules, decisions and questions.
Package mapindex builds the index: every capability with its one-line promise and its counts of rules, decisions and questions.
mapped
Package mapped says whether a repo already holds a Physa map, on its default branch or, with no default branch to be found, in its working tree, so that init refuses to start a second one and --gather alone starts no discovery agent on a mapped repo.
Package mapped says whether a repo already holds a Physa map, on its default branch or, with no default branch to be found, in its working tree, so that init refuses to start a second one and --gather alone starts no discovery agent on a mapped repo.
mapping
Package mapping proposes a product's promise and capabilities from the gathered sources, read whole, in one prompt-only session with no appetite, and checks the reply against the gather.
Package mapping proposes a product's promise and capabilities from the gathered sources, read whole, in one prompt-only session with no appetite, and checks the reply against the gather.
mapping/shareview
Package shareview shows what a proposal made in shares read and used: each share's sources and session and the merge's, in the text and JSON forms of the proposal's Read and Session sections.
Package shareview shows what a proposal made in shares read and used: each share's sources and session and the merge's, in the text and JSON forms of the proposal's Read and Session sections.
mapslice
Package mapslice assembles a slice: the part of the map one task needs.
Package mapslice assembles a slice: the part of the map one task needs.
newcodebase
Package newcodebase is how Physa starts a map when there is nothing to recover (design 02 §2.8).
Package newcodebase is how Physa starts a map when there is nothing to recover (design 02 §2.8).
output
Package output prints what a command has to say: styled with Lip Gloss on a terminal, plain text in a pipe, in CI or for an agent, and JSON when asked, so every command speaks the same way.
Package output prints what a command has to say: styled with Lip Gloss on a terminal, plain text in a pipe, in CI or for an agent, and JSON when asked, so every command speaks the same way.
pathlint
Package pathlint finds the file paths a recovered capability text names outside its anchors.
Package pathlint finds the file paths a recovered capability text names outside its anchors.
person
Package person names the person running Physa.
Package person names the person running Physa.
picker
Package picker asks a person at a terminal: choose one item from a filterable list, confirm, or type a value; it is used only when output.Interactive says a person is there.
Package picker asks a person at a terminal: choose one item from a filterable list, confirm, or type a value; it is used only when output.Interactive says a person is there.
place
Package place puts each gathered PR and change on the capabilities that own most of its files.
Package place puts each gathered PR and change on the capabilities that own most of its files.
plan
Package plan reads a pursuit's plan: the changes a pursuit will land, each anchored to one capability with its acceptance, checked before the engine stores it.
Package plan reads a pursuit's plan: the changes a pursuit will land, each anchored to one capability with its acceptance, checked before the engine stores it.
prcheck
Package prcheck runs the PR check of design 07 section 5 on a range: every change names exactly one capability whose slug is in the map as that change leaves it, and the map passes physa check map.
Package prcheck runs the PR check of design 07 section 5 on a range: every change names exactly one capability whose slug is in the map as that change leaves it, and the map passes physa check map.
preflight
Package preflight says, before init spends, what would fail its agent's sessions or thin the map it builds: the agent's own warnings about the machine's setup, a gather missing full history or PRs, and a stored gather the forge stopped short, which a later phase still runs on.
Package preflight says, before init spends, what would fail its agent's sessions or thin the map it builds: the agent's own warnings about the machine's setup, a gather missing full history or PRs, and a stored gather the forge stopped short, which a later phase still runs on.
progress
Package progress reads which of a pursuit's planned changes have landed: merged changes on the default branch carrying the pursuit's Change: trailers, read through the version-control interface.
Package progress reads which of a pursuit's planned changes have landed: merged changes on the default branch carrying the pursuit's Change: trailers, read through the version-control interface.
propose
Package propose is learning's fourth stage (design 08 section 2): every proposed map entry is checked against the signals it claims and, on a scratch copy of the map, with the map check; those that pass are kept and every other one is dropped with its reason, never silently.
Package propose is learning's fourth stage (design 08 section 2): every proposed map entry is checked against the signals it claims and, on a scratch copy of the map, with the map check; those that pass are kept and every other one is dropped with its reason, never silently.
pursuitcli
Package pursuitcli is the pursuit commands: a person pursues an idea against a signal, with an appetite or none, and lists, shows and stops pursuits; inside an agent's session starting or stopping one is refused.
Package pursuitcli is the pursuit commands: a person pursues an idea against a signal, with an appetite or none, and lists, shows and stops pursuits; inside an agent's session starting or stopping one is refused.
quiet
Package quiet reaches into the areas of a repo that the gathered PRs miss.
Package quiet reaches into the areas of a repo that the gathered PRs miss.
reading
Package reading shapes a gather into what one session reads, whole and deterministically, and estimates its tokens.
Package reading shapes a gather into what one session reads, whole and deterministically, and estimates its tokens.
recovering
Package recovering holds the recovering skill and what surrounds one session of it: the prompt for one capability, or for one share of its sources when they are more than one session holds, reading the capability's single text (which Physa splits into its folder) and the terms the session writes, and dropping the entries, overview and terms the map check fails.
Package recovering holds the recovering skill and what surrounds one session of it: the prompt for one capability, or for one share of its sources when they are more than one session holds, reading the capability's single text (which Physa splits into its folder) and the terms the session writes, and dropping the entries, overview and terms the map check fails.
recoverinput
Package recoverinput is what each capability's recovery reads and in what order: from the stored proposal and coverage as before, or from the walk's footprints and the placements, in a seeded order across areas.
Package recoverinput is what each capability's recovery reads and in what order: from the stored proposal and coverage as before, or from the walk's footprints and the placements, in a seeded order across areas.
recovery
Package recovery is init's recover and check phases: one session per capability, read-only over the repo, or one per share, one after another, when its sources are more than one session holds, at most Concurrency capabilities at once.
Package recovery is init's recover and check phases: one session per capability, read-only over the repo, or one per share, one after another, when its sources are more than one session holds, at most Concurrency capabilities at once.
recoveryreport
Package recoveryreport prints what recovering a map's capabilities did, as text for people or as one JSON document for tools, and the exit code it ends with.
Package recoveryreport prints what recovering a map's capabilities did, as text for people or as one JSON document for tools, and the exit code it ends with.
repeats
Package repeats finds capabilities and rules that may repeat each other across areas, for a session to judge.
Package repeats finds capabilities and rules that may repeat each other across areas, for a session to judge.
repos
Package repos keeps the repos registered on this machine, the ones the engine serves, one absolute path per line in the repos file of Physa's settings directory, and opens their state.
Package repos keeps the repos registered on this machine, the ones the engine serves, one absolute path per line in the repos file of Physa's settings directory, and opens their state.
sessionhook
Package sessionhook installs the hook that stamps Session: on changes made in a Claude Code session, so that learning can join each change to the session that made it (design 07 section 4.1), and it never disables a hook.
Package sessionhook installs the hook that stamps Session: on changes made in a Claude Code session, so that learning can join each change to the session that made it (design 07 section 4.1), and it never disables a hook.
shares
Package shares reads init's sources in shares when they are more than one session holds: propose's (design 02 §2.3.1), and one capability's in recovery (§2.4).
Package shares reads init's sources in shares when they are more than one session holds: propose's (design 02 §2.3.1), and one capability's in recovery (§2.4).
signal
Package signal writes and reads a pursuit's signal as markdown: its claim, its direction (what counts for and what counts against), the window it is read in and its resolver, every part checked present and every problem reported together on one line.
Package signal writes and reads a pursuit's signal as markdown: its claim, its direction (what counts for and what counts against), the window it is read in and its resolver, every part checked present and every problem reported together on one line.
skillagent
Package skillagent is the agents Physa's skill is set up for: where each keeps Physa's stub and session hook, and whether it is found on this account, by its config directory or its binary on PATH.
Package skillagent is the agents Physa's skill is set up for: where each keeps Physa's stub and session hook, and whether it is found on this account, by its config directory or its binary on PATH.
skillcli
Package skillcli holds Physa's skill for a person's agent: the guide that teaches it to use Physa's commands and terms as Physa means them, embedded in the binary and never read from the repo, so upgrading Physa updates what every agent is told.
Package skillcli holds Physa's skill for a person's agent: the guide that teaches it to use Physa's commands and terms as Physa means them, embedded in the binary and never read from the repo, so upgrading Physa updates what every agent is told.
skillhook
Package skillhook is Physa's session hook in a hooks file of Claude Code's settings shape, which Claude Code's settings.json and Codex's hooks.json share: one SessionStart entry that runs "physa skill session" at the start of every session, and whether the entry at a path is current, stale, missing or not safe to edit.
Package skillhook is Physa's session hook in a hooks file of Claude Code's settings shape, which Claude Code's settings.json and Codex's hooks.json share: one SessionStart entry that runs "physa skill session" at the start of every session, and whether the entry at a path is current, stale, missing or not safe to edit.
skillstub
Package skillstub is the stub of Physa's skill that setup writes into an agent's skills directory: its text, and whether the stub at a path is current, stale, missing or not Physa's.
Package skillstub is the stub of Physa's skill that setup writes into an agent's skills directory: its text, and whether the stub at a path is current, stale, missing or not Physa's.
sourceset
Package sourceset says which of a repo's tracked files are source for init: it leaves out what git or the repo marks (vendored, generated), binary files and lock files, applies the test, doc and other patterns a session named, and resolves path claims so each file goes to the most specific one.
Package sourceset says which of a repo's tracked files are source for init: it leaves out what git or the repo marks (vendored, generated), binary files and lock files, applies the test, doc and other patterns a session named, and resolves path claims so each file goes to the most specific one.
spend
Package spend weighs what sessions spend (design 10 §1): each kind of token counts by its price relative to input, and one weighted token is worth the input price of the adapter's default model.
Package spend weighs what sessions spend (design 10 §1): each kind of token counts by its price relative to input, and one weighted token is worth the input price of the adapter's default model.
state
Package state is the engine's one writer for a repo's store: every change to ideas, pursuits, plans, intents and timers is a command applied one at a time in one transaction that appends its event.
Package state is the engine's one writer for a repo's store: every change to ideas, pursuits, plans, intents and timers is a command applied one at a time in one transaction that appends its event.
state/evidence
Package evidence is the engine's record of engineering evidence: a durable poll that observes version control, and the forge when there is one, and keeps each fact once in the store, with the facts' retention and their reads.
Package evidence is the engine's record of engineering evidence: a durable poll that observes version control, and the forge when there is one, and keeps each fact once in the store, with the facts' retention and their reads.
state/plan
Package plan is the engine's commands and reads on a pursuit's plan and its progress: each revision kept with its reason, which change a session works on, tokens spent added and checked against the appetite in the same transaction, the circuit breaker, and the Needs you items they raise; each change one command with its event.
Package plan is the engine's commands and reads on a pursuit's plan and its progress: each revision kept with its reason, which change a session works on, tokens spent added and checked against the appetite in the same transaction, the circuit breaker, and the Needs you items they raise; each change one command with its event.
state/work
Package work is the engine's commands and reads on ideas and pursuits: each change one command in one transaction with its event.
Package work is the engine's commands and reads on ideas and pursuits: each change one command in one transaction with its event.
store
Package store keeps Physa's local records for the repo in one SQLite database, physa.db in the store directory the version-control interface names (shared by every worktree, never committed).
Package store keeps Physa's local records for the repo in one SQLite database, physa.db in the store directory the version-control interface names (shared by every worktree, never committed).
tokens
Package tokens reads and writes an appetite the way people say it: a number of tokens such as 200k or 1.5m.
Package tokens reads and writes an appetite the way people say it: a number of tokens such as 200k or 1.5m.
vcs
Package vcs is what Physa needs from version control, whatever holds the history: the changes of a range with their messages and times, the newest changes of a ref, whether a change exists, which change a change says it reverts, the shared default branch and the refs that hold a named branch, whether the history is incomplete, where Physa's store lives, the files a change leaves in a directory, the change a ref names, the newest change carrying a trailer, whether one change is part of another's history, the changes committed after a time, and the paths a change altered.
Package vcs is what Physa needs from version control, whatever holds the history: the changes of a range with their messages and times, the newest changes of a ref, whether a change exists, which change a change says it reverts, the shared default branch and the refs that hold a named branch, whether the history is incomplete, where Physa's store lives, the files a change leaves in a directory, the change a ref names, the newest change carrying a trailer, whether one change is part of another's history, the changes committed after a time, and the paths a change altered.
vcs/git
Package git is the git adapter of the version-control interface: it reads the history of a git repository for Physa through the git command.
Package git is the git adapter of the version-control interface: it reads the history of a git repository for Physa through the git command.
walk
Package walk holds the skill for init's walk: one session reads an area's code, tests and docs and names its capabilities, each a promise with a footprint, and marks every other source file of the area shared with a reason.
Package walk holds the skill for init's walk: one session reads an area's code, tests and docs and names its capabilities, each a promise with a footprint, and marks every other source file of the area shared with a reason.
workapi
Package workapi is the engine's API for ideas, pursuits and evidence: twelve methods, typed once, each change one command with its event.
Package workapi is the engine's API for ideas, pursuits and evidence: twelve methods, typed once, each change one command with its event.
writereport
Package writereport says what writing physa/init did: the text a person reads, ending with the PR body, and the value --json prints.
Package writereport says what writing physa/init did: the text a person reads, ending with the PR body, and the value --json prints.
tools
codecheck command
Command codecheck checks that the core imports nothing above it, that the map's side never imports the engine's, and that every package stays within its size budget and has a doc comment stating its promise.
Command codecheck checks that the core imports nothing above it, that the map's side never imports the engine's, and that every package stays within its size budget and has a doc comment stating its promise.
initstats command
Command initstats measures a run of physa init on a repo whose map and code must stay where they are, and prints a record of numbers that can leave it.
Command initstats measures a run of physa init on a repo whose map and code must stay where they are, and prints a record of numbers that can leave it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL