Download README.md from AnthropicallyHuggingFaces/ProjectOS: direct link, hf CLI and curl.
- Browser
- Download file 9.37 kB
-
https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/README.md
- Command line
-
hf download hf://spaces/AnthropicallyHuggingFaces/ProjectOS/README.md
-
curl -L -o README.md https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/README.md
title: ProjectOS
emoji: 🧭
colorFrom: indigo
colorTo: gray
sdk: docker
app_port: 7860
pinned: false
ProjectOS Operations Console
A pnpm and Turborepo monorepo scaffold with a React dashboard, local SQLite API, runtime entry point, and initial fabric packages.
Run the local app
Install Node.js 24.22.1 or later in the 24.x line (or 26.12.1+) and pnpm 10, then run pnpm install and pnpm dev from this folder. The React dashboard runs at http://127.0.0.1:5173; the API runs at http://127.0.0.1:4173. The local API stores projects, governance decisions, plans, and snapshots in data/projectos.sqlite. Run pnpm build to compile the referenced TypeScript projects and build the dashboard.
The original no-build dashboard remains available by opening the root index.html directly or by browsing to the API port. In browser-only mode, changes use local storage instead of SQLite.
What is included
- Overview dashboard with system health and recent project examples
- Project directory with search and stage filters
- Persistent project creation, editing, and lifecycle stage updates
- Project snapshots saved as recoverable project-state records
- Decision formula with logic and governance gates
- Project lifecycle map
- Fabrics, agents, councils, governance, and knowledge pages
- Clickable detail cards for fabrics, agents, councils, governance controls, and knowledge areas
- Local question-to-plan previews with council and agent suggestions and saved history
- Governance proposals that can be approved or declined
- Local HTTP API with a health endpoint and validated state routes
- SQLite persistence with no external database server
- Workspace modules for intent classification, council selection, and execution governance gates
- Fabric packages for knowledge lifecycle, delta analysis, dependency tracking, identity, trust, logic, governance, execution, and storage
bootstrap.xmlas the sole human-edited project manifest, including runtime settings, routing, and permission rulespackages/schema-engine, which validates bootstrap.xml against the XSD and Schematron rules and generates runtime artifacts- Canonical repository symbols, aliases, and language naming profiles generated from
bootstrap.xml; Logic Fabric resolves aliases before symbol lookup configs/*.generated.jsonandconfigs/generated/*.generated.jsonas generated runtime, model, workspace, agent, permission, storage, symbol, and dashboard configurationpackages/common, which loads and validates the generated runtime and environment valuespackages/storage-fabric, with idempotent local SQLite tables, Drizzle schemas for SQLite and PostgreSQL, and a pgvector schema- SQLite repositories for projects, canon, frontier promotion, and checksummed project snapshots with restore support
- Schema-engine generated documentation, registries, storage manifests, snapshot manifests, and release bundles under
generated/andrelease/ - Governed Frontier → Logic → Governance → Canon → Snapshot promotion, with deterministic consolidation candidates
- Persistent delta runs, target gaps, dependency blockers, and a bootstrap-generated MCP trust registry
- Storage retention and migration settings in
bootstrap.xml, compiled toconfigs/generated/storage.generated.json - Bootstrap defaults that supply
bootstrap.xmlonly when it is missing - Windows bootstrap and manifest validation scripts
- Schematron rules for manifest completeness, uniqueness, and lifecycle counts
The dashboard reads generated JSON and never parses the bootstrap XML. Intent classification is rule based. Model providers, datasets, identity systems, and execution runtimes are not connected. Planning previews are drafts and are never executed. Dashboard/API snapshots currently preserve the project record; the storage-fabric snapshot service captures project, canon, and frontier rows. Neither captures project files or external service state. The initial project records and governance proposals are illustrative.
Run pnpm generate to validate the manifest with both schema layers and regenerate the JSON artifacts. pnpm dev, pnpm build, and Windows bootstrap run this pipeline before starting or compiling the apps. The PowerShell validator remains available for XSD-only checks.
Run pnpm generate, pnpm build, and pnpm test to validate bootstrap output, compile the workspace, and exercise schema, repositories, snapshots, migrations, aliases, documentation, knowledge promotion, delta analysis, and dependency findings. pnpm release runs those checks before creating the release bundle. pnpm validate:generated verifies snapshot hashes, and pnpm validate:release checks the release layout. CI runs the same sequence on Windows and creates the release bundle only after the checks pass.
The API applies SQLite storage schema v2 when it opens the local database. It includes project events, snapshots and snapshot items, versioned canon entries, frontier candidates and observations, archive records, embeddings, dependency findings, delta runs and gaps, governance reviews, and the existing app_state compatibility table. PostgreSQL DDL is in packages/storage-fabric/pgvector/schema.sql; it enables pgvector and stores 1536-dimensional embeddings with an HNSW cosine index. Update that dimension in the SQL and Drizzle definition if the selected embedding model uses a different size. SQLite keeps embeddings as JSON arrays and does not create a vector index.
Naming conventions are authored in bootstrap.xml and emitted as configs/generated/symbol-aliases.generated.json and configs/generated/language-profiles.generated.json. SymbolResolver canonicalizes aliases such as IProjectRepository to ProjectRepository, then formats known symbols with a target language profile.
The migration sequence from app_state to normalized repositories is documented in docs/storage-migration-plan.md.
The canonical symbol registry and language-profile behavior are described in docs/symbol-resolution.md.
bootstrap.xml owns the documentation and MCP server lists. pnpm generate creates runtime settings, registries, storage manifests, snapshot manifests, and enabled documentation under generated/. pnpm release creates the reproducible bundle under release/ with bootstrap, XSD, Schematron, generated configs/docs, migration manifest, and snapshot manifest. Generated files are not hand-maintained.
MCP adapter library
The MCP Fabric loads the generated server and named-profile registries. The curated adapter catalog includes the official MCP filesystem, GitHub, PostgreSQL, fetch, memory, and Git servers. Profiles select one or more servers: workspace, research, implementation, and database-readonly are enabled; GitHub/PostgreSQL write access and the database-write profile are disabled by default. Check a profile with pnpm mcp:check workspace; keep it connected with pnpm mcp:connect workspace; list available adapters and profiles with pnpm mcp:profiles.
Credentials are referenced by environment-variable name or OS keyring profile in bootstrap.xml; they are not copied into generated registries, docs, snapshots, or release bundles. GitHub defaults to browser OAuth with no user-managed token value; PostgreSQL passwords belong in the server's OS keyring profile (Windows Credential Manager, macOS Keychain, or Linux Secret Service). See configs/mcp.credentials.example.env and docs/mcp-adapters.md for setup. Profile checks start each server, negotiate MCP over stdio, and list its tools. The database profile also connects the selected saved PostgreSQL profile. Missing prerequisites are reported by name without printing credential values.
The filesystem adapter confines access to the ProjectOS workspace by default. Windows has a documented junction race limitation in the upstream filesystem server, so keep the permitted root narrow and avoid granting access to paths writable by untrusted local processes. MCP write-capable tools require explicit approval through the library API; read-only profiles reject tools the server does not mark read-only.
Wallet service (services/wallet) — TEST mode only
Personal-use wallet backend: double-entry ledger (integer minor units, every transaction sums to zero, idempotency keys), Stripe test-mode funding via Checkout or PaymentIntents with signature-verified webhooks (/webhooks/stripe), and payment routing that pays a QR-scanned invoice from wallet balance (/invoices/pay). Persistence is Supabase (services/wallet/supabase/migrations), keyed by user_id for later multi-user.
Safety: the service refuses to start with sk_live_/non-test keys or any Apple Pay / private-relay env vars, rejects live-mode webhook events, and has no external payout path — invoice payments move value only inside the ledger (merchant_payable). Paying real merchants will require a licensed card-issuer integration.
cd services/wallet && cp .env.example .env # fill TEST values; WALLET_STORE=memory for no Supabase
npm install && npm test && npm run dev
The root Dockerfile builds this service for a Hugging Face Docker Space on port 7860; set the env vars from .env.example as Space secrets.