Turn any code repository into a navigable memory palace for AI agents.
Project description
palace-ai
AI agents navigate code the way humans remember — by association, not search.
pip install palace-ai
palace build .
palace query "auth flow"
Build a traversable memory palace for any repository.
palace-ai turns a codebase into rooms and typed relationships so agents orient before opening raw files.
AST-only by default — no API key. Use --llm plus ANTHROPIC_API_KEY for richer room summaries.
What it does
Instead of dumping tens of thousands of tokens of source into context, an agent can read:
palace-out/PALACE.md— map of rooms- One room file — structure, exports, call hints
- Only the source files it actually needs
On medium-to-large repos, navigation via the palace is often 10–42× smaller in tokens than reading the full tree (run palace stats after a build).
Quick start
pip install palace-ai
palace build .
palace query "your topic"
palace serve # optional: graph visualizer
palace install claude # Claude Code: CLAUDE.md + PreToolUse hook
Explicit AST-only (same as default):
palace build . --no-llm
LLM-enriched rooms:
export ANTHROPIC_API_KEY=sk-...
palace build . --llm
Repo layout
| Path | Purpose |
|---|---|
palace/ |
Python package |
palace-out/ |
Small checked-in sample (from tests/fixture) |
examples/worked/ |
Larger pre-built palaces (e.g. requests) for demos |
tests/fixture/ |
Tiny JS/Python fixtures for local builds |
2-minute demo
After clone — sample palace is at ./palace-out/:
pip install palace-ai
git clone https://github.com/RhyChaw/palace-ai.git && cd palace-ai
palace query "build" --threshold 0.05
palace serve
Larger graph — pre-built requests palace:
git clone https://github.com/RhyChaw/palace-ai.git && cd palace-ai
palace query "auth flow" --path examples/worked/requests
palace serve --path examples/worked/requests
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file palace_ai-0.1.0.tar.gz.
File metadata
- Download URL: palace_ai-0.1.0.tar.gz
- Upload date:
- Size: 29.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d0866a3619e7b7420a8a03f229fa290f211919f7c965326de5ae43c6a5ee450
|
|
| MD5 |
3e332fa004c0674a3cd35604b4e4a720
|
|
| BLAKE2b-256 |
9d1686ae5ef33223b35bdeae9dbba7f22ad78c286183583ac669c74cff3fbdc9
|
Provenance
The following attestation bundles were made for palace_ai-0.1.0.tar.gz:
Publisher:
workflow.yml on RhyChaw/palace-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
palace_ai-0.1.0.tar.gz -
Subject digest:
7d0866a3619e7b7420a8a03f229fa290f211919f7c965326de5ae43c6a5ee450 - Sigstore transparency entry: 1551058078
- Sigstore integration time:
-
Permalink:
RhyChaw/palace-ai@4ba21ccb3505f5102fc7361c3091b99afe5100bf -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/RhyChaw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@4ba21ccb3505f5102fc7361c3091b99afe5100bf -
Trigger Event:
push
-
Statement type:
File details
Details for the file palace_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: palace_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 38.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cde6a2354a047e49be5438e04a25d7377967cc48f394d40acbb0d1ed90e790d1
|
|
| MD5 |
5fd546229279532fc8c558939de04226
|
|
| BLAKE2b-256 |
40719decc0a3056f8f47653cb1f9043c98d7007f043c734e2c4ff502ed9ad6b4
|
Provenance
The following attestation bundles were made for palace_ai-0.1.0-py3-none-any.whl:
Publisher:
workflow.yml on RhyChaw/palace-ai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
palace_ai-0.1.0-py3-none-any.whl -
Subject digest:
cde6a2354a047e49be5438e04a25d7377967cc48f394d40acbb0d1ed90e790d1 - Sigstore transparency entry: 1551058095
- Sigstore integration time:
-
Permalink:
RhyChaw/palace-ai@4ba21ccb3505f5102fc7361c3091b99afe5100bf -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/RhyChaw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@4ba21ccb3505f5102fc7361c3091b99afe5100bf -
Trigger Event:
push
-
Statement type: