Directories
¶
| Path | Synopsis |
|---|---|
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
Package command runs physa's commands on Cobra.
|
Package command runs physa's commands on Cobra. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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). |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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). |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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). |
|
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. |
|
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. |
|
Package person names the person running Physa.
|
Package person names the person running Physa. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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). |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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). |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
Click to show internal directories.
Click to hide internal directories.