Record failed attempts, so the next AI does not try the same dead end
An AI that does not know what was already tried will try it again: the same library, the same workaround, the same broken migration. In a chat that knowledge is gone when the chat ends. In Contextingo a failed attempt is its own kind of record, tied to the issue, that every teammate’s AI reads before it starts.
Updated by Contextingo. Verified with Claude Code and Codex CLI.
Steps
How to set it up.
Connect your AI to the project
Run the setup command from Project → Connect in the repository folder. Claude Code and Codex are supported.
npx contextingo init <code>Save the attempt when it fails
When an approach does not work, the AI calls context_upsert with kind failed_attempt: what it tried, what happened, and why it failed, with the source (an error, a test run, a file). In Claude Code the hook reminds it at the end of a turn that changed things without saving anything.
Tie it to the issue or branch
Save it with the issue (and the branch when it only applies there). Records for an unmerged branch are left out of other branches, so a dead end on one experiment does not block another.
Every AI reads it before it starts
At the start of work the AI calls context_get for the issue and gets its requirements, decisions, findings and failed attempts. context_search finds an earlier attempt by word, for example the name of the library that did not work.
Keep it correct when things change
If a later version makes the approach work after all, archive the record with a reason, or replace it with supersedes. Every version stays in the history. An AI that doubts a record reports a problem instead of deleting it.
Stop explaining your project to every new chat.
- Findings, decisions and failed attempts are saved while your AI works, not lost with the chat
- The next chat, teammate or tool starts from them, so nobody briefs anyone
- A person accepts the work, with the CI results already fetched
Free to start, no credit card. Pro and Team start with 14 days free.
Questions
Good to know.
Why does Claude Code keep trying a fix that already failed?
Because the failure only lived in the conversation. After /clear, in a new session or on a teammate’s computer that part of the chat is gone, and a compaction can summarize it away. CLAUDE.md does not stop it either: Claude Code reads it as context, not as rules it must follow (Claude Code memory documentation, October 2026). A failed attempt saved as a record stays with the issue, and when the AI names the files it is about to edit, failed attempts on those files come first.
Why not write failed attempts in the commit message or the issue?
A failed attempt often has no commit, and issue comments are not read by the next AI in a structured way. As a record it has a kind, a status and a source, and every connected AI gets it at the start of work on that issue.
Does this slow the AI down?
Reading is one call at the start and then only the changes since its last sync token. Saving a failed attempt is one call.
Who can confirm or remove a failed attempt?
An AI can save and update records, and confirm one it checked itself (it needs a source). A record a person confirmed can only be changed by a person; an AI can only report a problem with it.
More guides
- How to hand off work from Claude Code to CodexMove an issue from Claude Code to Codex CLI mid-task or when you hit a usage limit: a checkpoint, shared project knowledge and a person who accepts.
- How to hand off a Claude Code task to a teammateClaude Code keeps sessions on one computer. Save as you work, leave a checkpoint and assign the issue: your teammate’s AI starts with the context loaded.
- How to share project context across a Claude Code teamGive every teammate’s Claude Code the same requirements, decisions and findings, next to your GitHub issues, with a status per record.
- Connect Claude Code to GitHub issues over MCPLet Claude Code list, read and work on your GitHub issues over MCP, with acceptance criteria, linked pull requests, CI results and human review.
- Stop AI agents from marking their own work as doneCoding agents say “done” when tests failed or never ran. Contextingo fetches CI itself, shows it next to what the AI claimed, and only a person accepts.
- Connect Codex CLI to your project over MCPConnect OpenAI Codex CLI to a Contextingo project with one command or by hand, so it reads your team’s decisions and issues and hands off to Claude Code.
- Keep Claude Code’s findings between sessionsEach Claude Code session starts with an empty context. How Contextingo’s hook saves findings and decisions as you work and loads them next session.
- How to keep AI notes current when the code changesNotes about your code go stale after a merge. How Contextingo flags a record when a merged pull request changes the file it cites, so no AI trusts it blindly.
- What to say to Claude Code or Codex in a Contextingo projectHand over, catch up, ask a teammate, set a reminder, find out why code is as it is: what to say in Claude Code or Codex and what happens next.
- How to hand over, park or take back work in Claude CodeHand a Claude Code or Codex task to a teammate with one sentence, park it for yourself, switch tools, or take a handover back before anyone picked it up.
- How to catch up and run a standup from a Claude Code chatSee what changed since your last session, where you stopped, what a teammate did yesterday and what is blocked, in one sentence from Claude Code or Codex.
- Ask a teammate, assign work or set a reminder in Claude CodeAsk a teammate a question or for a review, assign an issue or remind yourself on a date, all from Claude Code or Codex. Answers arrive in your next chat.
- Ask Claude Code why the code is the way it isUse what your team saved: why code is built this way, whether a note is still true, what a change would break and who knows the file.
- Contextingo vs CLAUDE.md, AGENTS.md and memory toolsWhen a file is enough, and when a team needs shared records.