Skip to content

Sessions, Context, and Workspace

NeoCode daily use revolves around workspace, session, and context.

The workspace decides which project the agent can inspect. A session stores one continuous task. Context is the information the agent can use for the next answer.

Workspace

Launch NeoCode in a project:

bash
neocode --workdir /path/to/project

View or switch workspace:

text
/cwd
/cwd /path/to/project

Prefer one workspace per session. When switching projects, start a new session.

Sessions

A session stores conversation history, tool results, and task progress for one continuous task.

text
/session

Use Ctrl+N to create a new session.

Context

Context includes your latest input, relevant history, project rules, memory, active Skills, task state, and project summaries.

When a session becomes long and old details start affecting answers, run:

text
/compact

After compaction, restate the active goal:

text
Continue the previous fix. The goal is to make go test ./internal/runtime pass.

Continue or start fresh

ScenarioRecommendation
Same bug or featureContinue current session
Plan first, then implementContinue current session
New unrelated taskStart a new session
Different projectStart a new session and switch workspace
Old context is distractingTry /compact, then start fresh if needed

Next steps

A compact docs entrypoint built from NeoCode's current implementation.