Skip to main content
In a large repository, Agents spend tokens finding the directory structure, module dependencies, and coding conventions. Without that context, an Agent can miss related changes or encounter a problem the team has already resolved. Project Knowledge enables Comet to capture verifiable architectural facts and engineering conventions. As you execute requirements, complete reviews, and archive changes, Comet automatically extracts reusable patterns and recalls relevant content in future tasks, helping agents locate relevant entry points, complete affected scopes, and follow existing verification approaches.
Enabled by Default: Coexists with Repository Rules Project Knowledge is enabled natively by default upon comet init. Repository rules like AGENTS.md and CLAUDE.md remain your top-level explicit directives, while Project Knowledge equips the agent with evidence-backed architectural understanding and historical debugging lessons.

Boundaries with Rules and Project Wikis

1. Repository Rules Remain Explicit Top-Level Directives

Project Knowledge does not replace existing Rule files. You continue using platform-native rule mechanisms to declare hard team boundaries, such as AGENTS.md for Codex, CLAUDE.md for Claude Code, or .cursor/rules for Cursor. Comet never silently modifies your Rule files. When a Rule is cited as a knowledge source, the original Rule file always maintains supreme arbitration authority.

2. Incremental Accumulation Without Bloated Wiki Generation

Project Knowledge does not scan the entire repository to generate a full wiki. Generic implementation details that can be read directly from source code are not stored in knowledge bases to avoid retrieval noise. Project Knowledge preserves only high-value information with real decision impact on future tasks: module boundaries, cross-package dependencies, approved architectural decisions, and regression-tested troubleshooting recipes.

Core Capabilities at a Glance

Two Categories of Project Knowledge

Comet organizes Project Models and Project Policies from repository sources while respecting repository Rules and deterministic checks

1. Project Model: Static Architectural Facts

Project Models describe structural facts verifiable against current codebase evidence:

2. Project Policy: Engineering Practices and Decisions

Project Policies capture conventions, constraints, and lessons learned from everyday development and task acceptance:
Automated Policy Enforcement (enforced): When a policy is linked to concrete test or validation commands and executes successfully, it upgrades to the enforced state. In Native workflows, these commands automatically incorporate into the Verify phase, where automated checks enforce the policy.

Project Memory: Verified Lessons Recorded Directly by Agents

Project Memory provides lightweight, file-based experience storage within the Project Knowledge system. During troubleshooting or implementation, the Agent can call comet knowledge query on demand to look up existing project lessons; once a fix is re-verified or a task passes verification, the Agent directly calls comet knowledge remember to record verified debugging or development lessons into the local cache:
  • --type supports fact, decision, pattern, procedure, constraint, and failure-resolution (defaults to pattern);
  • Reusing an existing title updates the original record without creating a duplicate.
  • Lessons persist in a local cached MEMORY.md index and standalone Markdown files without dirtying your Git working tree;
  • Context manifests prioritize relevant memory summaries, allowing the Agent to expand full texts on demand.

Context Matching and Delivery Flow

  1. Candidate Filtering: Filters memories by project, active file paths, workflow phases (e.g. Build or Verify), and operations;
  2. Lightweight Manifest Injection: Injects Context Manifest summaries by default to avoid large amounts of text occupying the context;
  3. Source Reference Checking: After source files are modified, recorded project knowledge and lessons remain available and are not automatically invalidated by file edits or cross-worktree lookups; when expanded, records show referenced paths and flag files missing from the current workspace so the Agent can verify against current code.

Management and Inspection

Launch the local Web console:
Open Project Knowledge: Manually added entries appear as Enabled after you save them and are available to the Agent in the next matching task. Source paths and verification commands are optional.
  • Categorized Browsing: Inspect Project Models (topologies) and Project Policies (rules), verifying applicable paths and evidence sources;
  • Interactive Retrieval Simulation: Enter a task description (e.g. “Refactor user authentication”) to preview matched knowledge cards, ranking scores, and specific whyApplied rationales;
  • Edit and Rebuild Online: Edit records directly, deprecate outdated entries, or rebuild the local full-text search index with one click.
Query and maintain project knowledge from scripts or terminal sessions:

Product and Security Boundaries

  • Source Code and Tests Take Precedence: Live codebase implementations, configurations, and automated test outcomes maintain supreme authority;
  • Platform Rule Compatibility: Continues supporting platform-native Rule files and discovery behaviors;
  • Zero Autonomous Side Effects: Project Knowledge provides understanding only, never committing, pushing, or releasing code autonomously;
  • Isolation and Deactivation: Can be deactivated from the Dashboard plugin center; deactivation halts retrieval injection without impacting Native or Classic core workflows.
Further reading: Project Knowledge Principles, Personal Memory, and Use Comet Dashboard.
Last modified on December 4, 2026