Skip to main content

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.

palace-ai visualizer
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:

  1. palace-out/PALACE.md — map of rooms
  2. One room file — structure, exports, call hints
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

palace_ai-0.1.0.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

palace_ai-0.1.0-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

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

Hashes for palace_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7d0866a3619e7b7420a8a03f229fa290f211919f7c965326de5ae43c6a5ee450
MD5 3e332fa004c0674a3cd35604b4e4a720
BLAKE2b-256 9d1686ae5ef33223b35bdeae9dbba7f22ad78c286183583ac669c74cff3fbdc9

See more details on using hashes here.

Provenance

The following attestation bundles were made for palace_ai-0.1.0.tar.gz:

Publisher: workflow.yml on RhyChaw/palace-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for palace_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cde6a2354a047e49be5438e04a25d7377967cc48f394d40acbb0d1ed90e790d1
MD5 5fd546229279532fc8c558939de04226
BLAKE2b-256 40719decc0a3056f8f47653cb1f9043c98d7007f043c734e2c4ff502ed9ad6b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for palace_ai-0.1.0-py3-none-any.whl:

Publisher: workflow.yml on RhyChaw/palace-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page