AhaOS is an incubation-first insight layer for AI agents.
Most agent memory systems help agents remember. AhaOS helps agents notice.
It turns passive memories, open loops, repeated failures, project history, and tool telemetry into rare, evidence-backed, cross-domain insights.
AhaOS is not another vector database, hosted memory service, or autonomous action runner.
It is a local-first engine for generating:
- non-obvious connections
- reusable patterns
- contradiction alerts
- open-loop pressure signals
- time-incubated memory pressure
- incremental trigger signals
- negative-space gaps
- evidence-backed insight reports
- agent skills for reflection and reuse
An insight is not a summary.
| Output type | Question answered |
|---|---|
| Summary | What happened? |
| Reflection | What did we learn? |
| Insight | What hidden connection creates new leverage? |
AhaOS optimizes for the third one.
Observe
-> Atomize
-> Link
-> Pressurize
-> Incubate
-> Compose
-> Verify
-> Deliver
-> Learn
- Insight is not recall.
- Memory is evidence, not authority.
- No actionable insight without evidence.
- Low semantic similarity can still be high structural value.
- Open loops create cognitive pressure.
- Contradictions are first-class signals.
- Delivery must be rare and useful.
- Agent memory must be safe before it is powerful.
git clone https://github.com/EthanSangSSS/AhaOS.git
cd AhaOS
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
ahaos init
ahaos run --memory-dir examples/coding_agent_pr_review --report-dir .ahaos/reports --top-k 3ahaos init
ahaos validate --memory-dir examples/coding_agent_pr_review
ahaos run --memory-dir examples/coding_agent_pr_review --report-dir .ahaos/reports --top-k 3AhaOS v0.4 is an incubation-first insight layer with a local agent checkpoint loop.
- temporal metadata
- forgetting-curve salience decay
- activation heat
- spreading activation
- negative-space mining
- pilot trigger candidates
- candidate maturation
- local pilot state
- persistent per-project checkpoint state
- structured task-event capture and feedback metrics
- Chinese task tags and procedural atom typing
- independent-evidence requirements for pattern claims
You can run the pilot to scan local directories for memories:
python3 scripts/pilot.py \
--input-dir examples/local_pilot_input \
--work-dir /tmp/ahaos-local-pilot \
--report-dir /tmp/ahaos-local-pilot-reports \
--top-k 3To run without writing a report (dry-run):
python3 scripts/pilot.py \
--input-dir examples/local_pilot_input \
--work-dir /tmp/ahaos-local-pilot \
--report-dir /tmp/ahaos-local-pilot-reports \
--top-k 3 \
--dry-runscripts/agent_checkpoint.py is the local-agent entry point. It accepts only explicit task summaries, stores state under ~/Library/Application Support/AhaOS on macOS, namespaces data by project, and records runs plus human feedback. It never scans agent histories or $HOME.
python3 scripts/agent_checkpoint.py checkpoint \
--project "$PWD" \
--stage preflight \
--goal "Validate a release workflow change" \
--observation "The migration rollback path must be verified before handoff." \
--open-loop "Confirm the rollback command has current evidence" \
--priority P1After acting on a candidate, record the outcome and inspect aggregate evidence:
python3 scripts/agent_checkpoint.py feedback \
--project "$PWD" \
--candidate-id cand_example \
--verdict helped \
--note "The candidate revealed a reusable rollback checklist."
python3 scripts/agent_checkpoint.py metrics --project "$PWD"Run one checkpoint when a task has at least two signals: multi-file or recurring work, release/CI/cron risk, a repeated failure, workflow design, or final review before delivery. Treat every candidate as a hypothesis and validate it with source files, tests, logs, builds, git state, and other primary evidence before acting. Do not enter secrets, env values, SSH keys, tokens, browser data, or raw chat logs.
AhaOS does not:
- execute actions autonomously
- read secrets
- send webhooks/emails/messages
- replace Mem0, Letta, Zep, Graphiti, LangMem, or vector databases
- claim to reproduce human cognition
AhaOS is the missing incubation layer between agent memory and agent action.
ahaos/
models.py # typed schema dataclasses
storage_jsonl.py # local JSONL loading and validation
pressure.py # open-loop, salience, and age-boost scoring
incubation.py # pattern / contradiction / reuse / negative-space mining
verification.py # evidence and safety gates
agent_memory.py # persistent checkpoint capture and feedback metrics
report.py # Markdown report generation
cli.py # command line interface
docs/
concept.md
architecture.md
safety_model.md
evaluation.md
scripts/
pilot.py # explicit local input pilot with trigger candidates
agent_checkpoint.py # local agent checkpoint command
skills/
codex/ahaos-insight-engine/SKILL.md
claude/ahaos-insight-engine/SKILL.md
MIT.