Skip to content

[Request]: Shared Knowledge Vault for Agents (Obsidian-style Memory Across Tasks and Repos) #59

Description

@stilero

Problem or opportunity

Currently, each task in Ban Kan is executed in isolation.

While this is good for safety and reproducibility, it creates a major limitation:

  • agents do not learn from previous tasks
  • the same mistakes are repeated
  • architectural decisions are rediscovered
  • patterns are not reused consistently
  • knowledge is lost between tasks and repos

Examples:

  • an agent fixes a Stripe webhook issue → next task repeats the same mistake
  • a project uses a specific validation pattern → future tasks ignore it
  • architectural decisions (e.g. auth strategy) are not reused

This leads to:

  • unnecessary retries
  • inconsistent code
  • slower execution
  • increased token usage

There is an opportunity to introduce a persistent knowledge layer that allows agents to share learnings across tasks and repositories.

Proposed solution

Introduce a Shared Knowledge Vault (inspired by Obsidian) that acts as a persistent, structured memory layer for agents.

This vault allows:

  • storing important learnings
  • reusing patterns
  • capturing architectural decisions
  • avoiding repeated mistakes

1. Knowledge Vault structure

Create a local directory:

.bankan/knowledge/

Initial structure:

adr/        # architectural decisions
patterns/   # reusable implementation patterns
mistakes/   # known issues and fixes
repo/       # repo-specific notes
tasks/      # task-specific learnings (optional)

All entries are stored as Markdown files.


2. How agents read from the vault

During execution:

Planning phase

Planner agent reads:

  • relevant ADRs
  • repo notes
  • patterns

Purpose:

  • align with existing architecture
  • avoid conflicting decisions
  • reuse known approaches

Implementation phase

Implementation agent:

  • checks patterns
  • avoids known mistakes
  • follows established conventions

Review phase

Reviewer agent:

  • validates against ADRs
  • flags violations of known patterns
  • suggests improvements based on past learnings

3. Writing to the vault

Knowledge should be written selectively, not automatically.

After review:

  • reviewer or supervisor decides if something is worth storing

Examples of what to store:

  • architectural decisions (ADR)
  • repeated mistakes and fixes
  • reusable patterns
  • important repo constraints

Examples of what NOT to store:

  • temporary errors
  • logs
  • low-value noise

4. UI integration

Task details

Add a section:

Learnings from this task

Allow:

  • manual save to vault
  • auto-suggested entries (from reviewer/supervisor)

Knowledge view

Add a new tab:

Knowledge

Features:

  • browse ADRs, patterns, mistakes
  • search entries
  • filter by repo or global

Task cards (optional)

Show:

  • “uses knowledge” indicator
  • number of references

5. Relevance system (future)

Initially, all knowledge can be loaded.

Later improvements:

  • tag-based filtering
  • repo-specific vs global knowledge
  • semantic search
  • auto-suggest relevant entries per task

Alternatives considered

1. No shared memory (current approach)

Each task runs independently.

Rejected because:

  • agents repeat mistakes
  • no learning over time
  • inefficient workflows

2. Store memory per task only

Keep knowledge isolated to tasks.

Rejected because:

  • no cross-task learning
  • limited long-term value

3. Fully automatic memory logging

Store everything automatically.

Rejected because:

  • creates noisy, low-quality knowledge
  • difficult to maintain
  • reduces trust in memory

4. External knowledge system (e.g. database)

Use external service instead of local files.

Rejected because:

  • adds complexity
  • breaks local-first principle
  • harder to inspect and edit

Additional context

This feature introduces a new layer in Ban Kan:

  • execution layer (agents)
  • orchestration layer (kanban workflow)
  • decision layer (supervisor agent)
  • knowledge layer (shared memory)

Together, this moves Ban Kan toward:

  • a self-improving AI development system
  • long-term project intelligence
  • consistent and predictable agent behavior

Suggested MVP scope

Start with:

  • .bankan/knowledge/ folder
  • basic structure (adr, patterns, mistakes)
  • planner reads all knowledge files
  • reviewer can write new entries (manual or assisted)
  • simple UI list view

Success criteria

  • agents avoid repeating known mistakes
  • architectural consistency improves across tasks
  • fewer retries required
  • developers can inspect and trust stored knowledge
  • knowledge compounds over time

Open questions

  • Should knowledge be global or per repo (or both)?
  • How to prevent outdated or conflicting knowledge?
  • Should users approve all writes to the vault?
  • How to surface “relevant knowledge” per task effectively?
  • Should knowledge entries be versioned?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions