Show HN: LangChain's OpenWiki agent based on PI.dev harness

bignet1 pts0 comments

GitHub - barvhaim/pi-openwiki: LangChain's openwiki agent based on PI harness · GitHub

/" data-turbo-transient="true" />

Skip to content

Search or jump to...

Search code, repositories, users, issues, pull requests...

-->

Search

Clear

Search syntax tips

Provide feedback

--><br>We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

-->

Name

Query

To see all available qualifiers, see our documentation.

Cancel

Create saved search

Sign in

/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

barvhaim

pi-openwiki

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

master

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>4 Commits<br>4 Commits

extensions

extensions

.gitignore

.gitignore

LICENSE

LICENSE

README.md

README.md

package.json

package.json

tsconfig.json

tsconfig.json

View all files

Repository files navigation

@openwiki/pi

AI-powered documentation that stays current with your code

Automatically generates and maintains comprehensive documentation for your codebase using Pi's AI capabilities.

Based on OpenWiki by LangChain - adapted as a Pi coding agent extension.

Quick Start

# Install<br>pi install git:github.com/barvhaim/pi-openwiki

# Generate docs<br>cd your-project<br>pi<br>/openwiki:init

# Update after code changes<br>/openwiki:update

# Ask questions<br>/openwiki:chat How does authentication work?

What You Get

After running /openwiki:init:

openwiki/<br>├── quickstart.md # Start here<br>├── architecture/ # System design<br>├── workflows/ # Development processes<br>├── domain/ # Business logic<br>├── operations/ # Deployment<br>└── testing/ # Test strategies

Features

🤖 AI-Generated - Leverages your Pi model to understand your codebase

🔄 Git-Aware - Updates only what changed

🎯 Agent-Optimized - Works for humans and AI agents

⚡ Smart - Prevents redundant regeneration

Commands

/openwiki:init

Generate initial documentation for your repository.

/openwiki:update

Update docs based on git changes since last run.

/openwiki:chat<br>" href="#openwikichat-question">

Ask questions about your codebase without modifying docs.

Installation Options

# Global (use everywhere)<br>pi install git:github.com/barvhaim/pi-openwiki

# Project-specific<br>pi install -l git:github.com/barvhaim/pi-openwiki

# Temporary (this session only)<br>pi -e git:github.com/barvhaim/pi-openwiki

# Local development<br>pi -e /path/to/pi-openwiki

How It Works

Discovery - Explores your repository structure and git history

Analysis - Understands the "why" behind your code

Generation - Creates structured markdown documentation

Tracking - Saves metadata for smart incremental updates

Integration - Updates AGENTS.md/CLAUDE.md automatically

Requirements

Pi >= 0.80.0

Git repository

Node.js with TypeScript

Development

# Clone and install dependencies<br>git clone https://github.com/barvhaim/pi-openwiki.git<br>cd pi-openwiki<br>npm install

# Test locally<br>pi -e .

# Make changes and reload<br>/reload

Architecture

Modular design for maintainability:

extensions/openwiki/<br>├── commands.ts # Command handlers<br>├── tools.ts # AI tools<br>├── events.ts # Event handlers<br>├── git-utils.ts # Git operations<br>├── metadata.ts # Metadata management<br>├── prompts.ts # System prompts<br>└── constants.ts # Constants & types

See extensions/openwiki/README.md for details.

Troubleshooting

"Not in a git repository!"

Initialize git: git init && git add . && git commit -m "init"

Commands not showing up?

Reload Pi: /reload

"No changes detected"

Normal - means your code hasn't changed since last update.

License

MIT

Credits

This Pi extension is based on OpenWiki by LangChain AI, adapted for the Pi coding agent ecosystem.

Contributing

Issues and PRs welcome at github.com/barvhaim/pi-openwiki

About

LangChain's openwiki agent based on PI harness

Resources

Readme

License

MIT license

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

star

Watchers

watching

Forks

forks

Report repository

Releases

No releases published

Packages

Uh oh!

There was an error while loading. Please reload this page.

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

TypeScript<br>100.0%

You can’t perform that action at this time.

openwiki reload github barvhaim agent based

Related Articles