Skip to content

Extend AI Workflows from the Active Document to the Entire Project #357

Closed

Description

@petertzy

Background

The initial feasibility study for the AI Work panel has demonstrated that AI can interact with and modify the document currently open in the editor.

The next step is to explore whether the same interaction model can be extended from a single active document to an entire project.

The goal is to allow users to describe larger tasks in natural language and let the AI inspect and modify multiple files within the current project when necessary.

Scope

Extend the existing Work panel architecture so that AI tasks can operate on project-level context rather than being limited to the currently active editor tab.

The AI should be able to:

  • Understand the structure of the current project.
  • Identify files relevant to a user request.
  • Read multiple files when additional context is required.
  • Modify multiple files as part of a single task.
  • Clearly communicate which files it intends to change.
  • Allow users to review the resulting changes.

The implementation should build on the architecture established during the single-document Work panel experiment rather than introducing a completely separate workflow.

Suggested Acceptance Criteria

This task can be considered successful if:

  • The Work panel can provide the AI with appropriate project-level context.
  • The AI can identify and operate on files beyond the currently active document.
  • A single natural-language request can result in coordinated changes across multiple files.
  • Users can understand which files were inspected or modified.
  • Changes can be reviewed before or after they are applied.
  • Large projects do not require sending the entire project to the AI unnecessarily.
  • The architecture supports longer-running project-level tasks in the future.
  • Existing single-document Work panel functionality continues to work naturally.

Architectural Considerations

Particular attention should be given to context management.

For larger projects, it will probably not be practical or desirable to provide every file to the AI for every request. The system may therefore need mechanisms for discovering relevant files, loading context on demand, and tracking which files participate in a task.

The architecture should also begin distinguishing between short interactive operations and potentially long-running background tasks.

Future Work

This capability should provide the foundation for more specialized project-wide workflows, including:

  • Translating an entire Markdown project.
  • Refactoring or restructuring collections of Markdown files.
  • Generating or updating project-wide metadata.
  • Transforming a Markdown project into a finished publication.

This issue should focus primarily on establishing reliable project-wide AI operations rather than implementing all of those workflows immediately.

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

Metadata

Metadata

Assignees

Labels

aigood first issuehelp wantedup-for-grabs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions