HomeDocumentation

Katana Agent

Self-hosted AI agents with centralized Obsidian memory. Install once, use everywhere.

What is Katana? #

Katana is a self-hosted AI agent system that installs into any CLI agent (Claude Code, Codex, KiloCode, Gemini, Cursor, Windsurf). Your skills, commands, and memory follow you across every project. Data never leaves your machine.

FeatureDescription
Centralized MemoryObsidian vault shared across all projects
Portable SkillsDrop skills into any agent folder
Multiple AgentsWorks with Claude, Codex, Gemini, Cursor, and more
Self-Hosted100% private - your data stays local

Installation #

bash
npm install -g katana-agent

Quick Start #

Get up and running in 30 seconds:

bash
# 1. Create your memory vault (one time)
katana memory init

# 2. Open ~/.katana/memory/ in Obsidian (optional)

# 3. Drop your agent into any project
katana init

Or initialize for a specific CLI agent:

bash
katana claude init    # Claude Code
katana kilocode init  # KiloCode
katana codex init    # OpenAI Codex
katana generic init  # Gemini, Cursor, Windsurf, anything

Interactive Installer #

Running katana claude init opens a keyboard-driven installer so you can choose exactly which skill categories and commands land in your project.

bash
katana claude init
Use ↑ / ↓ to move, Space to toggle a row, then move to Continue and press Enter.
Katana installer skill categories panel
1. Choose skill categories
The first panel lets you include or exclude entire skill groups before Katana copies them into .claude/skills/. Select All toggles the full list at once.
Katana installer agent commands panel
2. Choose agent commands
The second panel controls which commands are copied into .claude/commands/. If you deselect /oracle here, Katana will skip that command in a fresh install.

How to use the installer

  1. 1.Start the installer with katana claude init.
  2. 2.On Skill Categories, use the arrow keys to highlight rows and press Space to toggle them on or off.
  3. 3.Move to Continue and press Enter to lock in the selected categories.
  4. 4.Repeat the same flow in Agent Commands to choose which slash commands get copied from your bundled templates or vault.
  5. 5.After confirmation, Katana immediately prints install progress while it copies commands, syncs skills, and generates CLAUDE.md.
If you are re-testing deselected commands, use a brand-new project folder or choose Replace. Merge mode preserves files that already exist in .claude/commands/.
bash
# Fresh test project
mkdir katana-installer-test
cd katana-installer-test

# Launch the interactive installer
katana claude init

Directory Structure #

Katana manages your AI agent across every project from one central location:

Directory layout
~/.katana/                           Your agent brain (persistent)
├── memory/                          Obsidian vault — shared across ALL projects
│   ├── core/soul.md                 Agent identity & personality
│   ├── core/user.md                 Facts about you
│   ├── work.md                      Running work log
│   └── projects/                    Per-project session history
├── commands/                        Agent personalities
└── config.yaml                      Global config

When you run katana init in a project, it copies your skills and commands into that project's agent folder.

Katana (Sensei) #

The main orchestrator agent. Not an assistant or chatbot — a personal advisor, business partner, and life strategist. Operates through three principles: Intelligence (synthesizes info across domains), Intuition (reads between the lines, knows the user), and Initiative (surfaces opportunities before being asked).

PersonalityWhen to use
KatanaMorning openings, big-picture advice, astrological insight
The SamuraiMajor life/business decisions, cutting through noise
Wolf of Wall StreetRevenue growth, partnerships, market opportunities
Best FriendWhen user is stressed, venting, or needs someone to talk to
OracleAstrological readings, timing decisions, natal chart integration

Delegates to sub-agents: /oracle, /vibe, /stream, /telegram

Oracle #

Personal astrologer and cosmic life scheduler. Coordinates your Google Calendar around astrological alignments. Provides timing advice for launches, meetings, and decisions based on planetary positions.

FeatureDescription
Daily InsightsAstrological guidance based on your natal chart
Calendar SyncSchedule events around favorable cosmic alignments
Timing AdviceBest dates for launches, meetings, important decisions
Transit ChartsCross-reference transits with natal placements

Vibe Curator #

Maintains your taste profile and handles booking/planning. Knows your food, music, travel preferences better than you do.

CapabilityDescription
RecommendationsRestaurants, bars, music, activities based on your profile
BookingsReservations, flights, hotels via Playwright MCP
PlanningDate nights, weekend itineraries, trip planning
OrderingFood delivery recommendations based on mood and past orders

Stream #

Real-time news and market intelligence agent. Monitors RSS feeds, financial news, and X/Twitter to keep you informed.

Output format
📡 Stream — [date]

🔴 URGENT (if any)
- [headline] — [why it matters]

📊 Markets
- [headline] — [summary]

🤖 AI & Tech
- [headline] — [summary]

💰 Economy
- [headline] — [summary]

Categories: Markets, AI/Tech, Economy, Fed/Government, X Chatter. User can add/remove feeds via conversation.

Memory System #

Your memory vault at ~/.katana/memory/ is a standard Obsidian vault shared across ALL projects:

FilePurpose
core/soul.mdAgent personality, learned behaviors, boundaries
core/user.mdYour facts, preferences, current context
work.mdRunning work log with project summaries
projects/Per-project session history

Edit once in Obsidian, it's everywhere. Graph view, full-text search, wikilinks, and tags work automatically.

Memory Commands #

bash
katana memory init        # Create memory vault
katana memory status      # Vault health check
katana memory recall "query"  # Search memory from terminal
katana memory projects    # List tracked projects

CLI Commands #

CommandDescription
katana initInitialize Katana in current project
katana memory initCreate ~/.katana/memory/ vault
katana [platform] initInitialize for specific CLI agent
katana memory recall "query"Search memory from terminal

Supported Platforms #

CommandCreatesFor
katana claude init.claude/
katana kilocode init.kilocode/
katana codex init.codex/
katana generic init.agent/

Flags: --all (install everything), --minimal (bundled essentials only)