Skip to content

Decide: should project be user-creatable via slash command (needs product confirmation) #2133

Closed

Description

@mstomar125

Background

Raised as an open question in core#2102 (typed property forms for person/project), carried over unresolved since the original investigation:

project is a core node type with a full backend schema (core_schemas.rs: status, priority, start_date, end_date, a tasks relationship) and — as of core#2013 — a working, schema-driven properties form when a project node is opened. But project has no plugin registration at all (packages/desktop-app/src/lib/plugins/core-plugins.ts — personNodePlugin, taskNodePlugin, etc. all exist; there is no projectNodePlugin) and consequently:

  • No slash command — there is no /project the way there is /task or /person.
  • No dedicated project-node.svelte inline component (this is intentional per core#2013 — project is correctly classified as an entity row, same as collection/document/user, not an inline-editable node).
  • No reference component beyond the generic BaseNodeReference fallback (which may already be sufficient).

The practical effect: a project node can currently only be created via AI/MCP tool calls or a direct backend call — there is no user-facing UI path to create one.

Question to resolve

Is project intended to be directly user-creatable via a slash command, the same as task and person? Or is it intended to be an AI/agent-managed entity type only (e.g., projects are set up by the agent as part of planning, not typed in ad hoc by a user mid-outline)?

This is a product decision, not a mechanical one — flagging for confirmation before any implementation.

If yes (user-creatable)

  • Add a projectNodePlugin to core-plugins.ts (id, slash command, reference) — no node.lazyLoad needed; project should stay an entity row per core#2013's classification, matching collection.
  • Confirm the entity-row "open in other pane" affordance and arrow-navigation-skip behavior (both already work generically via rendersAsEntityRow, driven off hasInlineNodeComponent, not plugin registration — should need no changes) still behave correctly once a slash command exists.
  • Regression-test the new slash command the same way person's is tested.

If no (agent/MCP-only)

Close this issue with that decision recorded, and consider whether the schema/plugin-registry docs should say so explicitly (e.g., a code comment on the project schema definition in core_schemas.rs noting it is intentionally not slash-command-creatable).

Related

  • core#2102 — where this question was originally raised and left open pending confirmation.

Activity

  1. self-assigned this
    on Aug 18, 2026
  2. malibio commented on Aug 18, 2026

    @malibio
    Collaborator

    Decision: no — project is not user-creatable via slash command

    Product call from @malibio: slash commands are for basic primitive types, plus task. Entity types are not slash-creatable.

    Taking the "If no" branch: no projectNodePlugin, no /project. The rationale is recorded in code at both ends so the absence reads as intentional:

    • packages/core/src/models/core_schemas.rs — on the project schema definition
    • packages/desktop-app/src/lib/plugins/core-plugins.ts — a "which types get a slash command" note where a reader would look for the missing registration

    Notes from verifying the issue's claims against the code

    All accurate. Two things worth recording:

    1. The open sub-question resolves cleanly. The issue asked whether entity-row behavior ("open in other pane", arrow-navigation skip) would still work once a plugin existed. It's moot now, but the answer is yes and for a reason worth knowing: rendersAsEntityRow derives from absence of an inline node component, not from plugin registration (node-type-predicates.ts:35). project already renders correctly as an entity row today with no plugin at all.

    2. Projects are not unreachable. project is in SIDENAV_CORE_TYPES (stores/schemas.svelte.ts:24), so it is browsable/queryable in the sidenav and opens to the generic schema-driven form. This decision removes only ad-hoc mid-outline creation, not discoverability.

    Follow-up: the rule exposes two existing violations

    Auditing every plugin against "primitives + task":

    Plugin Slash cmd Fits rule?
    text, header, checkbox, code, quote, ordered-list, hr, table yes ✅ primitives
    task /task ✅ explicit exception
    person /person ❌ entity type
    ai-chat /ai-chat ❌ entity type
    user, document, collection, query, date none ✅

    person and ai-chat are entity types that currently do have slash commands — the same category as project. Applied consistently, the rule says both should lose theirs.

    Not touching either here, since removing a working user-facing affordance is a separate product call with a different blast radius (/ai-chat in particular is likely a primary entry point for starting a chat). @malibio — want a follow-up issue to remove /person and /ai-chat, or are they intentional exceptions alongside task? Proceeding with #2133 as scoped either way.

  3. malibio commented on Aug 18, 2026

    @malibio
    Collaborator

    Updated for the full rule: primitives + task only — not entity types, and not user-defined types.

    PR #2151 records the decision. Comments only, no behavior change.

    Second violation: user-defined types already generate slash commands

    Beyond /person and /ai-chat (flagged above), createPluginFromSchema gives every user-defined schema type a slash command — schema-plugin-loader.ts:127, priority CUSTOM_ENTITY. Define a Venue schema and you get /venue.

    That directly contradicts "not even user-defined types", but I did not change it in #2151, because it is a different kind of change from the rest of this issue:

    • It removes a working feature users may rely on today — creating custom entities mid-outline is plausibly the main way user-defined types get used at all.
    • It has five test assertions (schema-plugin-loader.test.ts:98,118,146,155,165) that would need to invert.
    • Once slash commands are gone, user-defined types need some creation path, or they become agent-only. Core entity types have the sidenav (SIDENAV_CORE_TYPES); user-defined types would need an equivalent, which is a design question, not a deletion.

    So this is a real product decision with its own blast radius, not a mechanical follow-on. @malibio — worth its own issue covering both violation sets:

    1. remove /person and /ai-chat
    2. stop generating slash commands for user-defined types + decide their replacement creation path

    Happy to open it with a recommendation; say the word and I'll write it up. #2133 itself is done as scoped.

  4. malibio commented on Aug 18, 2026

    @malibio
    Collaborator

    Scope note for the record, from @malibio, closing out the questions this issue surfaced.

    The agentic method is the primary way of creating new types. The UI experience for types with complex/nested properties — schemas, playbooks, queries — is not yet defined, and is deliberately not being specified here or in the follow-ups.

    Consequences, so nobody treats these as gaps to fill:

    • Schema types — created via the agent (create_schema), which is well-developed: dedicated rules in packages/agent/src/skill_rules.rs:50-62, in-turn validation-error retry, and a rule that user-supplied values with no matching field are recorded under a new key rather than silently dropped. No UI authoring surface exists (SchemaNodeViewer for Schema Editing (DEFERRED - Backend Complete) #195 is the deferred editor).
    • Queries — /query was already removed because it produced definition-less nodes (no targetType/filters) that could not render. Query nodes are materialized from a type's default view or created by AI/MCP (core-plugins.ts:525-530). This is the reference implementation for the pattern.
    • Playbooks — implemented in the backend (packages/core/src/playbook/), with rules stored under a nested properties["playbook"]["rules"] namespace. No frontend plugin registration and no dedicated agent tooling yet.

    The common thread: each stores structure a mid-outline slash command could not supply, which is the same reason #2133 landed where it did. createSchemaInstance's properties: {} behavior is correct for the flat types it serves today; whether it generalizes to nested schemas is part of the undefined experience, to be settled when that work is scoped — not a latent bug, and not a prerequisite for #2152 or #2153.

    No issues filed for any of the above, by decision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions