Commonplace
Research on knowledge systems, running as one.
The premise is simple. LLM-written text can be useful even when no person reads it directly, because it can improve how an LLM answers your questions. Commonplace is a living doctrine for agent-operated knowledge systems, developed and tested by running one.
It has two goals. The practical one is an LLM wiki, in the sense Andrej Karpathy sketched: a persistent, linked Markdown layer in which agents, directed by people, turn a person's or project's work into retained, connected notes. The theoretical one is a new learning paradigm, the theory builder: a system that states theories, acts on them, criticizes them, and keeps what criticism shows for the next round, following Karl Popper's method of conjecture and criticism. We bet that a fully automated theory builder that learns can be built with today's LLMs, their weights held fixed. No test of the bet has been run yet.
The goals reinforce each other, because memory is always about learning: a note is worth something when it changes what the system does next. Theories that are acted on, criticized, and revised are what make a wiki learn, and real use of the wiki supplies the problems and criticism a theory builder learns from.
Reflection is the core of the method. Commonplace's doctrine, how it writes, connects, and revises notes, is one of the theories it criticizes and revises, so an improvement to the method is reused by all later work. People still perform many of its operations; the work is moving them to computation.
This repository holds the adopted doctrine, research and evidence that can challenge it, and the tool: the types, conventions, skills, schemas, validators, tests, and commands that you can install to build a knowledge base of the same kind in your own project. Research does not become doctrine merely by being stored here. This README covers the tool; the research routes below point into the rest.
Use it
Install Commonplace in a project
Install the command-line tool once per OS user:
uv tool install --python ">=3.11" llm-commonplace
uv tool update-shell
Restart the shell or agent runtime, then scaffold the current project:
commonplace-init --root .
Fill in the generated AGENTS.md.template and use it as the project's AGENTS.md, and rename CLAUDE.md.template to CLAUDE.md. The installation supplies the Commonplace types, conventions, skills, and commands, which the project reads in place from the installed package rather than copying; the new knowledge base accumulates knowledge about its own project. The package does not include this repository's external-system reviews or source corpus. See INSTALL.md.
Vendor the research read-only
To let agents consult the full research corpus without installing a Commonplace system, place this repository inside the project as a submodule, clone, or copy, then append AGENTS.md.reader-fragment to the project's agent instructions. Reader mode needs no Python; the agent runtime only needs file access and rg. See Reader install.
Develop Commonplace
git clone https://github.com/zby/commonplace.git
cd commonplace
uv tool install --python ">=3.11" --editable .
uv tool update-shell
Restart consumers of the command path. Ordinary source changes are then visible through the editable installation. After dependency, entry-point, build-metadata, or packaged-scaffold changes, reinstall with uv tool install --reinstall --python ">=3.11" --editable .. Run development checks with uv run pytest and uv run ruff check .. Do not run commonplace-init in the source checkout.
uv run pytest excludes expensive analysis workflow tests marked slow.
Use uv run pytest -m slow for those tests, or uv run pytest -m "" for
the complete suite. CI runs the complete suite. Run the slow tests when changing
the analysis workflow or its acceptance checks.
What's in the box
kb/ Knowledge base
theory/ Transferable research claims and theory
articles/ Self-standing technical explanations
reference/ Current system documentation and ADRs
types/ Global artifact contracts and schemas
instructions/ Skills, review gates, and procedures
agent-memory-systems/ Reviews of agent-memory systems
agentic-systems/ Reviews of agent runtimes and harnesses
sources/ Snapshotted sources with analysis
reports/ Operational state and retained reports
work/ In-flight workshops
tasks/ Work tracking
log.md Improvement log
index.md Rendered-site homepage
src/commonplace/ Packaged operational engine
cli/ commonplace-* commands
review/ Review system
lib/ Shared runtime helpers
docs/ ProperDocs hooks and assets
Core design choices
Claims form a network. Note titles are assertions, not topics, and links state how claims relate—such as grounds, extends, contradicts, or exemplifies. This makes traversal a form of reasoning rather than generic browsing. See title as claim and the linking methodology.
Structure is earned progressively. A frontmatter-free file is valid text. Add a description and note type when the material deserves a durable claim; specialize it further only when the extra contract enables useful operations. See the wikiwiki principle.
Authored knowledge remains file-backed. Markdown and Git provide a universal interface, versioning, diffs, and rollback. Derived indexes handle scale without replacing authored files. Review execution state is the scoped exception and lives in SQLite; see ADR 010 and ADR 035.
Local contracts stay revisable. Different parts of the knowledge base support different kinds of work, so task-specific types and link conventions stay local to each part. Structures can also become obsolete as questions, evidence, or model capabilities change, so those local choices remain revisable. Shared rules are kept for constraints that hold across parts and over time. See why task-fitted structure costs cross-task reuse.
Doctrine is explicit; exact operations are code. Skills and conventions tell the model what to do and which of its capabilities to use. Code, schemas, and validators carry operations whose behavior should not depend on repeated interpretation, because code executes them the same way every time. Both sides remain revisable as evidence and model capabilities change.
Research routes
The rendered site is the main route into the research. Starting points:
- The theory builder definition and Commonplace builds a theory builder and tests whether it learns — what a theory builder is, and the research program that tests whether one learns.
- Deployment-time learning and the learning theory index — durable changes to prompts, rules, tools, and code that affect later sessions without updating model weights.
- Self-improving systems and Commonplace as a reflective system.
- Reviews of agent memory systems and agentic systems, with a comparative review.
Commands, skills, and instructions
Commands are deterministic Python entry points called by name. Examples:
commonplace-validate kb/theory
commonplace-init --root .
commonplace-github-snapshot https://github.com/owner/repo/issues/123
The review system adds commands for selecting targets, queuing jobs, and finalizing outputs. commonplace-x-snapshot requires the snapshot package extra. See the review system overview.
Skills (cp-skill-*) are agent procedures auto-loaded by compatible harnesses when a task matches their description. They stay in the installed package; commonplace-init writes a small stub for each into a consuming project's skill directories that points the agent to the real skill.
| Skill | Purpose |
|---|---|
cp-skill-write |
Write or edit an artifact under its collection and type contracts |
cp-skill-validate |
Validate artifacts, collection landings, and site redirects |
cp-skill-connect |
Discover connections and write a connect report |
cp-skill-convert |
Convert a plain text file into a structured note |
cp-skill-ingest |
Turn one URL or local snapshot into a tracked source analysis |
cp-skill-snapshot-web |
Capture a URL into ignored local snapshots |
cp-skill-ground |
Retain the minimum quotations needed to ground a source claim |
cp-skill-add-collection |
Add a new collection with its contract, landing, tag participation and routing |
cp-skill-health-check |
Diagnose a broken Commonplace installation |
cp-skill-revise-autoreason |
Experimentally revise a note with critic, author, synthesizer, and blind-judge agents, keeping the original as fallback |
cp-skill-write-multistage |
Write or rebuild an unsettled artifact through staged authorship and independent review |
cp-skill-library |
Find and follow a Commonplace library procedure, instruction, or type by name |
Instructions are Markdown procedures invoked explicitly rather than auto-loaded. They live under kb/instructions/.
Prerequisites
Reader mode needs only an agent runtime with project-file access and rg. The full installation uses:
| Tool | Required | Purpose |
|---|---|---|
| Agent runtime | yes | Load project instructions and expose installed skills |
| uv | yes | Install Commonplace and run development dependencies |
| git | yes | Versioning and history-preserving relocation |
ripgrep (rg) |
yes | Search, frontmatter queries, and link scanning |
| curl | yes | PDF downloads in snapshot-web |
| Poppler | yes | PDF metadata and text extraction |
| Trafilatura | no | Web-page capture in snapshot-web; without it, paste the page text |
| gh | no | GitHub issue and PR snapshots |
License
Commonplace is dual-licensed:
Metadata
Release files for llm-commonplace 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llm_commonplace-0.3.3.tar.gz | 2.6 MB | Without provenance | Details for llm_commonplace-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llm_commonplace-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for llm_commonplace-0.3.3-py3-none-any.whl |
Total release size: 5.9 MB
Release files / llm_commonplace-0.3.3.tar.gz
| Download URL | llm_commonplace-0.3.3.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3835a042ad2613d457c2c3b0c21ecb852f089f5eb2bb5d271e2465b812ee83e
|
|
BLAKE2b-256 checksum How to use checksums |
6b783f783982d1f97240886daebe3a56bafec5552a657b28863aabf0e244510e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / llm_commonplace-0.3.3-py3-none-any.whl
| Download URL | llm_commonplace-0.3.3-py3-none-any.whl |
|---|---|
| Size | 3.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ff09994d27fbae3c77afee47a8dcbc2bb2110f2bc116fc35bdefe9a1564c63d
|
|
BLAKE2b-256 checksum How to use checksums |
a6a04cbdf9440d26ba518f3e72c40fe0327a434b80cec1ab82a57b5b5240589a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for llm-commonplace 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.