SCOPEWEAVER

The purpose of this website is to document the design and implementation of scopeweaver project for developer. This would allow for:

  1. Situational awarness on the state of the project
  2. Efficient future planning
  3. Unambigous implementation across all independent teams
  4. Single source of truth

What is Scopeweaver

A narrow-agent platform for reliable, on-device file and context management.

Scope Weaver is a multi-agent system designed to handle large contexts by decomposing domain knowledge into specialized, modular skills with embedded retrieval. Originally conceptualized to help manage complex embedded software development (like C++ codebases and automotive standards), the platform utilizes small, focused models to orchestrate tasks safely and deterministically.

Our first implementation is a file management agent that serves as the foundation for future, more complex capabilities.

Planned features

  1. Skill based architecture: skills act as deterministic classes containing specific tools
  2. Virtual file system sandbox: the agent shall act withing an isolated environment, as a guarrail
  3. Git like safety lifecycle: changes made by the agent can be rolled back to specific snapshots
  4. Text files support: the context window of the LLM consumes the text files in the system for efficient and informed operations
  5. Human in the loop: ultimate will and authority is maintained by the user

System Architecture

The platform is strictly separated into three core layers:

1. Frontend (macOS Native)

A SwiftUI application featuring a minimal, Spotlight-style chat interface. It embeds a WebView to render the interactive file-system graph and action timeline in real-time.

2. Agent Pipeline (The Brain)

The orchestration loop where a user prompt is processed. The pipeline handles task planning (via the Thinker model), skill retrieval, parameter validation, and deterministic execution via the primitive dispatcher.

3. Sandbox & Storage (The Environment)

The working environment containing the FileSystemGraph (structural state), ContentIndex (semantic state of files), and SkillIndex (semantic state of available tools). It handles all commit/rollback semantics and system logging.

Repository Structure

Scope Weaver follows a clean monorepo architecture separating the interface, backend logic, and the modular skill definitions.

πŸ“ scope-weaver/
β”œβ”€β”€ πŸ“„ README.md
β”œβ”€β”€ πŸ“ docs/                 # Project documentation & architectural specs
β”‚
β”œβ”€β”€ πŸ“ skills/               # The Skill System (Agent capabilities)
β”‚   β”œβ”€β”€ πŸ“ skill_template/   # Skeleton template for new skills
β”‚   β”œβ”€β”€ πŸ“ manage-files/     # Core CRUD operations (list, create, move, etc.)
β”‚   └── πŸ“ search-files/     # Semantic & structural search
β”‚
β”œβ”€β”€ πŸ“ backend/              # Python Backend (Agent Pipeline & Sandbox)
β”‚   β”œβ”€β”€ πŸ“„ pyproject.toml    # Dependencies
β”‚   β”œβ”€β”€ πŸ“„ main.py           # API/WebSocket Server
β”‚   β”œβ”€β”€ πŸ“ scope_weaver/     # Core pipeline, retrieval, and environment logic
β”‚   └── πŸ“ tests/            # Pytest suite
β”‚
└── πŸ“ frontend/             # UI / UX & Visualization
    β”œβ”€β”€ πŸ“ ScopeWeaverMac/   # Native macOS SwiftUI App
    └── πŸ“ web-viz/          # Graph Visualization (vis.js/D3) loaded via WebView

Developing Skills

Skills in Scope Weaver are not individual tools, but rather domain-specific β€œclasses” that declare exact method signatures and invoke deterministic primitives.

To add a new capability to the agent, copy the skills/skill_template folder. You must define a SKILL.md file containing the YAML frontmatter (description, tags) and Markdown-based tool declarations. The pipeline automatically embeds the description into the SkillIndex on startup, allowing the agent to dynamically route user requests to your new skill based on semantic similarity.


This site uses Just the Docs, a documentation theme for Jekyll.