Skip to content

Mechanics130/costar_agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

CoStar

CoStar logo

Durable people context, confirmed by you, reused forever.

License: Apache 2.0 Node CI

CoStar is an open-core skill engine for durable relationship context. Think of it like a chief of staff that never forgets: it turns messy notes, meetings, transcripts, and history into people profiles, confirmed updates, briefs, roleplay simulations, graph views, and persistent markdown views.

If you are a developer or product builder, this repository gives you the skill core. If you are looking for the hosted consumer product, that lives in a separate UI layer built on top of CoStar.

What CoStar Does

CoStar is designed around a simple loop:

  1. capture

    • accept single or batch inputs
    • recall relevant existing context automatically
    • show the user what was found and what needs review
  2. profile

    • read, search, and patch person profiles
    • support both cold-start and mature profiles
  3. briefing

    • generate meeting prep from confirmed context
    • surface implicit needs, key issues, consensus / non-consensus, key quotes, and attitude / intent reads
    • keep it short enough to read before a conversation
  4. memory (V0.3 release candidate)

    • keep source-backed atomic facts in one long-term memory store
    • require review / commit before durable writes
    • let briefing show which memory facts were used
    • record user corrections as feedback, reflection candidates, and reusable extraction hints
    • lint memory for stale commitments, zombie facts, conflicts, isolated entities, and knowledge gaps

Host-Model Mode

CoStar now has host-model adapter bundles for Claude, Codex, and OpenClaw. In host-model mode, the host product supplies model reasoning and CoStar keeps the durable stores, schemas, review / commit flow, graph, view, and briefing contracts. This means users should not need a separate CoStar model API key.

Fast install checks:

node bin/costar.mjs host install claude
node bin/costar.mjs host doctor claude
node bin/costar.mjs host install codex --apply-skill
node bin/costar.mjs host doctor codex
node bin/costar.mjs host install openclaw
node bin/costar.mjs host doctor openclaw

See support matrix and tester package for the current acceptance scope.

Memory V0.3

V0.3 adds an atomic memory layer under costar-core/memory/. It is designed as the long-term fact source for CoStar, not a second data world. Existing profile, graph, and view stores remain compatible read models, while new source-backed facts go through memory candidates, user review, and commit.

Useful commands:

npm run test:memory
node bin/costar.mjs memory lint --store costar-core/memory/runtime/stores/memory-store.json

See Memory V0.3 for the data model, migration boundary, briefing evidence trace, and release checks.

V0.3.2 narrows the default memory feedback loop: CoStar records review diffs, fact or artifact feedback, and feedback reports as stable quality signals. Reflection candidates and extraction hints remain experimental, disabled by default, and should not be treated as the default user workflow until enough review-diff evidence exists.

Advanced Skills

These skills are already included, but they are not the headline loop:

  • relationship-roleplay
  • relationship-graph
  • relationship-view
  • relationship-ingestion

Quick Start

If you are a test user, start here:

If you want the fastest local setup, run the init wizard:

node bin/costar.mjs init

The wizard reads OPENAI_BASE_URL, OPENAI_MODEL, and OPENAI_API_KEY from your environment when they are already set. Otherwise it will guide you through the local model config step by step.

If you are a Chinese reader, see:

If you are using OpenClaw, the fastest path is:

  1. Read integrations/openclaw/README.md
  2. Run node bin/costar.mjs host install openclaw
  3. Run node bin/costar.mjs host doctor openclaw

Launch Docs

If you want to share CoStar with someone else, start with:

Community

Command Line

Once the repo is cloned, you can use the costar CLI:

node bin/costar.mjs --help

Available commands:

  • costar init
  • costar capture
  • costar ingestion
  • costar profile
  • costar briefing
  • costar roleplay
  • costar graph
  • costar view
  • costar memory lint
  • costar doctor

Repository Layout

costar_agent/
  assets/branding/            Brand assets for GitHub and docs
  bin/                        CoStar CLI entrypoint
  costar-core/                 Shared stores, commits, host tools, and MCP bridge
  costar-core/memory/          Atomic memory store, review, retrieval, and lint
  examples/                   Small public example stories
  integrations/claude/        Claude host-model adapter bundle
  integrations/codex/         Codex host-model skill adapter
  integrations/openclaw/      OpenClaw host-model adapter and bootstrap helpers
  relationship-ingestion/     Core extraction and review-resolution engine
  relationship-capture/       User-facing ingestion orchestration layer
  relationship-profile/       Durable profile read/update skill
  relationship-briefing/      Brief generation from confirmed context
  relationship-roleplay/      Structured simulated dialogue skill
  relationship-graph/         Relationship graph and pathfinding skill
  relationship-view/          Persistent markdown views and refresh logic

Safety

Do not commit:

  • relationship-ingestion/runtime/model-config.local.json
  • runtime run outputs
  • memory runtime stores
  • validation workspaces
  • private real-data scenarios

Keep your own private data local unless you explicitly want to share a test case.

Roadmap

See ROADMAP.md for the current delivery plan and target dates.