Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/ai/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
## First Step: Read the Index

Before exploring the wiki, read `agents/index.md` to understand the wiki structure.
This index contains page descriptions, tags, and navigation tips.
For creating TSX views or CSV data files, read `agents/data-views.md` for examples.

## Your Capabilities
- **Search**: Use grep_pages for content search (regex), glob_pages for path patterns
Expand Down Expand Up @@ -59,6 +59,7 @@
## First Step: Read the Index

Start by reading `agents/index.md` to understand wiki structure and page locations.
For TSX views or CSV data, read `agents/data-views.md` for patterns and examples.

Always use the file path (e.g., 'home.md', 'agents/index.md') when referencing pages.
Use list_pages() first to see exact file paths. Never use display titles like "Home".
Expand Down
5 changes: 5 additions & 0 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ async def startup_event():
print(f"✅ Wiki repository loaded successfully ({WIKI_REPO_PATH})")
print(f"📚 Found {len(wiki.list_pages())} pages")

# Initialize template files (examples for agents)
created = wiki.ensure_templates()
if created:
print(f"📝 Initialized {len(created)} template files")

# Initialize thread support (sets up .gitignore, cleans orphaned worktrees)
git_ops.init_thread_support(wiki)
print("🧵 Thread support initialized")
Expand Down
Loading